List credit balances for a customer
Changed onReturns a list of credit balances for each currency for a customer. Each balance has three totals:
- available: total available to use.
- reserved: total temporarily reserved for billed transactions.
- used: total amount of credit used.
Credit is added to the available total initially. When used, it moves to the used total.
The reserved total is used when a credit balance is applied to a transaction that's marked as billed, like when working with an issued invoice. It's not available for other transactions at this point, but isn't considered used until the transaction is completed. If a billed transaction is canceled, any reserved credit moves back to available.
Credit balances are created automatically by Paddle when you take an action that results in Paddle creating a credit for a customer, like making prorated changes to a subscription. An empty data array is returned where a customer has no credit balances.
The response is not paginated.
Request
- Base URLhttps://sandbox-api.paddle.com
- AuthHTTP bearer
Path parameters
Unique Paddle ID for this customer entity, prefixed with ctm_.
Paddle ID of the customer entity to work with.
Query parameters
Return entities that match the currency code. Use a comma-separated list to specify multiple currency codes.
Response
The request has succeeded.
Example response
{
"data": [
{
"customer_id": "ctm_01grnn4zta5a1mf02jjze7y2ys",
"balance": {
"available": "200",
"reserved": "400",
"used": "600"
}
}
],
"meta": {
"request_id": "b15ec92e-8688-40d4-a04d-f44cbec93355"
}
}Changes
- breaking
added the pattern
^ctm_[a-z\d]{26}$to thepathrequest parametercustomer_id - warning
added the new
CLPenum value to the///response property for the response status - warning
added the new
PENenum value to the///response property for the response status
- breaking
- breaking
added the new path request parameter
customer_id - breaking
the
//response property's maxLength was unset from3for the response status - breaking
the
//response property's minLength was decreased from3to0for the response status - breaking
the
//response's property type changed fromobjectto no type for status - breaking
the
//response's property type changed fromstringto no type for status - breaking
the
//response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromobjectto no type for status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
/from the response with the status - info
added to the
response propertyallOflist for the response status - info
added to the
//response propertyallOflist for the response status - info
added to the
//response propertyallOflist for the response status - info
added to the
//response propertyallOflist for the response status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
removed the
ARSenum value from the//response property for the response status - info
removed the
AUDenum value from the//response property for the response status - info
removed the
BRLenum value from the//response property for the response status - info
removed the
CADenum value from the//response property for the response status - info
removed the
CHFenum value from the//response property for the response status - info
removed the
CNYenum value from the//response property for the response status - info
removed the
COPenum value from the//response property for the response status - info
removed the
CZKenum value from the//response property for the response status - info
removed the
DKKenum value from the//response property for the response status - info
removed the
EURenum value from the//response property for the response status - info
removed the
GBPenum value from the//response property for the response status - info
removed the
HKDenum value from the//response property for the response status - info
removed the
HUFenum value from the//response property for the response status - info
removed the
ILSenum value from the//response property for the response status - info
removed the
INRenum value from the//response property for the response status - info
removed the
JPYenum value from the//response property for the response status - info
removed the
KRWenum value from the//response property for the response status - info
removed the
MXNenum value from the//response property for the response status - info
removed the
NOKenum value from the//response property for the response status - info
removed the
NZDenum value from the//response property for the response status - info
removed the
PLNenum value from the//response property for the response status - info
removed the
RUBenum value from the//response property for the response status - info
removed the
SEKenum value from the//response property for the response status - info
removed the
SGDenum value from the//response property for the response status - info
removed the
THBenum value from the//response property for the response status - info
removed the
TRYenum value from the//response property for the response status - info
removed the
TWDenum value from the//response property for the response status - info
removed the
UAHenum value from the//response property for the response status - info
removed the
USDenum value from the//response property for the response status - info
removed the
VNDenum value from the//response property for the response status - info
removed the
ZARenum value from the//response property for the response status - info
the
//response's property pattern^ctm_[a-z\d]{26}$was removed for the status
- breaking