Customer Credits - Accounts
Get account balance
Changed onGet the current balance of an account. Optionally pass ?at= for historical balance.
get/v1/customer-credits/accounts/{id}/balance
Request
- Base URLhttps://api.creem.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Query parameters
atstring
Example:2024-01-15T00:00:00.000Z
ISO 8601 date. If present, computes balance at that point in time. If absent, returns O(1) projected balance.
Response
Account balance
Example response
{
"balance": "5000"
}Changes
- info
api tag
Customer Credits - Accountsadded - info
api tag
Customer Credits - Accounts (Experimental)removed
- info