API Reference

This API used to obtain a User Access Token, which uses the authorization code obtained as a query parameter in the redirect URL, after the purchase flow is completed successfully which is started using the Prepare Purchase API. This operation is a server-to-server API call, it is expected that the client call this operation from their backend.

How to use:

1- Go to the Params tab,
2- Fill in client_id and client_secret and code (Replace with Authorization Code obtained as a redirect URL query parameter that starts with letter A) and redirect_uri should be set to a thank you page URL.
3- Grab the access_token from the response of this request to be used later in any of the APIs in the Subscription Management section.

Token Validity Period

The generated User Access Token will be valid for 12 hours with unlimited usage. The partner/merchant/client is expected to use the same User Access Token for the whole duration of its validity.

Language
URL
Click Try It! to start a request and see the response here!