Wallets
Create a wallet
Changed onCreate a prepaid credit wallet for a customer. Optionally seed it with paid or granted credits.
post/api/wallets
Request
- Base URLhttps://api.novabilling.one
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}
}Changes
- info
endpoint added
- info