Creates a merchant-scoped partner API token for the specified customer (a bearer/API-key credential usable with X-API-KEY/Authorization: ApiKey to act as that merchant) - not the onboarding_token returned by POST /customers, which is unrelated and used only for the hosted-onboarding widget.
Request
Authorization
API Key
Add parameter in header
X-API-KEY
Example:
X-API-KEY: ********************
or
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Path Params
Responses
🟢201
application/json
Created
Bodyapplication/json
🟠401
🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/v1/customers/1/tokens' \
--header'X-API-KEY: <api-key>'