Tokens
Create a merchant token
Changed onCreates a short-lived token for the merchant account identified by merchant_code and the requested actions.
Call this endpoint from your backend using a supported authentication method. You must have access to the merchant account. Before returning the token, check that the user signed in to your application is allowed to accept payments for that account.
Pass the returned access_token to the SDK. The token expires 15 minutes after creation; use expires_in for its remaining lifetime. To continue after it expires, create a new token through this endpoint.
post/v0.1/merchants/{merchant_code}/tokens
Request
- Base URLhttps://api.sumup.com
- URLhttps://api.sumup.com/v0.1/merchants/{merchant_code}/tokens
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.sumup.com/authorizeToken URL: https://api.sumup.com/token
Path parameters
merchant_codestring required
Example:MC0X0ABC
Unique code of the merchant account that will receive the payments.
Request body
Example request
{
"actions": [
"checkout"
]
}Response
Merchant token created. Pass its access_token to the SDK.
Example response
{
"access_token": "MERCHANT_TOKEN",
"token_type": "Bearer",
"expires_in": 899
}Changes
- info
endpoint added
- info