Skip to main content
When calling the  https://api.revenuecat.com/v1/receipts endpoint I’m getting a 400 error as if I’m not sending the X-Platform header 

 

const revenueCatBaseUrl = 'https://api.revenuecat.com/v1/';

const url = `${revenueCatBaseUrl}receipts`;
const headers = {
'Authorization': `Bearer ${revenueCatApiKey}`,
'X-Platform': 'stripe',
'Content-Type': 'application/json'
};
const data = {app_user_id: uid, fetch_token: subscription}
const response = await axios.post(url, data, {headers: headers});
return response.status === 200;

{code: 7000, message: "Invalid Platform."}

Is anyone else experiencing similar issues?
 

@Paulo Taylor are you using the correct API key? you should be using the stripe application public key


@MarcosC Thank you! That did it!