Solved

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

  • 11 January 2022
  • 1 reply
  • 181 views

Badge +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

icon

Best answer by ryan 12 January 2022, 22:01

View original

1 reply

Userlevel 5
Badge +9

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