Skip to main content
Solved

Where can I see all error codes sent by the RevenueCat REST API?

  • Aug 20, 2021 3:01 AM UTC
  • 1 reply
  • 476 views

Forum|alt.badge.img+1

I’m receiving the following error message and I would like to check other situations where I can handle such errors, but I couldn’t find anything, no article nor documentation.

{
"code": 7242,
"message": "No promotional entitlements to revoke for this subscriber."
}

Is there a way to receive all possible error codes and their meaning so that I can better handle it when communicating with the REST API and avoid unnecessary errors?

Best answer by sharif

We currently don’t have any public documentation regarding API error codes, but we definitely should! I’ve added this to our documentation backlog and will write up a guide on this. As a partial workaround, you could take a look at our SDK code for some error codes, but note that they won’t include uncommon codes like the promotional entitlement error you shared in your message.

View original
This post has been closed for comments

1 reply

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • Answer
  • Aug 21, 2021 3:17 AM UTC

We currently don’t have any public documentation regarding API error codes, but we definitely should! I’ve added this to our documentation backlog and will write up a guide on this. As a partial workaround, you could take a look at our SDK code for some error codes, but note that they won’t include uncommon codes like the promotional entitlement error you shared in your message.