Authentication

Everything you need to know about the authentication mechanism used in the Volt APIs

All Volt apis have to be authenticated using an OAuth2 bearer token. The token can be generated by using the following keys which are shared while creating your API account:

  • Merchant-ID
  • User-ID
  • API-Key

Authentication APIs Domains


Request Headers

Header NameValue FormatDescription
AuthorizationBearer token-valueAuthorization token obtained from the authentication APIs.
Content-Typeapplication/jsonSpecifies that the request body should be in JSON format.
sourcesourceIndicates the source of the request (Possible values: website, android, ios, mweb).
Authroization-Typeexternal-serviceThis is used to identify the authorization type

Example cURL

curl --location --request POST '{request-url}' \
--header 'Authorization: Bearer {your-token}' \
--header 'Authorization-Type: external-service' \
--header 'source: website' \
--header 'Content-Type: application/json' \
--data-raw '{
  {your-request-body}
}'