List debt settlements (the record of each negative-balance payoff)
/v1/balance/debt-settlementsAuthenticate with the header SelectKey: a sk_test_ key works in the sandbox, a sk_live_ key in production.
Query parameters
limitintegerPage size (items per page).
offsetintegerOffset of the first item (0-based).
sortstringSort expression, e.g. "-createdAt"
Responses
200OK
dataobject[]requiredThe items of this page.
+12 fields in
dataidstringrequiredPublic id of the settlement.
pixobjectrequirednullableThe Pix to pay — only while
pending.+1 field in
pixqrCodeEmvstringrequirednullablePix copy-and-paste code.
amountintegerrequiredAmount of the Pix, in cents.
objectstringrequiredAlways
debt_settlement.Values:debt_settlementpaidAtstringrequirednullableWhen it was paid;
nulluntil then.statusstringrequiredpending(Pix open),paid,expired(unpaid) orrefunded.Values:pendingpaidexpiredrefundedcurrencystringrequiredAlways
BRL.Values:BRLcreatedAtstringrequiredWhen the resource was created (ISO 8601, UTC).
expiresAtstringrequirednullableWhen the Pix expires.
paidAmountintegerrequirednullableWhat was paid, in cents;
nulluntil paid. What exceeds the debt becomes available balance.owedAtIssuanceintegerrequiredWhat was owed when the Pix was issued, in cents.
refundedAmountintegerrequiredWhat was refunded of it, in cents.
pageobjectrequiredPaging cursors of the list.
+3 fields in
pagetotalintegerrequiredTotal number of pages.
offsetobjectrequiredThe
offsetto request the first, previous, next and last pages.+4 fields in
offsetlastintegerrequiredOffset of the last page.
nextintegerrequiredOffset of the next page (stays on this page when it is the last one).
previntegerrequiredOffset of the previous page (0 on the first page).
firstintegerrequiredOffset of the first page.
currentintegerrequiredCurrent page number (1-based).
limitintegerrequiredPage size, as requested.
totalintegerrequiredTotal number of items that match the filters.
_linksobjectLinks to related operations, keyed by action (
self,create,update,delete,list…).offsetintegerrequiredOffset of the first item of this page, as requested.
hasMorebooleanrequiredtruewhen there are more items after this page.merchantobjectThe account that owns the resource (the merchant of record).
+3 fields in
merchantnamestringrequirednullableTrading name of the account that owns the resource.
merchantIdstringrequirednullablePublic id of the account that owns the resource (
bus_…).isSubAccountbooleanrequiredtruewhen the resource belongs to a sub-account operated by a marketplace platform.
401Unauthorized (missing or invalid credential)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
403Forbidden (no permission)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
500Internal server error
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired