readyDocs Open the app

Balance and billing

For your balance and rates in code, use GET /v1/account. The /billing endpoints below power the dashboard: they aren’t versioned, and fields not listed here can change. A field that is listed here only ever grows: Ready doesn’t rename it, remove it or change what it means without dated notice. Prices are on Billing and pricing. To add money or turn on Auto top-up, use Add funds in Settings → Billing (Add funds).

#The Transaction object

One row of billing history.

row_typestring
transaction (a top-up, credit or refund on your balance), daily_usage (usage summed per day per category; usage isn’t itemized per text), account_usage (one row per day of usage by account: your own usage and your sub-accounts’ usage when you pay for workspaces, or a funded account’s own usage; its type is usage and its id looks like acct-own-2026-09-30) or stripe_charge (a card charge that doesn’t touch the balance, for example a brand registration). Handle any other value by skipping the row, so a new kind never breaks your parser.
idstring or integer
Treat it as an opaque string.
typestring
The kind of row within its row_type, for example daily_sms, stripe_charge, bonus, usage (on account_usage rows) or campaign_hold (the up-front charge for a campaign’s audience, a transaction row; what isn’t sent is refunded in a separate row). The full set today: on transaction rows purchase, auto_rebill, carrier_auto_rebill, carrier_deposit, commitment_overage, data_purchase, refund, bonus, credit, survey_completion_credit, onboarding_welcome_credit, card_verification_credit, admin_grant, admin_deduction, adjustment, tcpa_scrub_fee, fine, affiliate_payout and campaign_hold; on daily_usage rows daily_sms, daily_inbound, daily_validation, daily_scrub and daily_other; usage on account_usage rows and stripe_charge on stripe_charge rows. Use is_credit for the direction rather than the type, and treat a type not listed here like any other row.
cost_usdnumber
Positive, whether money came in or went out, except on adjustment and admin_deduction rows, which are negative when money left your balance. Use is_credit for the direction. On daily_usage and account_usage rows it is rounded to 4 decimal places.
is_creditboolean
true means money came onto your balance.
descriptionstring
What the row is, in words.
created_atstring
When it happened. A usage row carries the end of its day.
amountinteger
A legacy count, not money. Ignore it.
user_id, client_user_id, stripe_payment_id, blast_id, refund_key, source_refinternal, may be null
On transaction rows only: our own references (the account, a sub-account it was for, the card payment, the campaign, and internal keys that stop a row being written twice). They are not a stable contract; don’t build on them.

#Get balance and rates

Your balance and the exact rates you’re billed at for texts you send, including any negotiated rate.

Returns
data.balance_usdnumber | null
Your balance, rounded to cents. Use balance_cents for exact math.
data.balance_centsinteger | null
Your balance in cents.
data.planstring | null
Always null. Ready bills from your balance, not a plan; the field is kept so older integrations don’t break. Don’t build on it. It is deprecated, and it is removed only with the 90 days' notice described under Versioning.
data.sms_rate_usd_per_segmentnumber | null
Your per-segment rate. null if it couldn’t be read; retry.
data.carrier_fee_usd_per_segmentnumber | null
The carrier fee per segment. null when the rate is. Only the sum of sms_rate_usd_per_segment and this field is the contract: it is what one segment costs, and how that sum splits between the two fields can differ from the pricing page.
data.compliance_usd_per_segmentnumber | null
The compliance surcharge per segment for the checks your account has on: number validation and TCPA scrubbing, each when it’s on. 0 when both are off or your account isn’t charged it. null if it couldn’t be read; retry.
data.mms_usd_per_messagenumber | null
Your price for one text with an image, carrier fee included, whatever its length. null if it couldn’t be read; retry.
data.managed_billing_hiddenboolean
Only present, as true, when an agency pays for your account. Its wallet and prices are the agency’s, so the balance, plan and every price above are null.
Errors
HTTPCodeWhen
500internal_errorRead failed. Retry.
curl "https://api.tryready.com/v1/account" \
  -H "X-API-Key: $READY_API_KEY"
Returns:
{
  "success": true,
  "data": {
    "balance_usd": 481.25,
    "balance_cents": 48125,
    "plan": null,
    "sms_rate_usd_per_segment": 0.0075,
    "carrier_fee_usd_per_segment": 0.0045,
    "compliance_usd_per_segment": 0.003,
    "mms_usd_per_message": 0.0305
  }
}

#List billing history

Top-ups, credits, refunds and card charges one by one, and usage summed per day. Needs the view_billing permission.

