Skip to main content
Solved

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


Forum|alt.badge.img+1

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!

Best answer by wes_clark

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.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

2 replies

wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 293 replies
  • Answer
  • April 11, 2024

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.


Forum|alt.badge.img+1
  • Author
  • New Member
  • 3 replies
  • April 12, 2024

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


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