The card number, expiry and CVV
const url = 'https://api.zwipe.co/v1/cards/example/details';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.zwipe.co/v1/cards/example/details \ --header 'Authorization: Bearer <token>'Chain cards only (else 403 chain_only); requires cards:reveal, which is granted
deliberately. For the logged-in cardholder’s own screen, so they can pay online or add the
card to Google Wallet by hand. Show it only on request, hide it again soon, and never store,
log or cache it. The response carries Cache-Control: no-store.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The card_id of a card (UUID).
Responses
Section titled “Responses”The card’s details
object
The full card number, digits only. Never store or log it.
MM/YY
The name printed on the card; may be empty.
Example
{ "number": "5555555555554444", "expiry": "12/29", "cvv": "123", "cardholder_name": "JANE DOE"}Missing, expired or unknown credentials
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "unauthorized", "message": "A valid Bearer token is required." }}The token lacks the endpoint’s scope (insufficient_scope), or this is a chain endpoint and
the account or card is not a chain one (chain_only).
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "chain_only", "message": "This endpoint is for chain accounts and their cards." }}No such resource for this partner
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "not_found", "message": "Not found." }}The card is not issued
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "card_not_active", "message": "Card 0192f7a4-5c2e-7d3b-9a1f-4e8b2c6d0a11 is pending." }}Over the request limit (see Rate limit above). Wait Retry-After seconds.
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "rate_limited", "message": "Too many requests. Retry after 1 second." }}Headers
Section titled “Headers”Seconds to wait before the next request.
The issuer failed or did not answer in time. Retry reads with bounded backoff. For uncertain writes, preserve the original reference and inspect the saved order before any deliberate retry; never create a new reference to bypass uncertainty.
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Examples
Issuer unreachable or timed out
{ "error": { "code": "provider_unavailable", "message": "The card issuer did not respond." }}Issuer answered with an error
{ "error": { "code": "provider_error", "message": "The card issuer rejected the request (code 1203)." }}