Parameters

from, toYYYY-MM-DD · query
UTC dates, inclusive. Without from you get the last 90 days. Any other format is ignored, not rejected: check summary.from and summary.to to confirm your filter applied. An account its agency pays for gets no from or to in summary.
limitinteger · queryDefault 20Max 1000
Page size. 0, negative or non-numeric values fall back to 20.
offsetinteger · queryDefault 0
Rows to skip.

Returns a list of Transaction objects in data. For per-message cost, use cost_usd on GET /v1/messages. At most the 200 newest top-up and credit rows, and the 200 newest refunds, are returned per range, so narrow from and to to see older ones. A new top-up or credit shows at once. Usage can lag up to 30 seconds, and the first load after a quiet spell may show older usage while it refreshes.

Returns
totalinteger
Rows in the range.
is_topupboolean
On each row and on each summary.type_totals entry: true when the row is money paid in (a purchase, auto-rebill, commitment payment or carrier deposit), false for usage, refunds and credits.
summaryobject
spend_usd (money charged to your card in the range), count, from, to, type_totals (one entry per type: count, amount, cost_usd, is_credit), ledger_rows_capped and refund_rows_capped (true when that part of the list was cut at the row limit), ledger_row_limit (that limit, a number), and complete: false when the list or spend_usd is partial (card charges couldn’t be read, card_charges_unavailable, or older top-ups are past the row limit); retry or narrow the range before trusting the total. For an account its agency pays for (a sub-account made with billing: "agency", or any call with X-Sub-Account-Id for one), the rows are its own usage, one per day, and summary is only { "complete": true }.
Errors
HTTPCodeWhen
503permission_check_unavailableThe permission check couldn’t run. Retry.
500no codeTransactions couldn’t be loaded. Retry.
curl "https://api.tryready.com/billing/transactions?from=2026-09-01&to=2026-09-30&limit=200" \
  -H "X-API-Key: $READY_API_KEY"
Returns:
{
  "success": true,
  "data": [
    {
      "row_type": "daily_usage",
      "id": "sms-2026-09-30",
      "type": "daily_sms",
      "amount": -16,
      "cost_usd": 0.192,
      "description": "Texts sent: 16 messages",
      "created_at": "2026-09-30T23:59:59.000Z"
    },
    {
      "row_type": "stripe_charge",
      "id": "stripe-ch_3Q7xYz…",
      "type": "stripe_charge",
      "cost_usd": 25,
      "description": "Brand Registration: Acme Dental LLC",
      "created_at": "2026-09-12T15:03:22.410Z"
    },
    {
      "row_type": "transaction",
      "id": 24892412,
      "type": "bonus",
      "amount": 0,
      "cost_usd": 10,
      "description": "Credit from Ready support: $10.00",
      "created_at": "2026-09-02T18:44:09.871Z"
    }
  ],
  "total": 3,
  "summary": {
    "spend_usd": 25,
    "count": 3,
    "from": "2026-09-01",
    "to": "2026-09-30"
  }
}

#Export billing history as CSV

The same history as List billing history, as one CSV file. Needs the view_billing permission.

Parameters

from, toYYYY-MM-DD · query
UTC dates, inclusive. Leave both out for the whole history. A date in any other format is refused.

Returns text/csv with the columns id, type, amount, cost_usd, description, created_at, category and sub_account (the name of the sub-account a row was for, on an agency’s own export; otherwise empty). created_at is UTC with no zone: YYYY-MM-DD HH:MM:SS.ffffff for most rows, YYYY-MM-DD HH:MM:SS for card charges, and a bare YYYY-MM-DD in the export of an account its agency pays for, which gets its own usage, one row per UTC day. It isn’t the ISO Z form that List billing history uses, so parse each format you meet. New columns are only ever added at the end, so read columns by header name, not position.

Errors
HTTPCodeWhen
400no codeA date isn’t YYYY-MM-DD, or from is after to.
422export_range_too_largeToo many rows for one file. Pick a shorter range.
429no codeToo many exports in a short time. Wait, then retry.
500no codeThe file couldn’t be built. Retry. A download that stops partway is not a complete file.
curl "https://api.tryready.com/billing/export?from=2026-09-01&to=2026-09-30" \
  -H "X-API-Key: $READY_API_KEY"

#Get billing status

Whether the account that pays is in good standing. When a payment failed, lists what’s failing.

Returns
data.billing_statusstring
active when all is well; past_due after a failed subscription payment; at_risk after your card is refused for automatic top-ups, or when the account’s last monthly subscription (a number or registration fee) has ended; fraud_hold or canceled when the account is on hold or closed. In rare cases a cancellation for non-payment is undone within minutes, when nothing on the account was released. New values may be added, so handle an unknown one.
data.past_due_sincestring | null
When the account went past due, ISO 8601. null when it isn’t.
data.failing_subscriptions[]object[]
Only when past_due: type (brand, campaign, phone_number or blue_line), record_id, label, status (past_due, unpaid or incomplete).
Errors
HTTPCodeWhen
500no codeThe status couldn’t be loaded. Retry.
curl "https://api.tryready.com/billing/status" \
  -H "X-API-Key: $READY_API_KEY"
Returns:
{
  "success": true,
  "data": {
    "billing_status": "active",
    "past_due_since": null,
    "failing_subscriptions": []
  }
}

#Get saved cards

The cards on file for the account that pays. Only brand, last 4 and expiry; never the card number. Needs the view_billing permission.

Returns
data.has_cardboolean
Whether a card is on file.
data.cards[]object[]
id (an opaque string: pass it back as is, and do not rely on its format, which can differ by payment processor), brand, last4, exp (M/YYYY) and is_primary. The primary card is first.
data.brand, data.last4, data.expstring
A copy of the primary card’s fields. Only present when has_card is true.
data.billed_to_agencyboolean
Only present, as true, when an agency pays for your account. The cards on file are the agency’s, so has_card is false and cards is empty.
data.decline_pausedboolean
Only present, as true, while the account’s card is paused after a decline.
stripe_unconfiguredboolean
Outside data. Only present, as true, when Ready can’t reach its card processor. Then has_card: false means unknown, not “no card on file”.
Errors
HTTPCodeWhen
503permission_check_unavailableThe permission check couldn’t run. Retry.
500cards_not_loadedThe cards couldn’t be loaded. Retry.
curl "https://api.tryready.com/billing/payment-method" \
  -H "X-API-Key: $READY_API_KEY"
Returns:
{
  "success": true,
  "data": {
    "has_card": true,
    "brand": "visa",
    "last4": "4242",
    "exp": "8/2028",
    "cards": [
      {
        "id": "pm_1Q2w3E4r5T6y7U8i",
        "brand": "visa",
        "last4": "4242",
        "exp": "8/2028",
        "is_primary": true
      }
    ]
  }
}

#Get spend history

What you spent each day for the last 30 days, this month and last month, and a projection for this month. In dollars, by UTC day (the daily report counts days in the report time zone, so a day’s total can differ from its). Needs the view_billing permission.

Returns
data.daily[]object[]
30 rows of date and amount, oldest first. Days with no spend are 0.
data.this_month_spent, data.last_month_spentnumber
Dollars spent this month so far, and last month.
data.projectionnumber
This month so far, divided by days elapsed, times days in the month.
data.vs_last_month_pctinteger | null
Projection against last month. null when last month was 0.
data.days_elapsed, data.days_in_monthinteger
The two numbers projection is worked from.
Errors
HTTPCodeWhen
503permission_check_unavailableThe permission check couldn’t run. Retry.
500no codeSpend history couldn’t be loaded. Retry.
curl "https://api.tryready.com/billing/spend-history" \
  -H "X-API-Key: $READY_API_KEY"
Returns:
{
  "success": true,
  "data": {
    "daily": [
      {
        "date": "2026-09-17",
        "amount": 0
      },
      {
        "date": "2026-09-18",
        "amount": 12.4
      }
    ],
    "this_month_spent": 184.2,
    "last_month_spent": 301.75,
    "projection": 356.89,
    "vs_last_month_pct": 18,
    "days_elapsed": 16,
    "days_in_month": 31
  }
}

#Add funds

Charge a saved card and add the amount to your balance. Needs the manage_billing permission. Send an Idempotency-Key so a retry never charges twice.

Parameters

amount_usdnumber · bodyRequired
Dollars to add, like 50. A number, not a string. Other fields in the body are ignored.
payment_method_idstring · body
The id of a card from Get saved cards. Without it, the primary card is charged. 400 card_not_on_file if that card is gone.
confirm_duplicateboolean · body
Send true to add the same amount again within minutes of the last top-up. Without it, that second charge is refused with 409 recent_duplicate.
Returns

Charged: data.charged (false on a replay of a payment that already landed, with data.already_processed true), data.amount_charged (dollars, as a string), data.balance_usd, data.card_brand and data.card_last4. When the bank asks the cardholder to confirm, data.client_secret and data.payment_intent_id come back instead and nothing is charged until the card is confirmed. Other fields in data are kept for older callers: don’t depend on them.

Errors

Every refusal below happens before a charge unless its message says the payment went through. Branch on code.

HTTPCodeWhen
400no codeamount_usd is missing or 0, or the body used the retired credits field.
400invalid_fieldamount_usd isn’t a number, or confirm_duplicate isn’t true or false.
400amount_too_smallBelow the minimum top-up.
400max_single_chargeAbove the most one charge can add; cap_usd says how much.
400no_cardNo card is on file.
400card_not_on_filepayment_method_id isn’t a card on this account.
403agency_bills_youAn agency pays for this account.
403account_suspendedThe account is suspended.
403billing_exemptYour sends are free; there’s nothing to pay for.
409recent_duplicateThe same amount was added a moment ago. duplicate_of names that payment.
409purchase_in_progressAn earlier attempt at this purchase is still running. Check your balance before you retry.
429daily_cap_reachedThis would pass the daily top-up limit.
429card_decline_stormThis card was declined several times in the last 24 hours. Use a different card. Not a rate limit: retrying the same card won’t clear it.
429account_decline_stormCard payments on this account are paused after declines on several cards. When known, retry_after (ISO 8601) says when they reopen; there is no Retry-After header.
202payment_processingThe payment is still clearing, or it went through and is being added to your balance. success is false but this is not a failure: don’t pay again and don’t retry. payment_intent_id names the payment, and error is the sentence to show.
500payment_not_startedNothing was charged. Retry.
500charged_not_creditedThe card was charged and the balance hasn’t updated yet. Don’t pay again.
500balance_not_loadedThe payment went through and was added; read your balance again.
502charge_outcome_unknownThe charge may or may not have gone through. Check your balance before you try again.
503payments_unavailable, purchase_unavailable, or a *_check_unavailable codeA safety check couldn’t run, so nothing was charged. Retry in a minute.
curl -X POST "https://api.tryready.com/billing/purchase" \
  -H "X-API-Key: $READY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: topup-1" \
  -d '{
    "amount_usd": 50
  }'
Returns:
{
  "success": true,
  "data": {
    "charged": true,
    "already_processed": false,
    "amount_charged": "50.00",
    "balance_usd": 531.25,
    "card_brand": "visa",
    "card_last4": "4242"
  }
}

#How a text is priced

Cost of one text = segments × (sms_rate_usd_per_segment + carrier_fee_usd_per_segment + compliance_usd_per_segment). A text with an image costs mms_usd_per_message + compliance_usd_per_segment, whatever its length. All four come from one call to GET /v1/account. Replies you receive are billed too, per segment, at your send rate plus the carrier fee, unless your account has its own price for received texts. That price isn’t in GET /v1/account; see Your fees on Billing and pricing. When someone texts STOP, START or HELP, Ready answers automatically, as carriers require. That answer is billed like a text you send. If your balance can’t cover it, it is sent free.

A resend Ready makes after a failed delivery is billed at the send rate and carrier fee, without compliance_usd_per_segment, as a separate transaction line. See Failures Ready resends for you.

The rates are your own, so read them from that call instead of hard-coding them. The numbers in the examples on this page are for illustration only. Where to see your prices in the app is on Billing and pricing.

Older paths
  • GET /v1/balance and GET /v1/account/balance: the same body as GET /v1/account. A call with an API key gets Deprecation: true and a Link to GET /v1/account, with no Sunset: both paths keep working (see Versioning).
  • GET /billing/balance: the dashboard’s balance read. Use GET /v1/account. A call with an API key gets Deprecation: true and a Link to GET /v1/account, with no Sunset: the path keeps working and the body doesn’t change. It also returns forecast fields (monthly_spend for this calendar month in UTC, monthly_messages for the last 30 days, daily_avg_send, estimated_days_left, and number_price_cents, your monthly price per number in cents), some cached for up to 15 minutes. Its balance and estimated_segments count 1-segment texts, not money. Its flags are not all the same type: sandbox_mode, rate_locked, auto_rebill_enabled and auto_resize_enabled are 0 or 1 integers, while is_custom_rate, is_registered, dlc_pending, dlc_warming, sandbox_trial, auto_rebill_paused and below_low_balance are true or false. Read each as it is sent.