Retrieve a transaction
Changed onRetrieves the full details of an identified transaction. The transaction resource is identified by a query parameter and one of following parameters is required:
- id
- transaction_code
- foreign_transaction_id
- client_transaction_id
Request
- Base URLhttps://api.sumup.com
- URLhttps://api.sumup.com/v2.1/merchants/{merchant_code}/transactions
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.sumup.com/authorizeToken URL: https://api.sumup.com/token scopes: transactions.history, transactions.read
Path parameters
Short unique identifier for the merchant.
Query parameters
Retrieves the transaction resource with the specified transaction ID (the id parameter in the transaction resource).
Retrieves the transaction resource with the specified transaction code.
External transaction identifier supplied by the client.
Client-supplied identifier of the transaction.
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",
"status": "SUCCESSFUL",
"payment_type": "ECOM",
"installments_count": 1,
"merchant_code": "MH4H92C7",
"vat_amount": 6,
"tip_amount": 3,
"entry_mode": "CUSTOMER_ENTRY",
"auth_code": "053201",
"product_summary": "Purchase",
"payouts_total": 1,
"payouts_received": 1,
"payout_plan": "SINGLE_PAYMENT",
"foreign_transaction_id": "J13253253x1",
"client_transaction_id": "urn:sumup:pos:sale:MNKKNGST:1D4E3B2D-111D-48D7-9AF0-832DAEF63DD7;2",
"username": "merchant@example.com",
"fee_amount": 8,
"lat": 52.520008,
"lon": 13.404954,
"horizontal_accuracy": 5,
"merchant_id": 136902,
"device_info": {
"name": "m0xx",
"system_name": "Android",
"model": "GT-I9300",
"system_version": "4.3",
"uuid": "3ae2a6b7-fb0d-3b50-adbf-cb7e2db30cd2"
},
"simple_payment_type": "CARD",
"verification_method": "none",
"card": {
"last_4_digits": "3456",
"type": "VISA",
"payment_account_reference": "5665ABCDEFGHIJKLMNOPQRSTUVWXY"
},
"elv_account": {
"sort_code": "87096214",
"last_4_digits": "5674",
"sequence_no": 1,
"iban": "DE60870962140012345674"
},
"local_time": "2020-02-29T11:56:56+01:00",
"payout_date": "2019-08-28",
"payout_type": "BANK_ACCOUNT",
"process_as": "CREDIT",
"products": [
{
"name": "Purchase reader for merchant with code ME3FCAVF",
"price_label": "EUR 100.00",
"price": 100,
"vat_rate": 0.19,
"single_vat_amount": 19,
"price_with_vat": 119,
"vat_amount": 19,
"quantity": 1,
"total_price": 100,
"total_with_vat": 119
}
],
"vat_rates": [
{
"rate": 0.045,
"net": 1.36,
"vat": 0.06,
"gross": 1.42
}
],
"transaction_events": [
{
"id": 9567461191,
"event_type": "REFUND",
"status": "SUCCESSFUL",
"amount": 58.8,
"due_date": "2020-05-25",
"date": "2020-05-25",
"installment_number": 1,
"timestamp": "2020-05-25T10:49:42.784Z"
}
],
"simple_status": "SUCCESSFUL",
"links": [
{
"rel": "refund",
"href": "https://api.sumup.com/v1.0/merchants/MH4H92C7/payments/4ffb8dfc-7f2b-413d-a497-2ad00766585e/refunds",
"type": "application/json",
"min_amount": 0.01,
"max_amount": 10.1
}
],
"events": [
{
"id": 9567461191,
"transaction_id": "410fc44a-5956-44e1-b5cc-19c6f8d727a4",
"type": "REFUND",
"status": "SUCCESSFUL",
"amount": 10.1,
"timestamp": "2020-05-25T10:49:42.784Z",
"fee_amount": 0.25,
"installment_number": 1,
"deducted_amount": 10.1,
"deducted_fee_amount": 0.25
}
],
"location": {
"lat": 52.520008,
"lon": 13.404954,
"horizontal_accuracy": 5
},
"tax_enabled": true
}Changes
- warning
added the new
SUMUPenum value to the//response property for the response status
- warning
- breaking
the
/response property's min was decreased from0.00to-90.00for the response status - breaking
the
//response property's min was decreased from0.00to-90.00for the response status - breaking
the
//response property's min was decreased from0.00to-180.00for the response status - breaking
the
/response property's min was decreased from0.00to-180.00for the response status - warning
added the new
BANCOMATenum value to the//response property for the response status - info
added the optional property
//to the response with the status - info
removed the
BGNenum value from the/response property for the response status
- breaking