Skip to navigation

Generate Card Token

View as Markdown

Generates a short-lived token for securely displaying full card details (PAN/CVV) to the cardholder, e.g. in a hosted card-details view.

Path: cardId (string, required). No body.

Returns a short-lived provider token in data.token for use with the card provider’s secure card-details display. Error messages from this endpoint are prefixed with Sudo API Error: (sometimes twice, for provider HTTP errors).

All errors from this folder use { "status": "error", "message": "..." } and are returned as HTTP 400 (including “Card not found” — there is no 404). Success bodies use status: "success" (not success: true like the VTU endpoints).

Authentication

AuthorizationBearer

Access token from Generate Access Token (valid 15 minutes).

Path parameters

cardIdstringRequired
The card ID.

Response

OK
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error