cards

Cards module (feature flag cards, D-25/Q-27): virtual and physical cards, lifecycle, PIN, 3DS decisions, card transactions.

Markdown version: cards.md

List cards

GET /v1/cards

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

NameInTypeDescription
X-Tenant-IdrequiredheaderUuid

Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → 403. For API keys it must equal the key's customer id (customer-level keys are bound to one customer) or, for operator-level keys (P9-T08b), the operator id.

X-Request-Idheaderstring

Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details.

cursorquerystring

Opaque cursor from page.nextCursor or page.prevCursor. Must be used with the same sort and filter as the request that produced it (400 invalid-cursor otherwise).

limitqueryinteger

Page size (max 100).

sortquerystring

Sort order; prefix - for descending. Cursor stability is guaranteed only for the default sort.

filterqueryobject

Filters as filter[field]=value. Multiple values for one field are comma-separated (OR); different fields combine with AND. Date ranges use filter[createdFrom]/filter[createdTo] (inclusive, RFC 3339 or date).

qquerystring

Free-text search (trigram; min 2 characters).

Responses

  • 200 OK application/json

    Schema CardPage

    Cursor-paginated list of Card.

  • 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+json

    Body Problem; see the error catalogue.

  • 401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`). application/problem+json

    Body Problem; see the error catalogue.

  • 403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction. application/problem+json

    Body Problem; see the error catalogue.

  • 404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`). application/problem+json

    Body Problem; see the error catalogue.

  • 429 Rate limit exceeded. application/problem+json

    Body Problem; see the error catalogue.

  • default 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

    Body Problem; see the error catalogue.

Code samples

