Cards
Generate Card Token
Overview
Customers
Funding Sources
Cards
Accounts
Authorizations
Transactions
Cards
Generate Card Token
This endpoint generates a card token to be used for displaying sensitive card data.
GET
/
cards
/
{id}
/
token
curl --request GET \
--url https://api.sandbox.sudo.cards/cards/{id}/token \
--header 'Authorization: <api-key>'
"{\n \"statusCode\": 200,\n \"message\": \"Card token generated successfully.\",\n \"data\": {\n \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NDE4ZWI3MWEzN2U0MDUwNjQ2OTQ1MTgiLCJ0eXBlIjoiQ0FSRFRPS0VOIiwiaWF0IjoxNzA3NzE4ODk2LCJleHAiOjE3MDc3MTkwMTZ9.Cj-Q21HKgUCOFvC3l7JQc0OZdoW932TEeeAFK6GEOGQ\"\n }\n}"
Authorizations
Path Parameters
The _id
of the card to generate the token for.
curl --request GET \
--url https://api.sandbox.sudo.cards/cards/{id}/token \
--header 'Authorization: <api-key>'
"{\n \"statusCode\": 200,\n \"message\": \"Card token generated successfully.\",\n \"data\": {\n \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NDE4ZWI3MWEzN2U0MDUwNjQ2OTQ1MTgiLCJ0eXBlIjoiQ0FSRFRPS0VOIiwiaWF0IjoxNzA3NzE4ODk2LCJleHAiOjE3MDc3MTkwMTZ9.Cj-Q21HKgUCOFvC3l7JQc0OZdoW932TEeeAFK6GEOGQ\"\n }\n}"