API Reference
Log in to see full request history

This is an alternative API to fetch the User Access Token, this method is mostly used after a user's initial successful subscription, as the Unique User ID (UUID) is obtained through the CREATE notification sent on successful creation of a new user and, also, obtained in the redirect URL after completing the purchase flow in the Prepare Purchase API as a query parameter "uuid=" .

How to use:

  1. Go to the Params tab,
  2. Fill in client_id and client_secret and uuid (This unique user id (uuid) value should be obtained from notification received upon first successful subscription, and MIGHT be included in the redirect as a query parameter "uuid=" as this parameter is not available on all operators in the redirect.)
  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.

Query Params
string
Defaults to user_credentials

The grant type. The only allowed value here is 'user_credentials'.

string
Defaults to 0a7a4e47-b321-404c-afe0-d59fd8cda46c

Unique ID provided to the client. Clients may use the HTTP Basic authentication scheme to send the client ID and client secret. Contact your assigned MondiaPay account manager to get this.

string
Defaults to 682e2811-b20f-419c-b8f9-0f491dc2ba71

The client secret provided. Contact your assigned MondiaPay account manager to get this.

string
Defaults to 774da163-923d-418c-956a-40d161f2507b

This unique user id (uuid) value should be obtained from notification received upon first successful subscription, and MIGHT be included in the redirect as a query parameter "uuid=" as this parameter is not available on all operators in the redirect.

Headers
string
Defaults to application/json

!DO NOT CHANGE OR REMOVE!

string
Defaults to application/x-www-form-urlencoded

!DO NOT CHANGE OR REMOVE!

Responses

Language
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json