limits (operator)

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"

Set customer limits

PUT /v1/customers/{customerId}/limits

effectiveFrom (default now, not in the past) schedules the change.

Concurrency: If-Match with the current ETag is required (428 if absent, 412 if stale).

API key scopes: customers:manage (operator-level keys only (X-Tenant-Id = the operator id)).

Step-up and API keys (P15-T01): API keys holding the scope call it without a step-up; every change made with a key is emailed to every operator owner (control_changed_by_api_key, locked category: what changed, the key name and prefix, a link to the screen) and audited with the key id. The route's validation applies to keys exactly as to sessions.

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-Matchrequiredheaderstring

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

Request body

Required. application/json

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

  • 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 PUT "https://bank.wirebloom.com/v1/customers/{customerId}/limits" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID" \
  -H "If-Match: \"<etag>\"" \
  -H "Content-Type: application/json" \
  --data '{
  "limits": {}
}'

Operator default limits

GET /v1/ops/limits

Replaces the retired OperatorSettings.defaultLimits.

API key scopes: operator:read (operator-level keys only (X-Tenant-Id = the operator id)).

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 OperatorLimits

    Operator default limit set (customers inherit it unless they have their own).

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

Set operator default limits

PUT /v1/ops/limits

Concurrency: If-Match with the current ETag is required (428 if absent, 412 if stale).

API key scopes: operator:write (operator-level keys only (X-Tenant-Id = the operator id)).

Step-up and API keys (P15-T01): API keys holding the scope call it without a step-up; every change made with a key is emailed to every operator owner (control_changed_by_api_key, locked category: what changed, the key name and prefix, a link to the screen) and audited with the key id. The route's validation applies to keys exactly as to sessions.

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-Matchrequiredheaderstring

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

Request body

Required. application/json

Schema OperatorLimitsWrite

Responses

  • 200 OK application/json

    Schema OperatorLimits

    Operator default limit set (customers inherit it unless they have their own).

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

  • 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 PUT "https://bank.wirebloom.com/v1/ops/limits" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID" \
  -H "If-Match: \"<etag>\"" \
  -H "Content-Type: application/json" \
  --data '{
  "limits": {}
}'

Monitoring alert queue

GET /v1/ops/monitoring-alerts

API key scopes: compliance:read (operator-level keys only (X-Tenant-Id = the operator id)).

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

withTotalqueryboolean

Include page.total (may be slower). Computed on the first page only (a request without cursor); later pages omit page.total (scalability audit X-32).

Responses

  • 200 OK application/json

    Schema MonitoringAlertPage

    Cursor-paginated list of MonitoringAlert.

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

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

Get monitoring alert

GET /v1/ops/monitoring-alerts/{alertId}

API key scopes: compliance:read (operator-level keys only (X-Tenant-Id = the operator id)).

Parameters

NameInTypeDescription
alertIdrequiredpathUuid

Identifier (alertId).

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.

Responses

  • 200 OK application/json

    Schema MonitoringAlert

    Transaction-monitoring alert (FR-OPS-01).

    • id Uuidrequiredread-only

      Fields of id
    • kind stringrequired

      One of: "monitoring"

    • rule MonitoringRuleKindrequired

    • customerId Uuidrequired

    • customerName stringread-only

      Customer legal name (display).

    • subject objectrequired

      Fields of subject
      • type stringrequired

      • id Uuidrequired

    • severity stringrequired

      One of: "low", "medium", "high"

    • summary stringrequired

    • details objectrequired

      Fields of details

      object

    • status stringrequired

      One of: "open", "resolved", "dismissed"

    • resolution string | null

    • comment string | null

    • resolvedBy Uuid | null

    • resolvedAt Timestamp | null

    • rescreenRequestedAt Timestamp | null

    • createdAt Timestamprequiredread-only

      Fields of createdAt
    • canDecide booleanread-only

      The caller may decide this item now (open, and the caller's role holds the deciding capability). Clients show decision buttons only when true; the API still checks on the decision route.

    • action string

      hold (P10-T02): an open alert of this rule holds its payment in the pre-submission compliance gate until a compliance decision; alert only queues it.

      One of: "alert", "hold"

    • holdId string | null (uuid)

      The compliance hold this alert opened or joined (decide it at /ops/compliance/holds/{holdId}).

    • suppressionId string | null (uuid)

      The suppression that dismissed the alert on creation.

  • 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/ops/monitoring-alerts/{alertId}" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"

Transaction monitoring rules

GET /v1/ops/monitoring-rules

API key scopes: operator:read (operator-level keys only (X-Tenant-Id = the operator id)).

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.

Responses

  • 200 OK application/json
  • 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/ops/monitoring-rules" \
  -H "Authorization: Bearer $WIREBLOOM_API_KEY" \
  -H "X-Tenant-Id: $WIREBLOOM_CUSTOMER_ID"