Skip to navigation

Get token

View as Markdown

This API endpoint allows clients to retrieve an access token by providing valid authentication credentials. The access token is used to authorize subsequent API requests.

Request Header

  • x-secret: the merchant’s secret

  • x-merchant-id:the merchant’s id

Response Body

200 OK

Fieldtype
tokenTypestring
tokenstring
expiresAttimestamp

400 BAD REQUEST

Fieldtype
timestampdate(yyyy-MM-dd’T’HH:mm:ss.SSS’Z’)
titlestring
typestring
statusnumber
soaCodestring
detailstring

Headers

x-merchant-idstringOptional
x-secretstringOptional

Response

OK
tokenstring
expiresAtinteger
tokenTypestring

Errors

400
Bad Request Error
401
Unauthorized Error