comecerodocs

List a customer's spending limit changes

GET
/customers/{customer_id}/usage/{subscription_id}/spend_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).

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.

Query Parameters

limit?integer

How many to return, 1 to 100 (a number outside is brought into that range). Default 25.

Default25
starting_after?string

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

Response Body

A page of changes.

application/json
  1. response
object?string
data?array<>
has_more?boolean
next_starting_after?|

The last change_id on this page, to send as starting_after for the next one. Null when has_more is false.

Example Request
curl -X GET 'https://api.comecero.com/api/v1/customers/string/usage/string/spend_limit/changes'
Example Response
{  "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}