tokens
aid_customers_cid_tokens_post
Create a new customer token scopes:
- admin:customers
- write:customers
- user:customers
post/accounts/{aid}/customers/users/{customer_id}/tokens
Path parameters
aidstring ^[PT]{1}\d{8}$ required
An id that uniquely identifies the account.
customer_idstring required
The customer id you have defined for the customer. (must not have trailing or leading spaces)
Query parameters
delete_token_eventsboolean
delete all token events recorded on token type/value before creating new customer token
Request body
Example request
{
"created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"type": "sha1:email",
"value": "a1b79ef1a62d94ffa86b3f3d846df0ee3993af92",
"metadata": {
"exp_month": 10,
"exp_year": 20,
"mask_pan": "**** **** **** 3477"
}
}Response
Customer token added
Example response
{
"created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"type": "sha1:email",
"value": "a1b79ef1a62d94ffa86b3f3d846df0ee3993af92",
"metadata": {
"exp_month": 10,
"exp_year": 20,
"mask_pan": "**** **** **** 3477"
}
}