Limits in API Responses

The limits object in transaction responses: its fields, labels, and example 200 and 403 responses.

Every response from /issue_sila, /transfer_sila, /redeem_sila and /transact has a limits object. It lists every limit that applied to the transaction, both on success (200) and when a limit denies the transaction (403). Use it to see which limits apply and how much of each remains, so you can keep requests within them and avoid 403 errors.

The request quota isn't part of this object. It's reported in response headers instead; see Request Quotas.

The limits object

Each key identifies a limit: a default limit's label, or a custom limit's ID. Each value has these fields:

FieldTypeMeaning
labelstringThe limit's name. See "Reading a label" below.
amountintegerThe limit, in cents. For a count limit, it's a number of transactions.
durationintegerThe rolling window, in seconds: 86400 for 24 hours, 2592000 for 30 days.
remainingintegerIn cents, or a number of transactions for a count limit. On a successful transaction, how much is left in the window after it. For the limit that a denied transaction exceeded, how much was left before it, which is zero or negative if earlier transactions already used the whole limit.

It's an empty object when no limit applies to the transaction, for example a /redeem_sila request in an application without custom limits.

Reading a label

LabelLevelKind
NON_BUSINESS_ENTITY_24H_ACH_PULL_DEFAULT, NON_BUSINESS_ENTITY_30D_ACH_PULL_DEFAULTPer user: individualsDefault
BUSINESS_ENTITY_24H_ACH_PULL_DEFAULT, BUSINESS_ENTITY_30D_ACH_PULL_DEFAULTPer user: businessesDefault
APP_24H_ACH_PULL_DEFAULT, APP_30D_ACH_PULL_DEFAULTApp-wideDefault
Ends in TRANSACTION_AMOUNT_LIMIT or TRANSACTION_COUNT_LIMIT, such as ACH_ISSUE_NON_BUSINESS_ENTITY_TRANSACTION_AMOUNT_LIMITPer user if the label contains an end-user type, app-wide otherwiseCustom. The key is the limit's ID. A label ending in _OVERRIDE is a temporary limit.

A label that contains ENTITY is one of the end user's own limits. Any other label is app-wide.

Per-user and app-wide usage

  • Per-user entries count only the transactions of the end user making the request. End users don't affect each other's per-user usage.
  • App-wide entries count the transactions of all your application's end users. Every end user's debits reduce the same app-wide remaining, so it can drop between two requests from the same end user.

Other applications' transactions never count toward your application's limits, and limits data is only returned to your application.

200 example

An individual requests a $2,000 ACH debit with /issue_sila. Earlier, they debited $3,000 in the last 24 hours and $12,000 in the last 30 days. Their application has the default limits. The app-wide amounts below are illustrative, and your responses show your application's own. Other response fields are left out.

{
  "success": true,
  "status": "SUCCESS",
  "message": "Transaction submitted to the processing queue.",
  "transaction_id": "<transaction id>",
  "limits": {
    "NON_BUSINESS_ENTITY_24H_ACH_PULL_DEFAULT": {
      "label": "NON_BUSINESS_ENTITY_24H_ACH_PULL_DEFAULT",
      "amount": 1000000,
      "duration": 86400,
      "remaining": 500000
    },
    "NON_BUSINESS_ENTITY_30D_ACH_PULL_DEFAULT": {
      "label": "NON_BUSINESS_ENTITY_30D_ACH_PULL_DEFAULT",
      "amount": 3000000,
      "duration": 2592000,
      "remaining": 1600000
    },
    "APP_24H_ACH_PULL_DEFAULT": {
      "label": "APP_24H_ACH_PULL_DEFAULT",
      "amount": 50000000,
      "duration": 86400,
      "remaining": 38000000
    },
    "APP_30D_ACH_PULL_DEFAULT": {
      "label": "APP_30D_ACH_PULL_DEFAULT",
      "amount": 500000000,
      "duration": 2592000,
      "remaining": 290000000
    }
  }
}

After this debit, the individual has $5,000 left in their 24-hour limit and $16,000 in their 30-day limit. The app-wide entries count every end user's debits.

403 example

The same individual then requests a $6,000 debit. Together with the $5,000 already debited in the last 24 hours, that's over their $10,000 24-hour limit, so Sila denies it and doesn't create the transaction. The other entries in limits are left out.

{
  "success": false,
  "status": "FAILURE",
  "message": "Transaction limit exceeded for limit NON_BUSINESS_ENTITY_24H_ACH_PULL_DEFAULT.",
  "limits": {
    "NON_BUSINESS_ENTITY_24H_ACH_PULL_DEFAULT": {
      "label": "NON_BUSINESS_ENTITY_24H_ACH_PULL_DEFAULT",
      "amount": 1000000,
      "duration": 86400,
      "remaining": 500000
    }
  }
}

The message names the exceeded limit, and its entry shows the $5,000 the individual could still debit. A request for $5,000 or less would pass.

When more than one limit is exceeded, the message names one of them: an amount limit before a count limit, and a per-user limit before an app-wide one. Check every entry to see which others are close.


Did this page help you?