Customer Credits - Accounts
Create a customer credits account
Changed onCreate a new credits account for a customer. Optionally seed it with an initial balance.
post/v1/customer-credits/accounts
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.
Request body
Example request
{
"name": "default",
"customer_id": "cust_abc123",
"unit_label": "credits",
"initial_balance": "300"
}Response
Account created
Example response
{
"id": "cca_abc123",
"customer_id": "cust_abc123",
"name": "default",
"unit_label": "credits"
}Changes
- warning
the
request property's maxLength was set to100 - info
added the non-success response with the status
- warning
- info
api tag
Customer Credits - Accountsadded - info
api tag
Customer Credits - Accounts (Experimental)removed
- info