comecerodocs

Opt in to this period's one-time extra

PUT
/customers/{customer_id}/usage/{subscription_id}/spend_limit/burst

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.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

customer_id*string

The Comecero customer id, or me.

subscription_id*string

The customer's subscription.

Header Parameters

Idempotency-Key*string

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

Match^[ -~]{1,128}$
Length1 <= length <= 128

Request Body

application/json
  1. 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*string

The quote, from POST .../spend_limit/quotes with operation burst.

Lengthlength <= 64
consent_accepted*boolean

Must be true: the customer accepted the quote's consent_text. Only the customer's own login can give it (400, reference UbV174).

expected_revision*integer

The revision read with GET (409, reference UbV153, when it changed since).

Range0 <= value

Response Body

The extra.

application/json
  1. 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?string
burst_id?string

The same for one subscription period whatever happens to it.

subscription_id?string
currency?string
period_id?string

The subscription period it is for.

base_limit_amount?string

The spending limit in force when the customer agreed.

amount?string

The extra the customer agreed to for this period.

max_total_amount?string

The most the period's usage may be charged with it, base_limit_amount plus amount.

policy_revision?string

The shop's spending limit settings it was offered under.

consent_id?string

The customer's consent, kept in the change log (GET .../spend_limit/changes).

opted_in_at?string
Formatdate-time
expires_at?string

When the period ends and the extra with it (the renewal).

Formatdate-time
consumed_amount?string

How 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?string

active in force; revoked taken back; expired its period ended.

Value in"active""revoked""expired"
revoked_at?|
Formatdate-time
committed_floor_amount?|

Taken back: what the period had committed then, which stays billable whatever the limit. Null otherwise.

control_revision?integer

The spending limit's revision this answer was read at.

Range0 <= value
Example Request
curl -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}'
Example Response
{  "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}