Solved

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

  • 21 April 2024
  • 2 replies
  • 45 views

Badge +3

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]

icon

Best answer by ymdkit 21 April 2024, 07:55

View original

This post has been closed for comments

2 replies

Userlevel 2
Badge +4

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

Badge +3

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”)