Against the sandbox (https://bank.wirebloom.com/v1).

curl -X GET "https://bank.wirebloom.com/v1/cards" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"

Create card

POST /v1/cards

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

NameInTypeDescription
X-Tenant-IdrequiredheaderUuid

Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → 403. For API keys it must equal the key's customer id (customer-level keys are bound to one customer) or, for operator-level keys (P9-T08b), the operator id.

X-Request-Idheaderstring

Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details.

Idempotency-Keyrequiredheaderstring

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 Idempotency-Replayed: true. Same key + different body → 422 idempotency-key-reused. Concurrent request with a key still in progress → 409 idempotency-key-in-use + Retry-After. 5xx, 401, 403 (incl. step-up-required) and 429 responses are not stored: the key is released, so the retry (after re-authentication, step-up or back-off) may use the same key.

Request body

Required. application/json

Schema CardCreate

  • name stringrequired

    max length 50

  • type CardTyperequired

  • holderMembershipId Uuidrequired

  • spendingBalanceId Uuidrequired

  • limits object

    Fields of limits
    • perTransaction Money | null

    • daily Money | null

    • monthly Money | null

    • atmEnabled boolean

    • onlineEnabled boolean

    • blockedMccs array of string

  • shippingAddress Address | null

Responses

  • 201 Created application/json

    Schema Card

    • id Uuidrequiredread-only

      Fields of id
    • customerId Uuidrequiredread-only

      Fields of customerId
    • name stringrequired

      max length 50

    • type CardTyperequired

    • holderMembershipId Uuidrequired

    • holderName stringread-only

    • spendingBalanceId Uuidrequired

    • last4 string | nullrequiredread-only

      Last four digits of the PAN; null until the processor has assigned the card number.

      pattern ^[0-9]{4}$

    • expiry string | nullrequiredread-only

      MM/YY; null until assigned by the processor.

      pattern ^[0-9]{2}/[0-9]{2}$

    • status CardStatusrequiredread-only

      Fields of status
    • limits objectrequired

      Fields of limits
      • perTransaction Money | null

      • daily Money | null

      • monthly Money | null

      • atmEnabled boolean

      • onlineEnabled boolean

      • blockedMccs array of string

    • shippingAddress Address | null

    • createdAt Timestamprequiredread-only

      Fields of createdAt
    • frozenBy string | nullread-only

      Who froze a frozen card. Cards frozen by the operator (compliance) are unfrozen by operator staff only.

      One of: "customer", "operator", "provider"

    • statusReason string | nullread-only

      Why the card is frozen, terminated or declined (e.g. user_requested, compliance, lost).

    • replacesCardId string | null (uuid)read-only

      The card this card replaced.

    • controlsEnforcement stringread-only

      enforced: the card processor applies limits; recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.

      One of: "enforced", "recorded"

    • wallets array of objectread-only

      Mobile wallet tokens (tokenisation status) reported by the processor.

      Fields of wallets
      • wallet string | nullrequired

      • status stringrequired

        One of: "requested", "pending_verification", "active", "declined", "suspended", "deleted"

  • 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+json

    Body Problem; see the error catalogue.

  • 401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`). application/problem+json

    Body Problem; see the error catalogue.

  • 403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction. application/problem+json

    Body Problem; see the error catalogue.

  • 404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`). application/problem+json

    Body Problem; see the error catalogue.

  • 409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`. application/problem+json

    Body Problem; see the error catalogue.

  • 422 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+json

    Body Problem; see the error catalogue.

  • 429 Rate limit exceeded. application/problem+json

    Body Problem; see the error catalogue.

  • default 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

    Body Problem; see the error catalogue.

Code samples

Against the sandbox (https://bank.wirebloom.com/v1).

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"
}'

Get card

GET /v1/cards/{cardId}

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

NameInTypeDescription
cardIdrequiredpathUuid

Identifier (cardId).

X-Tenant-IdrequiredheaderUuid

Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → 403. For API keys it must equal the key's customer id (customer-level keys are bound to one customer) or, for operator-level keys (P9-T08b), the operator id.

X-Request-Idheaderstring

Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details.

If-None-Matchheaderstring

Conditional GET; 304 when unchanged.

Responses

  • 200 OK application/json

    Schema Card

    • id Uuidrequiredread-only

      Fields of id
    • customerId Uuidrequiredread-only

      Fields of customerId
    • name stringrequired

      max length 50

    • type CardTyperequired

    • holderMembershipId Uuidrequired

    • holderName stringread-only

    • spendingBalanceId Uuidrequired

    • last4 string | nullrequiredread-only

      Last four digits of the PAN; null until the processor has assigned the card number.

      pattern ^[0-9]{4}$

    • expiry string | nullrequiredread-only

      MM/YY; null until assigned by the processor.

      pattern ^[0-9]{2}/[0-9]{2}$

    • status CardStatusrequiredread-only

      Fields of status
    • limits objectrequired

      Fields of limits
      • perTransaction Money | null

      • daily Money | null

      • monthly Money | null

      • atmEnabled boolean

      • onlineEnabled boolean

      • blockedMccs array of string

    • shippingAddress Address | null

    • createdAt Timestamprequiredread-only

      Fields of createdAt
    • frozenBy string | nullread-only

      Who froze a frozen card. Cards frozen by the operator (compliance) are unfrozen by operator staff only.

      One of: "customer", "operator", "provider"

    • statusReason string | nullread-only

      Why the card is frozen, terminated or declined (e.g. user_requested, compliance, lost).

    • replacesCardId string | null (uuid)read-only

      The card this card replaced.

    • controlsEnforcement stringread-only

      enforced: the card processor applies limits; recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.

      One of: "enforced", "recorded"

    • wallets array of objectread-only

      Mobile wallet tokens (tokenisation status) reported by the processor.

      Fields of wallets
      • wallet string | nullrequired

      • status stringrequired

        One of: "requested", "pending_verification", "active", "declined", "suspended", "deleted"

  • 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+json

    Body Problem; see the error catalogue.

  • 403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction. application/problem+json

    Body Problem; see the error catalogue.

  • 404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`). application/problem+json

    Body Problem; see the error catalogue.

  • 429 Rate limit exceeded. application/problem+json

    Body Problem; see the error catalogue.

  • default 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

    Body Problem; see the error catalogue.

Code samples

