cards
Cards module (feature flag cards, D-25/Q-27): virtual and physical cards, lifecycle, PIN, 3DS decisions, card transactions.
List cards
GET /v1/cards
- listCards
- Customer key
- API key scope cards:read
- Tenant customer
Members see only their own cards; owners and admins see every card of the customer. q searches the card name and last four digits.
Feature flag: cards; returns 404 with problem type feature-disabled when the flag is off for the operator.
API key scopes: cards:read (customer-level keys (X-Tenant-Id = the key's customer)).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Tenant-Idrequired | header | Uuid | Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → |
X-Request-Id | header | string | Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details. |
cursor | query | string | Opaque cursor from |
limit | query | integer | Page size (max 100). |
sort | query | string | Sort order; prefix |
filter | query | object | Filters as |
q | query | string | Free-text search (trigram; min 2 characters). |
Responses
400 Malformed request: unparseable JSON, or an invalid header, path or query parameter (`errors[].field` is `header.X`, `path.x` or `query.x`). Body validation failures are 422 `validation-error`.
application/problem+json401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`).
application/problem+json403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction.
application/problem+json404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`).
application/problem+json429 Rate limit exceeded.
application/problem+jsondefault Unexpected error (`500 internal-error`, `501 not-implemented`, `502 provider-error`, `503 service-unavailable`, `504 provider-timeout`). Money operations that time out at the provider are never retried blindly; their state becomes `exception`/unknown and is reconciled.
application/problem+json
Code samples
curl -X GET "https://bank.wirebloom.com/v1/cards" \
-H "Authorization: Bearer $WIREBLOOM_API_KEY" \
-H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"const response = await fetch("https://bank.wirebloom.com/v1/cards", {
method: "GET",
headers: {
"Authorization": `Bearer ${process.env.WIREBLOOM_API_KEY}`,
"X-Tenant-Id": process.env.WIREBLOOM_CUSTOMER_ID!,
},
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const result = await response.json();import os
import requests
response = requests.request(
"GET",
"https://bank.wirebloom.com/v1/cards",
headers={
"Authorization": f"Bearer {os.environ['WIREBLOOM_API_KEY']}",
"X-Tenant-Id": os.environ["WIREBLOOM_CUSTOMER_ID"],
},
timeout=30,
)
response.raise_for_status()Create card
POST /v1/cards
- createCard
- Customer key
- API key scope cards:write
- Idempotency-Key required
- Tenant customer
Issues a virtual (active at once) or physical (pending until activated; shippingAddress required) card on the connection holding the spending balance (capability cards, else 404 feature-disabled). Members may create cards for themselves only. A card_issuance fee is charged when priced.
Idempotency: Idempotency-Key is required. Replays within 24 h return the original response with Idempotency-Replayed: true.
Feature flag: cards; returns 404 with problem type feature-disabled when the flag is off for the operator.
API key scopes: cards:write (customer-level keys (X-Tenant-Id = the key's customer)).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Tenant-Idrequired | header | Uuid | Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → |
X-Request-Id | header | string | Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details. |
Idempotency-Keyrequired | header | string | Unique key per logical operation (UUID v4 recommended). Scope: (credential principal, tenant, method, path). Retained 24 h. Same key + same body → original status and body replayed with |
Request body
Responses
201 Created
application/jsonidUuidrequiredread-onlyFields of id
customerIdUuidrequiredread-onlyFields of customerId
namestringrequiredtypeCardTyperequiredholderMembershipIdUuidrequiredholderNamestringread-onlyspendingBalanceIdUuidrequiredlast4string | nullrequiredread-onlyLast four digits of the PAN; null until the processor has assigned the card number.
expirystring | nullrequiredread-onlyMM/YY; null until assigned by the processor.
statusCardStatusrequiredread-onlyFields of status
limitsobjectrequiredshippingAddressAddress | nullcreatedAtTimestamprequiredread-onlyFields of createdAt
frozenBystring | nullread-onlyWho froze a
frozencard. Cards frozen by the operator (compliance) are unfrozen by operator staff only.statusReasonstring | nullread-onlyWhy the card is frozen, terminated or declined (e.g.
user_requested,compliance,lost).replacesCardIdstring | null (uuid)read-onlyThe card this card replaced.
controlsEnforcementstringread-onlyenforced: the card processor applieslimits;recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.walletsarray of objectread-onlyMobile wallet tokens (tokenisation status) reported by the processor.
Fields of wallets
walletstring | nullrequiredstatusstringrequired
400 Malformed request: unparseable JSON, or an invalid header, path or query parameter (`errors[].field` is `header.X`, `path.x` or `query.x`). Body validation failures are 422 `validation-error`.
application/problem+json401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`).
application/problem+json403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction.
application/problem+json404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`).
application/problem+json409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`.
application/problem+json422 Semantically invalid request; `errors[]` lists field-level problems. Also `idempotency-key-reused` when the key was used with a different payload, `limit-exceeded`, `recipient-not-approved`.
application/problem+json429 Rate limit exceeded.
application/problem+jsondefault Unexpected error (`500 internal-error`, `501 not-implemented`, `502 provider-error`, `503 service-unavailable`, `504 provider-timeout`). Money operations that time out at the provider are never retried blindly; their state becomes `exception`/unknown and is reconciled.
application/problem+json
Code samples
curl -X POST "https://bank.wirebloom.com/v1/cards" \
-H "Authorization: Bearer $WIREBLOOM_API_KEY" \
-H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
--data '{
"name": "string",
"type": "virtual",
"holderMembershipId": "0192a6f0-7c1e-7b3a-9d2e-5f4c3b2a1908",
"spendingBalanceId": "0192a6f0-7c1e-7b3a-9d2e-5f4c3b2a1908"
}'const response = await fetch("https://bank.wirebloom.com/v1/cards", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.WIREBLOOM_API_KEY}`,
"X-Tenant-Id": process.env.WIREBLOOM_CUSTOMER_ID!,
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "string",
"type": "virtual",
"holderMembershipId": "0192a6f0-7c1e-7b3a-9d2e-5f4c3b2a1908",
"spendingBalanceId": "0192a6f0-7c1e-7b3a-9d2e-5f4c3b2a1908"
}),
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const result = await response.json();import os, uuid
import requests
response = requests.request(
"POST",
"https://bank.wirebloom.com/v1/cards",
headers={
"Authorization": f"Bearer {os.environ['WIREBLOOM_API_KEY']}",
"X-Tenant-Id": os.environ["WIREBLOOM_CUSTOMER_ID"],
"Idempotency-Key": str(uuid.uuid4()),
"Content-Type": "application/json",
},
json={
"name": "string",
"type": "virtual",
"holderMembershipId": "0192a6f0-7c1e-7b3a-9d2e-5f4c3b2a1908",
"spendingBalanceId": "0192a6f0-7c1e-7b3a-9d2e-5f4c3b2a1908"
},
timeout=30,
)
response.raise_for_status()Get card
GET /v1/cards/{cardId}
- getCard
- Customer key
- API key scope cards:read
- Tenant customer
Feature flag: cards; returns 404 with problem type feature-disabled when the flag is off for the operator.
API key scopes: cards:read (customer-level keys (X-Tenant-Id = the key's customer)).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
cardIdrequired | path | Uuid | Identifier (cardId). |
X-Tenant-Idrequired | header | Uuid | Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → |
X-Request-Id | header | string | Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details. |
If-None-Match | header | string | Conditional GET; |
Responses
200 OK
application/jsonidUuidrequiredread-onlyFields of id
customerIdUuidrequiredread-onlyFields of customerId
namestringrequiredtypeCardTyperequiredholderMembershipIdUuidrequiredholderNamestringread-onlyspendingBalanceIdUuidrequiredlast4string | nullrequiredread-onlyLast four digits of the PAN; null until the processor has assigned the card number.
expirystring | nullrequiredread-onlyMM/YY; null until assigned by the processor.
statusCardStatusrequiredread-onlyFields of status
limitsobjectrequiredshippingAddressAddress | nullcreatedAtTimestamprequiredread-onlyFields of createdAt
frozenBystring | nullread-onlyWho froze a
frozencard. Cards frozen by the operator (compliance) are unfrozen by operator staff only.statusReasonstring | nullread-onlyWhy the card is frozen, terminated or declined (e.g.
user_requested,compliance,lost).replacesCardIdstring | null (uuid)read-onlyThe card this card replaced.
controlsEnforcementstringread-onlyenforced: the card processor applieslimits;recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.walletsarray of objectread-onlyMobile wallet tokens (tokenisation status) reported by the processor.
Fields of wallets
walletstring | nullrequiredstatusstringrequired
304 Not modified (`If-None-Match` matched).
401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`).
application/problem+json403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction.
application/problem+json404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`).
application/problem+json429 Rate limit exceeded.
application/problem+jsondefault Unexpected error (`500 internal-error`, `501 not-implemented`, `502 provider-error`, `503 service-unavailable`, `504 provider-timeout`). Money operations that time out at the provider are never retried blindly; their state becomes `exception`/unknown and is reconciled.
application/problem+json
Code samples
curl -X GET "https://bank.wirebloom.com/v1/cards/{cardId}" \
-H "Authorization: Bearer $WIREBLOOM_API_KEY" \
-H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"const response = await fetch("https://bank.wirebloom.com/v1/cards/{cardId}", {
method: "GET",
headers: {
"Authorization": `Bearer ${process.env.WIREBLOOM_API_KEY}`,
"X-Tenant-Id": process.env.WIREBLOOM_CUSTOMER_ID!,
},
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const result = await response.json();import os
import requests
response = requests.request(
"GET",
"https://bank.wirebloom.com/v1/cards/{cardId}",
headers={
"Authorization": f"Bearer {os.environ['WIREBLOOM_API_KEY']}",
"X-Tenant-Id": os.environ["WIREBLOOM_CUSTOMER_ID"],
},
timeout=30,
)
response.raise_for_status()Update card (name, balance, limits)
PATCH /v1/cards/{cardId}
- updateCard
- Customer key
- API key scope cards:write
- Tenant customer
Limits and controls are sent to the card processor (controlsEnforcement). Members may change only their own cards and cannot move them to another balance.
Concurrency: If-Match with the current ETag is required (428 if absent, 412 if stale).
Feature flag: cards; returns 404 with problem type feature-disabled when the flag is off for the operator.
API key scopes: cards:write (customer-level keys (X-Tenant-Id = the key's customer)).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
cardIdrequired | path | Uuid | Identifier (cardId). |
X-Tenant-Idrequired | header | Uuid | Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → |
X-Request-Id | header | string | Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details. |
If-Matchrequired | header | string | ETag of the representation being modified (from a prior GET/PATCH). |
Request body
namestringspendingBalanceIdUuidlimitsobject
Responses
200 OK
application/jsonidUuidrequiredread-onlyFields of id
customerIdUuidrequiredread-onlyFields of customerId
namestringrequiredtypeCardTyperequiredholderMembershipIdUuidrequiredholderNamestringread-onlyspendingBalanceIdUuidrequiredlast4string | nullrequiredread-onlyLast four digits of the PAN; null until the processor has assigned the card number.
expirystring | nullrequiredread-onlyMM/YY; null until assigned by the processor.
statusCardStatusrequiredread-onlyFields of status
limitsobjectrequiredshippingAddressAddress | nullcreatedAtTimestamprequiredread-onlyFields of createdAt
frozenBystring | nullread-onlyWho froze a
frozencard. Cards frozen by the operator (compliance) are unfrozen by operator staff only.statusReasonstring | nullread-onlyWhy the card is frozen, terminated or declined (e.g.
user_requested,compliance,lost).replacesCardIdstring | null (uuid)read-onlyThe card this card replaced.
controlsEnforcementstringread-onlyenforced: the card processor applieslimits;recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.walletsarray of objectread-onlyMobile wallet tokens (tokenisation status) reported by the processor.
Fields of wallets
walletstring | nullrequiredstatusstringrequired
400 Malformed request: unparseable JSON, or an invalid header, path or query parameter (`errors[].field` is `header.X`, `path.x` or `query.x`). Body validation failures are 422 `validation-error`.
application/problem+json401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`).
application/problem+json403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction.
application/problem+json404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`).
application/problem+json409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`.
application/problem+json412 `If-Match` does not match the current ETag (resource changed).
application/problem+json422 Semantically invalid request; `errors[]` lists field-level problems. Also `idempotency-key-reused` when the key was used with a different payload, `limit-exceeded`, `recipient-not-approved`.
application/problem+json428 `If-Match` header is required for this operation.
application/problem+json429 Rate limit exceeded.
application/problem+jsondefault Unexpected error (`500 internal-error`, `501 not-implemented`, `502 provider-error`, `503 service-unavailable`, `504 provider-timeout`). Money operations that time out at the provider are never retried blindly; their state becomes `exception`/unknown and is reconciled.
application/problem+json
Code samples
curl -X PATCH "https://bank.wirebloom.com/v1/cards/{cardId}" \
-H "Authorization: Bearer $WIREBLOOM_API_KEY" \
-H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID" \
-H "If-Match: \"<etag>\"" \
-H "Content-Type: application/json" \
--data '{}'const response = await fetch("https://bank.wirebloom.com/v1/cards/{cardId}", {
method: "PATCH",
headers: {
"Authorization": `Bearer ${process.env.WIREBLOOM_API_KEY}`,
"X-Tenant-Id": process.env.WIREBLOOM_CUSTOMER_ID!,
"If-Match": "\"<etag>\"",
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const result = await response.json();import os
import requests
response = requests.request(
"PATCH",
"https://bank.wirebloom.com/v1/cards/{cardId}",
headers={
"Authorization": f"Bearer {os.environ['WIREBLOOM_API_KEY']}",
"X-Tenant-Id": os.environ["WIREBLOOM_CUSTOMER_ID"],
"If-Match": "\"<etag>\"",
"Content-Type": "application/json",
},
json={},
timeout=30,
)
response.raise_for_status()Activate a received physical card
POST /v1/cards/{cardId}/activate
- activateCard
- Customer key
- API key scope cards:write
- Tenant customer
Only the cardholder; physical cards in pending.
Feature flag: cards; returns 404 with problem type feature-disabled when the flag is off for the operator.
API key scopes: cards:write (customer-level keys (X-Tenant-Id = the key's customer)).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
cardIdrequired | path | Uuid | Identifier (cardId). |
X-Tenant-Idrequired | header | Uuid | Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → |
X-Request-Id | header | string | Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details. |
Idempotency-Key | header | string | Optional idempotency key; same semantics as on money operations. |
Responses
200 OK
application/jsonidUuidrequiredread-onlyFields of id
customerIdUuidrequiredread-onlyFields of customerId
namestringrequiredtypeCardTyperequiredholderMembershipIdUuidrequiredholderNamestringread-onlyspendingBalanceIdUuidrequiredlast4string | nullrequiredread-onlyLast four digits of the PAN; null until the processor has assigned the card number.
expirystring | nullrequiredread-onlyMM/YY; null until assigned by the processor.
statusCardStatusrequiredread-onlyFields of status
limitsobjectrequiredshippingAddressAddress | nullcreatedAtTimestamprequiredread-onlyFields of createdAt
frozenBystring | nullread-onlyWho froze a
frozencard. Cards frozen by the operator (compliance) are unfrozen by operator staff only.statusReasonstring | nullread-onlyWhy the card is frozen, terminated or declined (e.g.
user_requested,compliance,lost).replacesCardIdstring | null (uuid)read-onlyThe card this card replaced.
controlsEnforcementstringread-onlyenforced: the card processor applieslimits;recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.walletsarray of objectread-onlyMobile wallet tokens (tokenisation status) reported by the processor.
Fields of wallets
walletstring | nullrequiredstatusstringrequired
401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`).
application/problem+json403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction.
application/problem+json404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`).
application/problem+json409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`.
application/problem+json429 Rate limit exceeded.
application/problem+jsondefault Unexpected error (`500 internal-error`, `501 not-implemented`, `502 provider-error`, `503 service-unavailable`, `504 provider-timeout`). Money operations that time out at the provider are never retried blindly; their state becomes `exception`/unknown and is reconciled.
application/problem+json
Code samples
curl -X POST "https://bank.wirebloom.com/v1/cards/{cardId}/activate" \
-H "Authorization: Bearer $WIREBLOOM_API_KEY" \
-H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"const response = await fetch("https://bank.wirebloom.com/v1/cards/{cardId}/activate", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.WIREBLOOM_API_KEY}`,
"X-Tenant-Id": process.env.WIREBLOOM_CUSTOMER_ID!,
},
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const result = await response.json();import os
import requests
response = requests.request(
"POST",
"https://bank.wirebloom.com/v1/cards/{cardId}/activate",
headers={
"Authorization": f"Bearer {os.environ['WIREBLOOM_API_KEY']}",
"X-Tenant-Id": os.environ["WIREBLOOM_CUSTOMER_ID"],
},
timeout=30,
)
response.raise_for_status()Freeze card
POST /v1/cards/{cardId}/freeze
- freezeCard
- Customer key
- API key scope cards:write
- Tenant customer
Members may act only on their own cards.
Feature flag: cards; returns 404 with problem type feature-disabled when the flag is off for the operator.
API key scopes: cards:write (customer-level keys (X-Tenant-Id = the key's customer)).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
cardIdrequired | path | Uuid | Identifier (cardId). |
X-Tenant-Idrequired | header | Uuid | Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → |
X-Request-Id | header | string | Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details. |
Idempotency-Key | header | string | Optional idempotency key; same semantics as on money operations. |
Responses
200 OK
application/jsonidUuidrequiredread-onlyFields of id
customerIdUuidrequiredread-onlyFields of customerId
namestringrequiredtypeCardTyperequiredholderMembershipIdUuidrequiredholderNamestringread-onlyspendingBalanceIdUuidrequiredlast4string | nullrequiredread-onlyLast four digits of the PAN; null until the processor has assigned the card number.
expirystring | nullrequiredread-onlyMM/YY; null until assigned by the processor.
statusCardStatusrequiredread-onlyFields of status
limitsobjectrequiredshippingAddressAddress | nullcreatedAtTimestamprequiredread-onlyFields of createdAt
frozenBystring | nullread-onlyWho froze a
frozencard. Cards frozen by the operator (compliance) are unfrozen by operator staff only.statusReasonstring | nullread-onlyWhy the card is frozen, terminated or declined (e.g.
user_requested,compliance,lost).replacesCardIdstring | null (uuid)read-onlyThe card this card replaced.
controlsEnforcementstringread-onlyenforced: the card processor applieslimits;recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.walletsarray of objectread-onlyMobile wallet tokens (tokenisation status) reported by the processor.
Fields of wallets
walletstring | nullrequiredstatusstringrequired
401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`).
application/problem+json403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction.
application/problem+json404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`).
application/problem+json409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`.
application/problem+json429 Rate limit exceeded.
application/problem+jsondefault Unexpected error (`500 internal-error`, `501 not-implemented`, `502 provider-error`, `503 service-unavailable`, `504 provider-timeout`). Money operations that time out at the provider are never retried blindly; their state becomes `exception`/unknown and is reconciled.
application/problem+json
Code samples
curl -X POST "https://bank.wirebloom.com/v1/cards/{cardId}/freeze" \
-H "Authorization: Bearer $WIREBLOOM_API_KEY" \
-H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"const response = await fetch("https://bank.wirebloom.com/v1/cards/{cardId}/freeze", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.WIREBLOOM_API_KEY}`,
"X-Tenant-Id": process.env.WIREBLOOM_CUSTOMER_ID!,
},
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const result = await response.json();import os
import requests
response = requests.request(
"POST",
"https://bank.wirebloom.com/v1/cards/{cardId}/freeze",
headers={
"Authorization": f"Bearer {os.environ['WIREBLOOM_API_KEY']}",
"X-Tenant-Id": os.environ["WIREBLOOM_CUSTOMER_ID"],
},
timeout=30,
)
response.raise_for_status()Card transactions
GET /v1/cards/{cardId}/transactions
- listCardTransactions
- Customer key
- API key scope cards:read
- Tenant customer
Feature flag: cards; returns 404 with problem type feature-disabled when the flag is off for the operator.
API key scopes: cards:read (customer-level keys (X-Tenant-Id = the key's customer)).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
cardIdrequired | path | Uuid | Identifier (cardId). |
X-Tenant-Idrequired | header | Uuid | Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → |
X-Request-Id | header | string | Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details. |
cursor | query | string | Opaque cursor from |
limit | query | integer | Page size (max 100). |
sort | query | string | Sort order; prefix |
filter | query | object | Filters as |
Responses
200 OK
application/jsonCursor-paginated list of CardTransaction.
dataarray of CardTransactionrequiredpagePageInforequired
400 Malformed request: unparseable JSON, or an invalid header, path or query parameter (`errors[].field` is `header.X`, `path.x` or `query.x`). Body validation failures are 422 `validation-error`.
application/problem+json401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`).
application/problem+json403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction.
application/problem+json404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`).
application/problem+json429 Rate limit exceeded.
application/problem+jsondefault Unexpected error (`500 internal-error`, `501 not-implemented`, `502 provider-error`, `503 service-unavailable`, `504 provider-timeout`). Money operations that time out at the provider are never retried blindly; their state becomes `exception`/unknown and is reconciled.
application/problem+json
Code samples
curl -X GET "https://bank.wirebloom.com/v1/cards/{cardId}/transactions" \
-H "Authorization: Bearer $WIREBLOOM_API_KEY" \
-H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"const response = await fetch("https://bank.wirebloom.com/v1/cards/{cardId}/transactions", {
method: "GET",
headers: {
"Authorization": `Bearer ${process.env.WIREBLOOM_API_KEY}`,
"X-Tenant-Id": process.env.WIREBLOOM_CUSTOMER_ID!,
},
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const result = await response.json();import os
import requests
response = requests.request(
"GET",
"https://bank.wirebloom.com/v1/cards/{cardId}/transactions",
headers={
"Authorization": f"Bearer {os.environ['WIREBLOOM_API_KEY']}",
"X-Tenant-Id": os.environ["WIREBLOOM_CUSTOMER_ID"],
},
timeout=30,
)
response.raise_for_status()Unfreeze card
POST /v1/cards/{cardId}/unfreeze
- unfreezeCard
- Customer key
- API key scope cards:write
- Tenant customer
Members may act only on their own cards. A card frozen by the operator (frozenBy: operator) is unfrozen by operator staff only (409 invalid-transition).
Feature flag: cards; returns 404 with problem type feature-disabled when the flag is off for the operator.
API key scopes: cards:write (customer-level keys (X-Tenant-Id = the key's customer)).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
cardIdrequired | path | Uuid | Identifier (cardId). |
X-Tenant-Idrequired | header | Uuid | Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → |
X-Request-Id | header | string | Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details. |
Idempotency-Key | header | string | Optional idempotency key; same semantics as on money operations. |
Responses
200 OK
application/jsonidUuidrequiredread-onlyFields of id
customerIdUuidrequiredread-onlyFields of customerId
namestringrequiredtypeCardTyperequiredholderMembershipIdUuidrequiredholderNamestringread-onlyspendingBalanceIdUuidrequiredlast4string | nullrequiredread-onlyLast four digits of the PAN; null until the processor has assigned the card number.
expirystring | nullrequiredread-onlyMM/YY; null until assigned by the processor.
statusCardStatusrequiredread-onlyFields of status
limitsobjectrequiredshippingAddressAddress | nullcreatedAtTimestamprequiredread-onlyFields of createdAt
frozenBystring | nullread-onlyWho froze a
frozencard. Cards frozen by the operator (compliance) are unfrozen by operator staff only.statusReasonstring | nullread-onlyWhy the card is frozen, terminated or declined (e.g.
user_requested,compliance,lost).replacesCardIdstring | null (uuid)read-onlyThe card this card replaced.
controlsEnforcementstringread-onlyenforced: the card processor applieslimits;recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.walletsarray of objectread-onlyMobile wallet tokens (tokenisation status) reported by the processor.
Fields of wallets
walletstring | nullrequiredstatusstringrequired
401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`).
application/problem+json403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction.
application/problem+json404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`).
application/problem+json409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`.
application/problem+json429 Rate limit exceeded.
application/problem+jsondefault Unexpected error (`500 internal-error`, `501 not-implemented`, `502 provider-error`, `503 service-unavailable`, `504 provider-timeout`). Money operations that time out at the provider are never retried blindly; their state becomes `exception`/unknown and is reconciled.
application/problem+json
Code samples
curl -X POST "https://bank.wirebloom.com/v1/cards/{cardId}/unfreeze" \
-H "Authorization: Bearer $WIREBLOOM_API_KEY" \
-H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"const response = await fetch("https://bank.wirebloom.com/v1/cards/{cardId}/unfreeze", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.WIREBLOOM_API_KEY}`,
"X-Tenant-Id": process.env.WIREBLOOM_CUSTOMER_ID!,
},
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const result = await response.json();import os
import requests
response = requests.request(
"POST",
"https://bank.wirebloom.com/v1/cards/{cardId}/unfreeze",
headers={
"Authorization": f"Bearer {os.environ['WIREBLOOM_API_KEY']}",
"X-Tenant-Id": os.environ["WIREBLOOM_CUSTOMER_ID"],
},
timeout=30,
)
response.raise_for_status()