Search transactions by buyer
/v1/transactions/searchAuthenticate with the header SelectKey: a sk_test_ key works in the sandbox, a sk_live_ key in production.
Request body
sortstringOrder of the list by creation:
createdAt(orascending) for the oldest first; any other value keeps the default, newest first (-createdAt).limitintegerPage size (items per page).
methodstringOnly charges with this payment method.
Values:creditpixbilletnupayoffsetintegerOffset of the first item (0-based).
sourcestringOnly the charges from this source.
statusstringOnly charges with this status.
Values:pendingpre-authorizedapprovedfailedrefusedcanceledrefundedchargebackdisputefraud-reviewanalyzingawaitingcustomerobjectrequiredWho bought: the charges of a buyer that matches ANY of these (e-mail OR document OR phone). At least one.
+3 fields in
customeremailstring (email)The buyer's e-mail (compared without case).
phonestringThe buyer's phone, digits only, with the country code (e.g.
5511988887777).documentstringThe buyer's document: CPF or CNPJ, digits only.
daterangegtestring (date-time)Created at or after this instant (inclusive).
daterangeltestring (date-time)Created at or before this instant (inclusive).
Responses
200OK
dataobject[]requiredThe items of this page.
+23 fields in
dataidstringrequiredPublic identifier (tra_/trx_…)
netintegerrequiredWhat you receive:
amount − fees, in cents.feesintegerrequiredTotal fees, in cents.
titlestringrequirednullableWhat was bought: the description of the charge or, without one, the name of its first item;
nullwhen it has neither.amountstringrequiredAmount charged, in cents (as a string).
imagesstring[]requiredImage URLs of the items.
methodstringrequiredPayment method.
sourcestringrequirednullableWhere the sale came from:
direct(the checkout page of your site),link(a payment link),api,checkout,subscription,upsell,platform-billing, or the text your integration sent;nullwhen it was not recorded (old sales).statusstringrequiredStatus of the charge.
currencystringrequiredCurrency (ISO 4217).
customIdstringrequirednullableYour custom id of the charge;
nullon old charges.customerone ofrequiredThe buyer, in short (the full block, with the document and the phone, is on the read);
nullwhen the charge has none.Shape 1
idstringrequiredThe buyer.
namestringrequirednullableThe buyer's name;
nullwhen unknown.emailstringrequirednullableThe buyer's e-mail;
nullwhen unknown.
null
deliveryone ofrequiredThe delivery of the sale, in short (the full block is on the read);
nullwhen the sale has no physical item.Shape 1
statestringrequiredshipped(tracking recorded),pending(approved less than 5 days ago, no tracking) orlate(approved 5+ days ago, no tracking).Values:pendingshippedlatetrackingCodestringrequirednullableThe tracking code recorded in
shipping.trackingCode;nullwhen none.
null
cardBrandstringrequirednullableCard brand;
nullfor the other methods.createdAtstringrequiredWhen the resource was created (ISO 8601, UTC).
updatedAtstringrequiredWhen the resource was last updated (ISO 8601, UTC).
approvedAtstringrequirednullableWhen the charge was approved;
nullotherwise.customerIdone ofrequiredThe buyer.
string
null
installmentsone ofrequiredNumber of installments.
integer
null
paymentLinkIdstringrequirednullableThe payment link the sale came from;
nullwhen it did not come from one.originalAmountstringrequiredAmount before discounts, in cents (as a string).
refundedAmountintegerrequiredHow much of this charge was already refunded, in cents (the settled refunds).
checkoutSessionIdstringrequirednullableThe checkout session the sale came from;
nullwhen it did not come from one.
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.
searchedBystring[]requiredThe buyer identifiers this search used:
email,documentand/orphone.Values:emaildocumentphone
400Bad request (validation failed)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
401Unauthorized (missing or invalid credential)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
403Forbidden (no permission)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
404Not found
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
500Internal server error
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired