List a customer's credit history
The prepaid credit of one subscription's usage plans, every plan it has had: what was added, what bills took and what refunds took back, newest first, a page at a time. Entries have no description: that note is yours, so label them by type. A shopper's token reads only its own customer (me works). Every amount is in currency, the subscription's. With usage billing turned off, data is empty and currency is null. Here customer_id is the Comecero customer id, not your own 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 entries to return, from 1 to 100. The default is 25. A number outside 1 to 100 is taken as the nearest of them.
1 <= value <= 10025starting_after?stringThe id of the last entry of the page before. Leave it out for the newest entries.
Success.
application/json- response
object?stringAlways list.
data?array<>Newest first.
has_more?booleanTrue when there are older entries. Ask again with starting_after set to the last entry's id.
currency?|The subscription's currency, which every amount is in. Null when usage billing is off for the shop (then data is empty).
curl -X GET 'https://api.comecero.com/api/v1/customers/string/usage/string/credit_history'{ "object": "list", "data": [ { "object": "credit_history_entry", "id": "ule_8f2c1a9d0b7e4c3a", "type": "used", "amount": "-12.5", "credit_granted": null, "occurred_at": "2026-11-01T02:00:00Z" }, { "object": "credit_history_entry", "id": "ule_1a2b3c4d5e6f7a8b", "type": "added", "amount": "50", "credit_granted": "50", "occurred_at": "2026-10-14T09:12:00Z" } ], "has_more": false, "currency": "USD"}Get a customer's usage this period GET
Each of the customer's plans billed by use: used, included and percent per metric, what the next bill comes to so far (`amount_so_far`), when the allowance starts again (`reset_at`), the prepaid credit left (`credit`) and, when your shop sells credit, what the customer may buy (`buy_credit`), and, when your shop uses spending limits, the subscription's limit (`spend_limit`). No prices per metric. A shopper's token reads only its own customer (`me` works). With usage billing turned off, `data` is empty. Here `customer_id` is the Comecero customer id, not your own id. Kept for 5 minutes.
Get a customer's spending limit GET
The spending limit on one subscription's usage: the customer's own, the shop's default and the one in force, with the `revision` to send back when you change it, and this period's one-time extra (`burst`, `burst_offered`). Secret and trusted tokens also get every change made to it (`changes`). A shopper's token reads only its own customer (`me` works). Here `customer_id` is the Comecero customer id, not your own id.