Wallets
Create a wallet
Create a prepaid credit wallet for a customer. Optionally seed it with paid or granted credits.
post/api/wallets
Request body
Example request
{
"customerId": "cust_abc123",
"name": "Main Wallet",
"currency": "USD",
"rateAmount": 1,
"paidCredits": 100,
"grantedCredits": 10
}Response
Wallet created
Example response
{
"id": "clx1234567890",
"customerId": "clxcust123",
"name": "Main Wallet",
"currency": "USD",
"rateAmount": "1.0000",
"creditsBalance": "100.0000",
"balance": "100.0000",
"consumedCredits": "50.0000",
"consumedAmount": "50.0000",
"status": "ACTIVE",
"customer": {
"id": "clx1234567890",
"name": "Jane Doe",
"email": "jane@example.com"
}
}