Get a sub-customer's credits
The balance (available, reserved, the next expiry), the lots that still hold credits (soonest expiry first: the order they are spent in) and the ledger entries, newest first, paged with cursor.
Scope: one of partner.manage, partner.read. Rate limit: 300 requests per minute per API key.
AuthorizationBearer <msk_live_…>An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.
Scope: partner.read
customerId*stringThe sub-customer's id (not its external_id).
uuidcursor?stringOpaque cursor from meta.next_cursor.
length <= 200limit?integer1 <= value <= 20050Balance, open lots and entries
application/json- response
data*meta*curl -X GET 'https://app.messora.tech/api/v1/partner/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/credits'{ "data": { "balance": { "available": 460, "next_expiry": "2027-01-31T21:00:00Z", "next_expiry_amount": 460, "reserved": 40 }, "customer_id": "019a8c2e-4f1b-7a00-9c3d-5e7a10000001", "entries": [ { "actor_type": "api_key", "amount": 500, "created_at": "2026-12-01T09:00:00Z", "id": "019a8c2e-4f1b-7a00-9c3d-5e7a10000201", "kind": "grant", "lot_id": "019a8c2e-4f1b-7a00-9c3d-5e7a10000101", "reason": "December package", "reference": "", "reservation_id": null } ], "lots": [ { "amount": 500, "created_at": "2026-12-01T09:00:00Z", "expired_at": null, "expires_at": "2027-01-31T21:00:00Z", "id": "019a8c2e-4f1b-7a00-9c3d-5e7a10000101", "idempotency_key": "inv-2026-12-1042", "reason": "December package", "remaining": 460, "reserved": 40, "source": "grant" } ] }, "meta": { "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff" }}Update a sub-customer PATCH
Changes the fields sent; null clears a contact field. metadata replaces the stored object. A suspended customer keeps its credits; external_id cannot change. Scope: partner.manage. Rate limit: 300 requests per minute per API key.
Grant credits POST
Adds a lot of amount credits that expires at expires_at (required, in the future: 422 CREDIT_EXPIRY_REQUIRED otherwise). The Idempotency-Key header is required: a grant with a key this customer already used returns that grant (200) instead of adding credits again, for good (not only for 24 hours). Credits are spent soonest expiry first. Scope: partner.manage. Rate limit: 300 requests per minute per API key.