Solved

Error 7000 "Invalid platform" when getting offerings using secret API v1 key

  • 9 April 2024
  • 2 replies
  • 22 views

Badge

Hi,

I’m getting an error when trying to obtain offerings for a specific platform using the v1 offerings endpoint if I use the secret API v1 key instead of using an app-specific API public key. I’m sending the X-Platform header properly as indicated in the docs.

Here’s the endpoint I’m using:

https://api.revenuecat.com/v1/subscribers/{app_user_id}/offerings

 

Error:

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

If I set the auth header to the app-specific API key it returns properly.

Is that the intended behavior? I’ve obtained the endpoint usage information from:

https://www.revenuecat.com/docs/api-v1#tag/offerings/operation/get-offerings

 

Thanks in advance!

icon

Best answer by wes_clark 11 April 2024, 18:52

View original

This post has been closed for comments

2 replies

Userlevel 3
Badge +5

Hi! Yes, it is currently intended behavior that the endpoint only allows the use of the app-specific API keys. Thank you for calling out that the documentation does not state that part; we will work on getting that information added. I apologize for the inconvenience.

Badge

Hey @wes_clark !! Thanks for your answer! 👍 
I’ll move on with app-specific keys then.