A short-lived link to add the card to Apple Wallet
const url = 'https://api.zwipe.co/v1/cards/example/wallet-links';const options = {method: 'POST', 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 POST \ --url https://api.zwipe.co/v1/cards/example/wallet-links \ --header 'Authorization: Bearer <token>'Chain cards only (else 403 chain_only); requires cards:reveal, which is granted
deliberately. Returns the Zwipe page that adds the
card to Apple Wallet. The page also shows the full card number, expiry and CVV, so give the
link only to the logged-in cardholder, open it in their browser or app web view, and never
store or log it. It opens once, within 5 minutes; a new one can be made at any time.
The response holds a link, not the number, but the link is a bearer capability: anyone who
opens it sees the number. Google Wallet is not supported.
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”Link created
object
Shows the full card number to whoever opens it. Never store or log it.
Open the link before this time.
Example
{ "url": "https://zwipe.co/akimbo/wallet/add?token=EXAMPLE", "expires_at": "2026-11-10T19:10:00Z"}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)." }}
