Skip to navigation

List Customer Credit Notes

View as Markdown
List credit notes for a customer.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

customer_idstringRequired
account_idstringRequired

Query parameters

currencyenum or nullOptional
Filter by currency code
unused_onlybooleanOptionalDefaults to false

Only credit that still has unused value: positive entries whose consumption PaymentKit has tracked since they were issued (every entry with an expires_at, and every entry issued after the customer first held expiring credit in that currency), excluding debit settlements, not yet closed out, with less drawn from them than they were issued for. Includes credit whose expires_at has passed but which PaymentKit has not yet reclaimed — pair with expires_before to see what is about to be reclaimed.

expires_beforedatetime or nullOptional

Only entries that carry an expires_at earlier than this timestamp. Combine with unused_only to see what is about to be reclaimed.

limitintegerOptional1-100Defaults to 50
Number of items per page
offsetintegerOptional>=0Defaults to 0
Number of items to skip
filterstringOptionalDefaults to {}

Filter conditions as key-value pairs or advanced filter objects (JSON string)

sortBystring or nullOptional
Field to sort by
sortOrderintegerOptionalDefaults to -1

Sort order: 1 for ascending, -1 for descending

searchstring or nullOptional

Keyword-based search across multiple fields

Response

Successful Response
itemslist of objects
totalinteger
has_moreboolean

Errors

422
Unprocessable Entity Error