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:MH4H92C7
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
Returns the requested transaction resource.
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,
"foreign_transaction_id": "J13253253x1",
"client_transaction_id": "urn:sumup:pos:sale:MNKKNGST:1D4E3B2D-111D-48D7-9AF0-832DAEF63DD7;2",
"fee_amount": 8,
"merchant_id": 136902,
"device_info": {
"name": "m0xx",
"system_name": "Android",
"model": "GT-I9300",
"system_version": "4.3",
"uuid": "3ae2a6b7-fb0d-3b50-adbf-cb7e2db30cd2"
},
"card": {
"last_4_digits": "3456"
},
"elv_account": {
"sort_code": "87096214",
"last_4_digits": "5674",
"sequence_no": 1,
"iban": "DE60870962140012345674"
},
"payout_date": "2019-08-28",
"process_as": "CREDIT",
"products": [
{
"name": "Purchase reader for merchant with code ME3FCAVF",
"price": 100,
"quantity": 1,
"total_price": 100
}
],
"vat_rates": [
{
"rate": 0.045,
"net": 1.36,
"vat": 0.06,
"gross": 1.42
}
],
"transaction_events": [
{
"amount": 58.8,
"due_date": "2020-05-25",
"date": "2020-05-25",
"installment_number": 1,
"timestamp": "2020-05-25T10:49:42.784Z"
}
]
}