List a customer's spending limit changes
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).
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
customer_id*stringThe Comecero customer id, or me.
subscription_id*stringThe customer's subscription.
limit?integerHow many to return, 1 to 100 (a number outside is brought into that range). Default 25.
25starting_after?stringA change_id from the page before: the page starts after it. One that is not a change of this limit is refused (400, reference UbV179).
A page of changes.
application/json- response
object?stringdata?array<>has_more?booleannext_starting_after?|The last change_id on this page, to send as starting_after for the next one. Null when has_more is false.
curl -X GET 'https://api.comecero.com/api/v1/customers/string/usage/string/spend_limit/changes'{ "object": "list", "data": [ { "object": "usage_spend_limit_change", "change_id": "slc_7d9f1b3a5c7e4d6f8a0b2c4e6d8f0a1b", "at": "2026-11-15T12:01:00Z", "action": "burst_opted_in", "by_type": "customer", "by_id": "0093717976099CuAiEBXu4", "from": "50", "to": "50", "ip": "203.0.113.7", "burst_id": "usb_0f4c2a9e7d1b3856c0a4e2f9b7d1c3a5", "consent_id": "usc_3a5c7e9b1d2f4a6c8e0b2d4f6a8c0e1b", "consent_text": "For this billing period only, until 2026-12-01 00:00 UTC, I allow my usage to go past my spending limit of 50.00 USD by up to 10.00 USD, so up to 60.00 USD of usage, before tax, may be charged to me for this period. Usage already recorded this period that the limit held back may be billed under it. It ends at the renewal, and I can take it back at any time; usage already billed stays billed." }, { "object": "usage_spend_limit_change", "change_id": "slc_1e3a5c7e9b2d4f6a8c0e1b3d5f7a9c0b", "at": "2026-11-12T09:30:00Z", "action": "set", "by_type": "customer", "by_id": "0093717976099CuAiEBXu4", "from": null, "to": "50", "ip": "203.0.113.7", "burst_id": null, "consent_id": null, "consent_text": null } ], "has_more": false, "next_starting_after": null}Opt in to this period's one-time extra PUT
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.
Get a customer's automatic top-up GET
One subscription's automatic top-up of its prepaid credit: whether the shop offers it, whether it is on and why not, the amounts and the card the customer accepted, this month's caps and what they used, and the latest top-up. Send its `revision` back when you change it. A shopper's token reads only its own customer (`me` works). Here `customer_id` is the Comecero customer id, not your own id.