Create Authorization Token

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Generating your Authorization Token.

Create your authorization token doing a POST request using your public key and private key. You can find the API Keys in your account API Settings section, from the Ecart Pay dashboard.

Once authorized you will receive a token which you will be able to use to make requests to Ecart Pay endpoints. The new token has an expiration of 1 hour. So you should create a new token after 1 hour in order to avoid getting the Unauthorized error through the API.

Make sure you keep your token fully secure and delete the token when you don't need it anymore. The response will have the following structure:- token: A string representing the authorization token.

Base64 Encode

Your public key and private key will be combined with a : to form a base64-encoded string. This encoded string will be sent as a header: authorization: Basic {base64-encoded string}


📘

Visit our Documentation to learn more about API Keys and Authorization Token.

❗️

Important

Make sure to turn on the Sandbox environment in your Ecart Pay dashboard to get the API Keys required in our API Reference testing playground.

Response

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json