Skip to main content
Solved

When I try to Create a Purchase via REST API, I got 7227 error.

  • 11 January 2022
  • 1 reply
  • 189 views

Forum|alt.badge.img+3

https://docs.revenuecat.com/reference/receipts

On this link, I’ve tried post request with my sample data.

But I got this error.

{
  "code": 7227,
  "message": "Content-Type not application/json"
}

How can I resolve it?

Thanks

Best answer by ryan

The body of the POST requests should be encoded in JSON and have the 'Content-Type' header set to 'application/json'.

Content-type: “application/json”

 

Adding that header should resolve the error.

View original

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • January 12, 2022

The body of the POST requests should be encoded in JSON and have the 'Content-Type' header set to 'application/json'.

Content-type: “application/json”

 

Adding that header should resolve the error.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings