Opt in to this period's one-time extra
Accepts this period's one-time extra quoted with POST .../spend_limit/quotes (operation burst): until the renewal, the period's usage may go past the spending limit by the quote's burst_amount. The customer's consent (the quote's consent_text, when and from where) is kept in the change log as evidence. Only from the customer's own login, before the quote's expires_at (10 minutes, never past the end of the period), in the period it was made for, while the limit and the shop's settings are as they were quoted, and once per period. The same quote sent again answers what the first request answered. An Idempotency-Key header is required, new for each change, so a retry after a timeout answers the first answer (for a day) even if the extra was granted but its answer was lost; the key with another body is refused. The customer gets an email confirming it (notification subscription:spend_limit_changed, when it is on) and you get the usage:burst_opted_in webhook.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
customer_id*stringThe Comecero customer id, or me.
subscription_id*stringThe customer's subscription.
Idempotency-Key*stringRequired. Names one change: the same request again with the same key (after a timeout, say) changes nothing more and answers as the first one did, for a day. 1 to 128 printable ASCII characters, sent once; missing or empty is refused (400, reference UbV150). Use a new random key, such as a UUID, for each change you mean to make. The same key with another body is refused (409, reference UbV151).
^[ -~]{1,128}$1 <= length <= 128application/json- body
This period's one-time extra the customer accepted, as quoted, with their consent. These are the only fields; anything else is refused (400, reference UbV174).
quote_id*stringThe quote, from POST .../spend_limit/quotes with operation burst.
length <= 64consent_accepted*booleanMust be true: the customer accepted the quote's consent_text. Only the customer's own login can give it (400, reference UbV174).
expected_revision*integerThe revision read with GET (409, reference UbV153, when it changed since).
0 <= valueThe extra.
application/json- response
This billing period's one-time extra on a customer's spending limit: the customer agreed that the period's usage may go past their limit by amount. It is fixed when they agree (a later change of the limit or of the shop's setting does not change it), counts for this period only (usage reported late for the period counts it too) and ends at the renewal. A period gets one at most, even after it was taken back. Taking it back keeps what the period already committed billable. Amounts are decimal strings in currency.
object?stringburst_id?stringThe same for one subscription period whatever happens to it.
subscription_id?stringcurrency?stringperiod_id?stringThe subscription period it is for.
base_limit_amount?stringThe spending limit in force when the customer agreed.
amount?stringThe extra the customer agreed to for this period.
max_total_amount?stringThe most the period's usage may be charged with it, base_limit_amount plus amount.
policy_revision?stringThe shop's spending limit settings it was offered under.
consent_id?stringThe customer's consent, kept in the change log (GET .../spend_limit/changes).
opted_in_at?stringdate-timeexpires_at?stringWhen the period ends and the extra with it (the renewal).
date-timeconsumed_amount?stringHow much of the extra the period used: its spend past the spending limit now, up to amount. Once taken back, counted on what the period had committed then.
status?stringactive in force; revoked taken back; expired its period ended.
"active""revoked""expired"revoked_at?|date-timecommitted_floor_amount?|Taken back: what the period had committed then, which stays billable whatever the limit. Null otherwise.
control_revision?integerThe spending limit's revision this answer was read at.
0 <= valuecurl -X PUT 'https://api.comecero.com/api/v1/customers/string/usage/string/spend_limit/burst' \ -H 'Idempotency-Key: 3f2b6c1e-9d4a-4e8b-a1f7-5c0d2e9b8a64' \ -H 'Content-Type: application/json' \ -d '{ "quote_id": "usq_8e1c3a5f7b9d4e2a6c0f8b1d3e5a7c9f", "consent_accepted": true, "expected_revision": 3}'{ "object": "usage_spend_limit_burst", "burst_id": "usb_0f4c2a9e7d1b3856c0a4e2f9b7d1c3a5", "subscription_id": "SB0123456789", "currency": "USD", "period_id": "2026120100", "base_limit_amount": "50", "amount": "10", "max_total_amount": "60", "policy_revision": "9b2d4f6a8c0e1b3d5f7a9c1e3b5d7f9a", "consent_id": "usc_3a5c7e9b1d2f4a6c8e0b2d4f6a8c0e1b", "opted_in_at": "2026-11-15T12:01:00Z", "expires_at": "2026-12-01T00:00:00Z", "consumed_amount": "0", "status": "active", "revoked_at": null, "committed_floor_amount": null, "control_revision": 4}Take back this period's one-time extra DELETE
Takes back this period's one-time extra, from the customer's login or one of your tokens. What the period already committed stays billable; only the headroom not used yet goes, and the period gets no other extra. Send the `revision` read with GET as `If-Match`, and an `Idempotency-Key`: the same key again answers what the first request answered, even after a later change; the key with another revision is refused. The customer gets an email confirming it (notification `subscription:spend_limit_changed`, when it is on) and you get the `usage:burst_revoked` webhook. A shopper's token takes back only its own customer's (`me` works).
List a customer's spending limit changes GET
Every change of the customer's spending limit on one subscription, newest first (the last 500): limits set and cleared, raises and one-time extras with the words the customer accepted, and extras taken back. A shopper's token reads only its own customer's (`me` works) and gets neither the address (`ip`) nor who by id (`by_id`).