Access Token API
Create/Refresh a merchant session
POST
/api/merchant/:merchantId/sessions
Creates a new merchant session
Headers
Name
Value
Content-Type
application/json
Authorization
Basic <API KEY>
Request
Property
Type
Description
access_token
string
Optional: If provided, invalidates existing token and provides a new one
expires_in
int
Optional: the value in seconds for the token expiration. default is 900 (15 min)
scope
string
Optional: readonly
| default
Setting scope to readonly
restricts actions like hiding the Refund button in the transaction widget.
Note: if not provided, default
will be applied.
Response
{
access_token: "<Access Token>",
expires_in: "<Duration>",
scope: "default",
type: "Session"
}
Delete a merchant session
DELETE
/api/merchant/:merchantId/sessions/:accessToken
Deletes a merchant session
Headers
Name
Value
Content-Type
application/json
Authorization
Basic <API KEY>
Response
no reponse body expected
Last updated