Transactions
Retrieve a transaction
Retrieves the full details of an identified transaction. The transaction resource is identified by a query parameter and one of following parameters is required:
- id
- internal_id
- transaction_code
- foreign_transaction_id
- client_transaction_id
get/v2.1/merchants/{merchant_code}/transactions
Path parameters
merchant_codestring required
Example:MC0X0ABC
Query parameters
idstring
Retrieves the transaction resource with the specified transaction ID (the id parameter in the transaction resource).
internal_idstring
Retrieves the transaction resource with the specified internal transaction ID (the internal_id parameter in the transaction resource).
transaction_codestring
Retrieves the transaction resource with the specified transaction code.
foreign_transaction_idstring
External/foreign transaction id (passed by clients).
client_transaction_idstring
Client transaction id.
Response
OK
Example response
{
"id": "6b425463-3e1b-431d-83fa-1e51c2925e99",
"transaction_code": "TEENSK4W2K",
"amount": 10.1,
"currency": "EUR",
"timestamp": "2020-02-29T10:56:56.876Z",
"merchant_code": "MH4H92C7",
"vat_amount": 6,
"tip_amount": 3,
"auth_code": "053201",
"internal_id": 1763892018,
"card": {
"last_4_digits": "3456"
}
}