Skip to content
Tokens

Create Tokenexperimental

POST/api/tokens

This endpoint allows you to create a Token.

Request body

  • accountIdoptional string
    The Account to create the token for. Defaults to the Account on the Token Collection.
  • collectionIdrequired string
    The Token Collection that will govern the branding and redemption rules for the token. Currently only Collections of type product are supported.
  • externalIdoptional string
    The asset identifier from the issuing system.
  • idempotencyKeyrequired string
    Client-supplied identifier that prevents double creation.

Responses

Request
curl -X POST https://service.centrapay.com/api/tokens \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"collectionId": "c_Jaim1Cu1Q55uooxSens6yk",
"externalId": "23403283262",
"idempotencyKey": "payment-de32dd90-b46c-11ea-93c3-83a333b86e7b"
}'