limits

Per-customer limits (per transaction, daily, monthly, velocity) with tolerance bands, and the limit exception queue.

Markdown version: limits.md

Customer limits and usage

GET /v1/customers/{customerId}/limits

API key scopes: account:read or customers:manage (customer-level keys (X-Tenant-Id = the key's customer) and operator-level keys (X-Tenant-Id = the operator id), each with a scope of its own level).

Parameters

NameInTypeDescription
customerIdrequiredpathUuid

Identifier (customerId).

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 CustomerLimits

    • customerId Uuidrequired

    • limits LimitSetrequired

    • inheritsDefaults booleanrequired

    • usage LimitUsageread-only

      Fields of usage
      • today Moneyrequired

      • thisMonth Moneyrequired

      • todayCount integerrequired

    • updatedAt Timestamp | null

    • effectiveLimits LimitSetread-only

      Fields of effectiveLimits
      • perTransaction Money | null

      • daily Money | null

      • monthly Money | null

      • dailyCount integer | null

        min 0

      • velocityPerHour integer | null

        min 0

      • tolerancePercent integer

        Allowed overshoot before blocking; within the band the payment passes and raises an exception.

        min 0 · max 100 · default 0

      • action string

        Beyond the tolerance band: block refuses the payment (422 limit-exceeded), queue holds it for staff (on_hold).

        One of: "block", "queue"

        default "block"

      • perCurrency object

        Optional overrides keyed by ISO 4217 code with the same shape.

        Fields of perCurrency

        object

    • usageByCurrency objectread-only

      Usage per currency that has a limit, keyed by ISO 4217 code.

    • timeZone stringread-only

      Operator time zone the day and month are counted in.

    • scheduled array of ScheduledLimitSetread-only

  • 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/customers/{customerId}/limits" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"

My limits and usage (customer)

GET /v1/limits

API key scopes: account: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.

If-None-Matchheaderstring

Conditional GET; 304 when unchanged.

Responses

  • 200 OK application/json

    Schema CustomerLimits

    • customerId Uuidrequired

    • limits LimitSetrequired

    • inheritsDefaults booleanrequired

    • usage LimitUsageread-only

      Fields of usage
      • today Moneyrequired

      • thisMonth Moneyrequired

      • todayCount integerrequired

    • updatedAt Timestamp | null

    • effectiveLimits LimitSetread-only

      Fields of effectiveLimits
      • perTransaction Money | null

      • daily Money | null

      • monthly Money | null

      • dailyCount integer | null

        min 0

      • velocityPerHour integer | null

        min 0

      • tolerancePercent integer

        Allowed overshoot before blocking; within the band the payment passes and raises an exception.

        min 0 · max 100 · default 0

      • action string

        Beyond the tolerance band: block refuses the payment (422 limit-exceeded), queue holds it for staff (on_hold).

        One of: "block", "queue"

        default "block"

      • perCurrency object

        Optional overrides keyed by ISO 4217 code with the same shape.

        Fields of perCurrency

        object

    • usageByCurrency objectread-only

      Usage per currency that has a limit, keyed by ISO 4217 code.

    • timeZone stringread-only

      Operator time zone the day and month are counted in.

    • scheduled array of ScheduledLimitSetread-only

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

  • 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/limits" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"