accounts[].cards.limits.mode, specifies how card limits are managed:
custom— limits are configured individually per card.preset— limits are managed through predefined limit groups.
422—UNSUPPORTED_PROVIDERorFEATURE_NOT_SUPPORTED501—not_available(on Update card limit group and Remove a card from one device)
Lifecycle
Always check the card’s current status and only offer the actions permitted for that status, as illustrated in the diagram. A newly created card will typically be returned with aCREATED status, requiring
activation once the customer has received it. Depending on the card program, a card may
instead be created as ACTIVE, which is commonly the case for virtual cards.
Blocking a card is temporary and reversible, whereas cancelling a card is permanent. Once
a card is cancelled, no further actions should be offered.
Whether a card that has not yet been activated can be blocked or cancelled is
program-dependent. If the program does not support the requested action, the API may
return 409 CARD_STATUS_CONFLICT or a relevant *_FAILED error code. In these cases,
re-fetch the card details to confirm its current status before proceeding.
For a description of each possible status, refer to the status field in
Get card details.
What you can do
Issue a card
Get card options returns the card products available to a specific account. An empty list means no card products are currently offered. Do not hard-code product names or availability, as these depend on the account and the program’s configuration. Use Create a card to order a virtual or physical card. Always include an idempotency key. Ordering a card triggers a setup fee and provisions the card with the issuer. Retrying a request without idempotency protection could result in duplicate cards and duplicate fees. Once created, activate the card if its returnedstatus is CREATED.
Fees. The card setup fee depends on the card’s format and the customer’s fee schedule,
not on the selected card product. Before allowing the customer to place an order, retrieve
the applicable fee using
Get customer fees
and display the matching card fee. The fee is generally charged when the card is ordered,
although the timing can vary depending on the card program and order. If the fee is due at
the time of ordering and the account has insufficient funds, the request is typically
rejected with 422 INSUFFICIENT_FUNDS. If a card is not successfully issued, the fee is
refunded. If an immediate refund is not possible, the matter must be resolved through
support.
Delivery. Physical cards are posted to the onboarding address associated with either
the account holder or, depending on the card program, the person for whom the card is
being issued. Create a card does not accept a delivery address, and the API does not
provide tracking information or an estimated delivery date.
Read cards
Get cards returns all cards associated with an account, including cancelled cards. To retrieve information about an individual card, use Get card details. Both endpoints return masked card numbers and exclude sensitive details such as the CVV and expiry date. To retrieve the actual card credentials, refer to secure details. Use List card transactions to retrieve transactions for a specific card. Results are ordered newest first and include merchant details. For the complete transaction history across the account, including transactions not associated with a specific card, use the Transactions API.Block, unblock, cancel, reset PIN
Block a card temporarily prevents all transactions on the card. The block remains in place until the card is explicitly unblocked. Cancel a card permanently closes the card. Unlike blocking, cancellation cannot be reversed. The account’s status also affects the availability of card operations. Refer to Block, unblock, close for details. If an account is notACTIVE, attempts to unblock a card are rejected with 409 ACCOUNT_NOT_ACTIVE.
Lost or stolen cards. If a card is reported lost or stolen, cancel it permanently and
order a replacement if required. A replacement is treated as a new card order and incurs
its own setup fee. The API does not capture the reason for card cancellation, so the
application should record this separately if cancellation reasons are required for support
or audit purposes.
PIN management.
Reset card PIN
allows the customer to change the PIN used to authenticate transactions at ATMs and
payment terminals. This PIN is separate from the security PIN used to authorise sensitive
actions within the application. Not all card programs support PIN changes. Check the
endpoint reference for program-specific availability and only display the PIN management
control where supported.
Wallets and devices
Build the cardholder’s wallets and devices screen from the card’swalletTokens on
Get card details
and
Get cards.
It lists every token the card has, newest first: the card in each device wallet (Apple Pay,
Google Pay, …), cards a merchant saved (kind: MERCHANT), removed tokens and token
requests never confirmed. Each entry has its status and, almost always, a tokenId;
then its kind and wallet, the device’s name, type (PHONE, WATCH, …) and operating system where
they’re known, when the token was added, activated and last changed, and the card
provider’s own details for it (providerStatus, requestorId, providerTokenId,
tokenReference, …). Every field but status is optional, and no token number is
returned. Not every card program reports tokens, so an empty list doesn’t prove the card
is in no wallet.
tokenization summarises the card: whether it’s tokenized and its overall status, and in
tokenization.tokens the same tokens with fewer fields.
On each kind: WALLET entry that has a tokenId and whose status isn’t DELETED, offer a
remove action that calls
Remove a card from one device
with the entry’s tokenId, for example when a phone is lost. It’s permanent: to pay with
that device again, the cardholder adds the card in their wallet again. The card and its
other devices keep working. It works on any card that isn’t cancelled, and it’s idempotent:
a token already removed answers 200 again. A 404 TOKEN_NOT_FOUND means the tokenId
isn’t one of the card’s kind: WALLET tokens: a cardholder can’t remove a card a merchant
saved, or a token whose kind isn’t known. After a 502 PROVIDER_ERROR, try again: a retry is
safe. If it keeps answering 502 for a PENDING token, retrying won’t clear it: contact
support. A blocked card’s wallet tokens may show SUSPENDED, and a cancelled card can’t
have tokens removed.
Limits
Card limit management is determined by the program configuration. Thecards.limits.mode field on the account in
program capabilities identifies which of the two supported modes applies.
Always branch on this capability when implementing card limit management. The endpoints
for the alternative mode do not apply to the account’s cards, so do not attempt to use
both approaches.
Custom limits. The cardholder can configure limits individually for each card, within
the maximum thresholds defined by the program. Supported controls include transaction
amounts and counts across different channels, merchant categories, countries, and
transaction types.
- Get this card’s policy — retrieve the current card limits.
- Update this card’s policy — modify the card’s limits.
- Get spend limits and usage — retrieve limits and current usage.
- Options a cardholder may choose from — retrieve the available limit options.
Secure details
The card object never exposes the real card number or CVV. To show them, use the secure flow. It’s encrypted end to end and gated by a step-up confirmation, the same passkey, 2FA code, or PIN used elsewhere in the API.- Get secure key: you get a key to decrypt with and a cipher to send back. Keys are short-lived: request a new one on the card’s account for each view, just before the confirmation.
- If the customer confirms with a passkey, get a challenge from the step-up passkey challenge (recommended) or the secure details passkey challenge and complete it on the device (how long it lasts). It doesn’t need the key, so you can request both at once. For a 2FA code or PIN, skip this step.
- Get secure card details with the cipher and the confirmation.
- Decrypt the response with the key, render it, and discard it. Never log or store the decrypted values.
unifiedSecureFlow=true as a query parameter on both Get secure key and Get secure
card details. Without it, some card programs refuse the call.
Decrypting the response
Decrypt whichever of these fields are present:
All of these are always encrypted when present.
cardId, printedName, name and
limitGroupId are plain text. Any field may be absent.
Responses may also include cvc2 and expiry_date. They carry the same values as cvv
and expiry and are deprecated; use cvv and expiry.
Each encrypted field is its own base64 string:
- Cipher: AES-CFB with a 128-bit segment (CFB-128, not CFB-8), no padding.
- Layout: base64(16-byte random IV ‖ ciphertext). The first 16 bytes are the IV; the rest is the ciphertext.
- Key: the
secretKeystring’s UTF-8 bytes, not base64-decoded. It’s 24 characters, so this is AES-192. - Plaintext: UTF-8.
- The
cipheris opaque. Send it back unchanged; you never decrypt it.
If you get
AAECAwQFBgcICQoLDA0OD7Qrt1Zy4c9WgfeGTDGaDmw= for the first, you’re using CFB-8
(in Node, aes-192-cfb8 instead of aes-192-cfb).
3D Secure
When a card payment triggers 3D Secure, a challenge is created for the customer to approve or reject. Receive challenges in real time over WebSockets (recommended) or poll Get recent 3DS notifications (v2), which spans every account the customer holds. Show the transaction, then confirm the challenge with the customer’s answer. Confirm a 3DS challenge takes noconfirmation, and Orenda doesn’t authenticate the customer
again. Before sending approve, authenticate the customer on the device (biometric, device
passcode or passkey). On some card programs the customer completes the challenge at the
merchant instead. The rules for answering are in 3DS events.
Cardholders
Someone other than the account owner gets a card by being invited, under a role that lets them hold or order cards.Errors and responses
- A successful response wraps its payload in
data:{ "success": true, "data": … }. An error from the service has"success": false, acodeand amessage; a401or403from the gateway has only amessage. - A
404means something the request names wasn’t found; route on itscode. For example, an unknown account in the path is404 RESOURCE_NOT_FOUND, and Get card details answers a missing card with404 CARD_NOT_FOUND. On a card action such as block or cancel, a missing card is a422withcodeCARD_NOT_FOUND. - After a
*_FAILEDcode, re-read the resource, for example with Get card details, before you retry. - Switch on the HTTP status and
code, never onmessage, and ignore fields you don’t recognise: see Versioning.