Against the sandbox (https://bank.wirebloom.com/v1).

curl -X GET "https://bank.wirebloom.com/v1/cards/{cardId}" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"

Update card (name, balance, limits)

PATCH /v1/cards/{cardId}

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

NameInTypeDescription
cardIdrequiredpathUuid

Identifier (cardId).

X-Tenant-IdrequiredheaderUuid

Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → 403. For API keys it must equal the key's customer id (customer-level keys are bound to one customer) or, for operator-level keys (P9-T08b), the operator id.

X-Request-Idheaderstring

Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details.

If-Matchrequiredheaderstring

ETag of the representation being modified (from a prior GET/PATCH).

Request body

Required. application/json

Schema CardUpdate

  • name string

    max length 50

  • spendingBalanceId Uuid

  • limits object

    Fields of limits
    • perTransaction Money | null

    • daily Money | null

    • monthly Money | null

    • atmEnabled boolean

    • onlineEnabled boolean

    • blockedMccs array of string

Responses

  • 200 OK application/json

    Schema Card

    • id Uuidrequiredread-only

      Fields of id
    • customerId Uuidrequiredread-only

      Fields of customerId
    • name stringrequired

      max length 50

    • type CardTyperequired

    • holderMembershipId Uuidrequired

    • holderName stringread-only

    • spendingBalanceId Uuidrequired

    • last4 string | nullrequiredread-only

      Last four digits of the PAN; null until the processor has assigned the card number.

      pattern ^[0-9]{4}$

    • expiry string | nullrequiredread-only

      MM/YY; null until assigned by the processor.

      pattern ^[0-9]{2}/[0-9]{2}$

    • status CardStatusrequiredread-only

      Fields of status
    • limits objectrequired

      Fields of limits
      • perTransaction Money | null

      • daily Money | null

      • monthly Money | null

      • atmEnabled boolean

      • onlineEnabled boolean

      • blockedMccs array of string

    • shippingAddress Address | null

    • createdAt Timestamprequiredread-only

      Fields of createdAt
    • frozenBy string | nullread-only

      Who froze a frozen card. Cards frozen by the operator (compliance) are unfrozen by operator staff only.

      One of: "customer", "operator", "provider"

    • statusReason string | nullread-only

      Why the card is frozen, terminated or declined (e.g. user_requested, compliance, lost).

    • replacesCardId string | null (uuid)read-only

      The card this card replaced.

    • controlsEnforcement stringread-only

      enforced: the card processor applies limits; recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.

      One of: "enforced", "recorded"

    • wallets array of objectread-only

      Mobile wallet tokens (tokenisation status) reported by the processor.

      Fields of wallets
      • wallet string | nullrequired

      • status stringrequired

        One of: "requested", "pending_verification", "active", "declined", "suspended", "deleted"

  • 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+json

    Body Problem; see the error catalogue.

  • 401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`). application/problem+json

    Body Problem; see the error catalogue.

  • 403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction. application/problem+json

    Body Problem; see the error catalogue.

  • 404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`). application/problem+json

    Body Problem; see the error catalogue.

  • 409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`. application/problem+json

    Body Problem; see the error catalogue.

  • 412 `If-Match` does not match the current ETag (resource changed). application/problem+json

    Body Problem; see the error catalogue.

  • 422 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+json

    Body Problem; see the error catalogue.

  • 428 `If-Match` header is required for this operation. application/problem+json

    Body Problem; see the error catalogue.

  • 429 Rate limit exceeded. application/problem+json

    Body Problem; see the error catalogue.

  • default 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

    Body Problem; see the error catalogue.

Code samples

Against the sandbox (https://bank.wirebloom.com/v1).

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 '{}'

Activate a received physical card

POST /v1/cards/{cardId}/activate

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

NameInTypeDescription
cardIdrequiredpathUuid

Identifier (cardId).

X-Tenant-IdrequiredheaderUuid

Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → 403. For API keys it must equal the key's customer id (customer-level keys are bound to one customer) or, for operator-level keys (P9-T08b), the operator id.

X-Request-Idheaderstring

Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details.

Idempotency-Keyheaderstring

Optional idempotency key; same semantics as on money operations.

Responses

  • 200 OK application/json

    Schema Card

    • id Uuidrequiredread-only

      Fields of id
    • customerId Uuidrequiredread-only

      Fields of customerId
    • name stringrequired

      max length 50

    • type CardTyperequired

    • holderMembershipId Uuidrequired

    • holderName stringread-only

    • spendingBalanceId Uuidrequired

    • last4 string | nullrequiredread-only

      Last four digits of the PAN; null until the processor has assigned the card number.

      pattern ^[0-9]{4}$

    • expiry string | nullrequiredread-only

      MM/YY; null until assigned by the processor.

      pattern ^[0-9]{2}/[0-9]{2}$

    • status CardStatusrequiredread-only

      Fields of status
    • limits objectrequired

      Fields of limits
      • perTransaction Money | null

      • daily Money | null

      • monthly Money | null

      • atmEnabled boolean

      • onlineEnabled boolean

      • blockedMccs array of string

    • shippingAddress Address | null

    • createdAt Timestamprequiredread-only

      Fields of createdAt
    • frozenBy string | nullread-only

      Who froze a frozen card. Cards frozen by the operator (compliance) are unfrozen by operator staff only.

      One of: "customer", "operator", "provider"

    • statusReason string | nullread-only

      Why the card is frozen, terminated or declined (e.g. user_requested, compliance, lost).

    • replacesCardId string | null (uuid)read-only

      The card this card replaced.

    • controlsEnforcement stringread-only

      enforced: the card processor applies limits; recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.

      One of: "enforced", "recorded"

    • wallets array of objectread-only

      Mobile wallet tokens (tokenisation status) reported by the processor.

      Fields of wallets
      • wallet string | nullrequired

      • status stringrequired

        One of: "requested", "pending_verification", "active", "declined", "suspended", "deleted"

  • 401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`). application/problem+json

    Body Problem; see the error catalogue.

  • 403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction. application/problem+json

    Body Problem; see the error catalogue.

  • 404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`). application/problem+json

    Body Problem; see the error catalogue.

  • 409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`. application/problem+json

    Body Problem; see the error catalogue.

  • 429 Rate limit exceeded. application/problem+json

    Body Problem; see the error catalogue.

  • default 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

    Body Problem; see the error catalogue.

