Creates a new merchant API token.

Authorization: End user token is required.

User permissions required: CanCreateTokens

Body Params

The details of the merchant token to add.

uuid
required

The merchant id to add to the token

string
required
length ≥ 1

Token description

string
enum

Optional shared secret algorithm to use for HMAC authentication. If set a shared secret will be returned when the token is intially created but not on any subsequent retrievals.

Allowed:
permissionTypes
array of strings | null

The list of permissions tho grant to the merchant token.

permissionTypes
string | null

Optional. If set represents a comma separated list of IP addresses that this token is authorised to be used from. Attempts to use the token from an IP address not in the list will be rejected.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

201

Returns the newly created merchant API token.

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