Customers
Get customer credit balance
Changed onReturns the credit balance for a customer identified by reference.
get/v1/sdk/customers/{reference}/balance
Request
- Base URLhttps://api.solvapay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
referencestring required
Example:cus_3c4d5e6f7g8h
Customer reference identifier
Response
Customer balance retrieved successfully
Example response
{
"credits": 4200,
"creditsPerMinorUnit": 100,
"customerRef": "cus_3c4d5e6f7g8h",
"display": {
"amountMajor": 42,
"currency": "USD",
"exchangeRate": 1,
"formatted": "$42.00",
"rateSource": "parity"
},
"displayCurrency": "USD",
"displayExchangeRate": 1
}Changes
- warning
added the new
fundingenum value to the/////response property for the response status
- warning
- breaking
the response's body type changed from no type to
objectfor status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking