cards
aid_cards_cardid_token_post
Create a temporary token (also referred as Card Code) for the card, an temporary alias that must be used when when creating a drawdown transaction
The token can be stored in a barcode to allow use of virtuell card in purchase in POS or webstore
scopes:
- admin:wallets
- write:wallets
post/accounts/{aid}/wallets/cards/{card_id}/tokens
Path parameters
aidstring ^[PT]{1}\d{8}$ required
An id that uniquely identifies the account.
card_idstring required
The card id you have defined for the card. (must not have trailing or leading spaces)
Request body
Example request
{
"metadata": {
"order_id": "xk39592f"
},
"format": {
"prefix": "DINCARD:"
},
"token": {
"value": "DINCARD:6ccfec5d-3a53-47de-910a-97d6dda22e5f",
"barcode_128": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..."
}
}Response
Token created
Example response
{
"created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"metadata": {
"order_id": "xk39592f"
},
"format": {
"prefix": "DINCARD:"
},
"token": {
"value": "DINCARD:6ccfec5d-3a53-47de-910a-97d6dda22e5f",
"barcode_128": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..."
}
}