Code samples

Against the sandbox (https://bank.wirebloom.com/v1).

curl -X POST "https://bank.wirebloom.com/v1/cards/{cardId}/activate" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"

Freeze card

POST /v1/cards/{cardId}/freeze

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

NameInTypeDescription
cardIdrequiredpathUuid

Identifier (cardId).

X-Tenant-IdrequiredheaderUuid

Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → 403. For API keys it must equal the key's customer id (customer-level keys are bound to one customer) or, for operator-level keys (P9-T08b), the operator id.

X-Request-Idheaderstring

Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details.

Idempotency-Keyheaderstring

Optional idempotency key; same semantics as on money operations.

Responses

  • 200 OK application/json

    Schema Card

    • id Uuidrequiredread-only

      Fields of id
    • customerId Uuidrequiredread-only

      Fields of customerId
    • name stringrequired

      max length 50

    • type CardTyperequired

    • holderMembershipId Uuidrequired

    • holderName stringread-only

    • spendingBalanceId Uuidrequired

    • last4 string | nullrequiredread-only

      Last four digits of the PAN; null until the processor has assigned the card number.

      pattern ^[0-9]{4}$

    • expiry string | nullrequiredread-only

      MM/YY; null until assigned by the processor.

      pattern ^[0-9]{2}/[0-9]{2}$

    • status CardStatusrequiredread-only

      Fields of status
    • limits objectrequired

      Fields of limits
      • perTransaction Money | null

      • daily Money | null

      • monthly Money | null

      • atmEnabled boolean

      • onlineEnabled boolean

      • blockedMccs array of string

    • shippingAddress Address | null

    • createdAt Timestamprequiredread-only

      Fields of createdAt
    • frozenBy string | nullread-only

      Who froze a frozen card. Cards frozen by the operator (compliance) are unfrozen by operator staff only.

      One of: "customer", "operator", "provider"

    • statusReason string | nullread-only

      Why the card is frozen, terminated or declined (e.g. user_requested, compliance, lost).

    • replacesCardId string | null (uuid)read-only

      The card this card replaced.

    • controlsEnforcement stringread-only

      enforced: the card processor applies limits; recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.

      One of: "enforced", "recorded"

    • wallets array of objectread-only

      Mobile wallet tokens (tokenisation status) reported by the processor.

      Fields of wallets
      • wallet string | nullrequired

      • status stringrequired

        One of: "requested", "pending_verification", "active", "declined", "suspended", "deleted"

  • 401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`). application/problem+json

    Body Problem; see the error catalogue.

  • 403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction. application/problem+json

    Body Problem; see the error catalogue.

  • 404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`). application/problem+json

    Body Problem; see the error catalogue.

  • 409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`. application/problem+json

    Body Problem; see the error catalogue.

  • 429 Rate limit exceeded. application/problem+json

    Body Problem; see the error catalogue.

  • default 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

    Body Problem; see the error catalogue.

Code samples

Against the sandbox (https://bank.wirebloom.com/v1).

curl -X POST "https://bank.wirebloom.com/v1/cards/{cardId}/freeze" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"

Card transactions

GET /v1/cards/{cardId}/transactions

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

NameInTypeDescription
cardIdrequiredpathUuid

Identifier (cardId).

X-Tenant-IdrequiredheaderUuid

Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → 403. For API keys it must equal the key's customer id (customer-level keys are bound to one customer) or, for operator-level keys (P9-T08b), the operator id.

X-Request-Idheaderstring

Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details.

cursorquerystring

Opaque cursor from page.nextCursor or page.prevCursor. Must be used with the same sort and filter as the request that produced it (400 invalid-cursor otherwise).

limitqueryinteger

Page size (max 100).

sortquerystring

Sort order; prefix - for descending. Cursor stability is guaranteed only for the default sort.

filterqueryobject

Filters as filter[field]=value. Multiple values for one field are comma-separated (OR); different fields combine with AND. Date ranges use filter[createdFrom]/filter[createdTo] (inclusive, RFC 3339 or date).

Responses

  • 200 OK application/json

    Schema CardTransactionPage

    Cursor-paginated list of CardTransaction.

  • 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+json

    Body Problem; see the error catalogue.

  • 401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`). application/problem+json

    Body Problem; see the error catalogue.

  • 403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction. application/problem+json

    Body Problem; see the error catalogue.

  • 404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`). application/problem+json

    Body Problem; see the error catalogue.

  • 429 Rate limit exceeded. application/problem+json

    Body Problem; see the error catalogue.

  • default 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

    Body Problem; see the error catalogue.

Code samples

Against the sandbox (https://bank.wirebloom.com/v1).

curl -X GET "https://bank.wirebloom.com/v1/cards/{cardId}/transactions" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"

Unfreeze card

POST /v1/cards/{cardId}/unfreeze

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

NameInTypeDescription
cardIdrequiredpathUuid

Identifier (cardId).

X-Tenant-IdrequiredheaderUuid

Tenant context: the operator tenant id (staff operations) or customer tenant id (customer operations). Validated against the caller's memberships; mismatch → 403. For API keys it must equal the key's customer id (customer-level keys are bound to one customer) or, for operator-level keys (P9-T08b), the operator id.

X-Request-Idheaderstring

Client-supplied correlation id. Generated by the server when absent; always echoed in the response and in problem details.

Idempotency-Keyheaderstring

Optional idempotency key; same semantics as on money operations.

Responses

  • 200 OK application/json

    Schema Card

    • id Uuidrequiredread-only

      Fields of id
    • customerId Uuidrequiredread-only

      Fields of customerId
    • name stringrequired

      max length 50

    • type CardTyperequired

    • holderMembershipId Uuidrequired

    • holderName stringread-only

    • spendingBalanceId Uuidrequired

    • last4 string | nullrequiredread-only

      Last four digits of the PAN; null until the processor has assigned the card number.

      pattern ^[0-9]{4}$

    • expiry string | nullrequiredread-only

      MM/YY; null until assigned by the processor.

      pattern ^[0-9]{2}/[0-9]{2}$

    • status CardStatusrequiredread-only

      Fields of status
    • limits objectrequired

      Fields of limits
      • perTransaction Money | null

      • daily Money | null

      • monthly Money | null

      • atmEnabled boolean

      • onlineEnabled boolean

      • blockedMccs array of string

    • shippingAddress Address | null

    • createdAt Timestamprequiredread-only

      Fields of createdAt
    • frozenBy string | nullread-only

      Who froze a frozen card. Cards frozen by the operator (compliance) are unfrozen by operator staff only.

      One of: "customer", "operator", "provider"

    • statusReason string | nullread-only

      Why the card is frozen, terminated or declined (e.g. user_requested, compliance, lost).

    • replacesCardId string | null (uuid)read-only

      The card this card replaced.

    • controlsEnforcement stringread-only

      enforced: the card processor applies limits; recorded: the processor has not confirmed per-card controls yet (Integrated Finance, IF-21), limits are kept and shown but not guaranteed.

      One of: "enforced", "recorded"

    • wallets array of objectread-only

      Mobile wallet tokens (tokenisation status) reported by the processor.

      Fields of wallets
      • wallet string | nullrequired

      • status stringrequired

        One of: "requested", "pending_verification", "active", "declined", "suspended", "deleted"

  • 401 Missing, expired or invalid credentials (`unauthenticated`, `session-expired` with `reason` `idle` / `revoked` / `expired`, `invalid-api-key`, `mfa-required`). application/problem+json

    Body Problem; see the error catalogue.

  • 403 Authenticated but not allowed: missing capability or scope, tenant not in memberships, `step-up-required`, IP not allow-listed, impersonation restriction. application/problem+json

    Body Problem; see the error catalogue.

  • 404 Resource does not exist in this tenant (cross-tenant ids also return 404), or feature disabled (`feature-disabled`). application/problem+json

    Body Problem; see the error catalogue.

  • 409 State conflict: `invalid-transition`, `duplicate-recipient`, `quote-expired`, `insufficient-funds`, `idempotency-key-in-use` (with Retry-After), `not-cancellable`. application/problem+json

    Body Problem; see the error catalogue.

  • 429 Rate limit exceeded. application/problem+json

    Body Problem; see the error catalogue.

  • default 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

    Body Problem; see the error catalogue.

Code samples

Against the sandbox (https://bank.wirebloom.com/v1).

curl -X POST "https://bank.wirebloom.com/v1/cards/{cardId}/unfreeze" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"