Skip to main content
Solved

[REST API] "Grant promotional" retruns Error with "Not Found"


Forum|alt.badge.img+4

Hi

I’m trying to grant promotional with REST API.(https://api.revenuecat.com/v1/subscribers/{app_user_id}/entitlements/{entitlement_identifier}/promotional

 

docs: https://www.revenuecat.com/docs/api-v1#tag/entitlements

 

But I received error with 404.

[raw error message]

{status: 404, statusText: 'Not Found', headers: AxiosHeaders, config: {…}, request: ClientRequest, …}

 

What could be the cause of this error?

[Already Confirmed Topics]

Best answer by ymdkit

Sorry. Here I solved it myself.

I was accidentally setting entitlement.id (e.g. “entlXXXXXXXXXX” ) for {entitlement_identifier} instead of entitlement.lookup_key (e.g. “premium”)

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

2 replies

Forum|alt.badge.img+4
  • Author
  • Helper
  • 1 reply
  • Answer
  • April 21, 2024

Sorry. Here I solved it myself.

I was accidentally setting entitlement.id (e.g. “entlXXXXXXXXXX” ) for {entitlement_identifier} instead of entitlement.lookup_key (e.g. “premium”)


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 277 replies
  • April 24, 2024

@ymdkit Glad you solved it! Let us know if we can help with anything else.


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