Skip to Content
Credits

Get a sub-customer's credits

GET
/partner/customers/{customerId}/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.

Authorization

headerAuthorizationBearer <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

Path Parameters

customerId*string

The sub-customer's id (not its external_id).

Formatuuid

Query Parameters

cursor?string

Opaque cursor from meta.next_cursor.

Lengthlength <= 200
limit?integer
Range1 <= value <= 200
Default50

Response Body

Balance, open lots and entries

application/json
  1. response
data*
meta*
Example Request
curl -X GET 'https://app.messora.tech/api/v1/partner/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/credits'
Example Response
{  "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"  }}