Logo
Mastercard Developers API Documentation

Search for transactions

POST {{baseUrl}}/transactions/searches

Issuers and acquirers use this endpoint to search for transactions.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "transactionsData": { "singleMessages": [ { "contextId": "TXN_63cef42e6f7711eaa77feeee0afdc116", "contextType": "TRANSACTION", "claimId": "7012353455", "authorization": { "acquirerReferenceNumber": "51310541655698741481459", "financialNetworkCode": "MS", "transactionAmount": { "displayAmount": "119.99", "wholeAmount": "119", "decimalAmount": "99", "numericCurrencyCode": "840", "currencyExponent": "2", "alphaCurrencyCodes": [ "USD" ] }, "acceptorName": "Amazon", "cardAcceptorType": "4829", "tokenizedPrimaryAccountNumber": "4312915487625131", "primaryAccountNumber": "5488888888887192", "processingCode": "000000", "responseCode": "00", "settlementDate": "2023-08-16", "switchSerialNumber": "242025095", "transmissionDateTime": "2024-02-02T16:44:13.546Z", "systemsTraceAuditNumber": "999999", "interchangeRateIndicator": "2" }, "clearing": { "acquirerReferenceNumber": "51310541655698741481459", "financialNetworkCode": "MS", "transactionAmount": { "displayAmount": "119.99", "wholeAmount": "119", "decimalAmount": "99", "numericCurrencyCode": "840", "currencyExponent": "2", "alphaCurrencyCodes": [ "USD" ] }, "acceptorName": "Amazon", "cardAcceptorType": "4829", "tokenizedPrimaryAccountNumber": "4312915487625131", "primaryAccountNumber": "5488888888887192", "processingCode": "000000", "responseCode": "00", "settlementDate": "2024-02-04", "switchSerialNumber": "242025095", "transmissionDateTime": "2024-02-04T16:44:13.546Z", "systemsTraceAuditNumber": "999999", "interchangeRateIndicator": "2" } } ] } }

Curl
curl -X POST '/transactions/searches' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"primaryAccountNumber":"5488888888887192","transactionAmountFrom":"10015","transactionAmountTo":"30015","startDate":"2024-01-05","endDate":"2024-02-28"}'

ENDPOINTS