Retrieve receipt details
Retrieves receipt specific data for a transaction.
Path Parameters
- id string required
SumUp unique transaction ID or transaction code, e.g. TS7HDYLSKD.
Query Parameters
- mid string required
Merchant code.
- tx_event_id integer
The ID of the transaction event (refund).
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
transaction_data object
Transaction information.
transaction_code stringTransaction code.
amount stringTransaction amount.
vat_amount stringTransaction VAT amount.
tip_amount stringTip amount (included in transaction amount).
currency stringTransaction currency.
timestamp date-timeTime created at.
status stringTransaction processing status.
payment_type stringTransaction type.
entry_mode stringTransaction entry mode.
verification_method stringCardholder verification method.
card object
last_4_digits stringCard last 4 digits.
type stringCard Scheme.
cardholder_name stringCardholder name.
expiry_month stringExpiry month.
expiry_year stringExpiry year.
token stringToken ID of these card details.
installments_count integerNumber of installments.
customer_email stringproducts object[]
Products
name stringProduct name.
description stringProduct description.
price floatProduct price.
quantity integerProduct quantity.
total_price floatQuantity x product price.
vat_rates object[]
Vat rates.
gross floatGross
net floatNet
rate floatRate
vat floatVat
location object
Details of the payment location as received from the payment terminal.
lat floatPossible values:
<= 90
Latitude value from the coordinates of the payment location (as received from the payment terminal reader).
lon floatPossible values:
<= 180
Longitude value from the coordinates of the payment location (as received from the payment terminal reader).
horizontal_accuracy floatIndication of the precision of the geographical position received from the payment terminal.
events object[]
Events
id int64Unique ID of the transaction event.
transaction_id stringUnique ID of the transaction.
type stringPossible values: [
PAYOUT
,CHARGE_BACK
,REFUND
,PAYOUT_DEDUCTION
]Type of the transaction event.
status stringPossible values: [
PENDING
,SCHEDULED
,FAILED
,REFUNDED
,SUCCESSFUL
,PAID_OUT
]Status of the transaction event.
amount floatAmount of the event.
timestamp date-timeDate and time of the transaction event.
receipt_no stringreceipt_no stringReceipt number
merchant_data object
Receipt merchant data
merchant_profile object
merchant_code stringbusiness_name stringemail stringaddress object
address_line1 stringcity stringcountry stringcountry_en_name stringcountry_native_name stringpost_code stringlandline stringsettings object
tax_enabled booleanlegal_type object
description stringsole_trader booleanlocale string- emv_data object
acquirer_data object
tid stringauthorization_code stringreturn_code stringlocal_time string
{
"transaction_data": {
"transaction_code": "string",
"amount": "string",
"vat_amount": "string",
"tip_amount": "string",
"currency": "string",
"timestamp": "2023-05-24",
"status": "string",
"payment_type": "string",
"entry_mode": "string",
"verification_method": "string",
"card": {
"last_4_digits": "string",
"type": "string",
"cardholder_name": "string",
"expiry_month": "string",
"expiry_year": "string",
"token": "string"
},
"installments_count": 0,
"customer_email": "string",
"products": [
{
"name": "string",
"description": "string",
"price": 0,
"quantity": 0,
"total_price": 0
}
],
"vat_rates": [
{
"gross": 0,
"net": 0,
"rate": 0,
"vat": 0
}
],
"location": {
"lat": 0,
"lon": 0,
"horizontal_accuracy": 0
},
"events": [
{
"id": 0,
"transaction_id": "string",
"type": "PAYOUT",
"status": "PENDING",
"amount": 0,
"timestamp": "2023-05-24",
"receipt_no": "string"
}
],
"receipt_no": "string"
},
"merchant_data": {
"merchant_profile": {
"merchant_code": "string",
"business_name": "string",
"email": "string",
"address": {
"address_line1": "string",
"city": "string",
"country": "string",
"country_en_name": "string",
"country_native_name": "string",
"post_code": "string",
"landline": "string"
},
"settings": {
"tax_enabled": true
},
"legal_type": {
"description": "string",
"sole_trader": true
}
},
"locale": "string"
},
"emv_data": {},
"acquirer_data": {
"tid": "string",
"authorization_code": "string",
"return_code": "string",
"local_time": "string"
}
}
Not Found
- application/json
- Schema
- Example (from schema)
- Not_ Found
Schema
- message string
Short description of the error.
- error_code string
Platform code for the error.
{
"message": "string",
"error_code": "string"
}
{
"error_code": "NOT_FOUND",
"message": "Resource not found"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Invalid_ Token
- Not_ Authorized_ Token
- Missing_ Token
Schema
- message string
Short description of the error.
- error_code string
Platform code for the error.
{
"message": "string",
"error_code": "string"
}
{
"error_message": "invalid access token",
"error_code": "NOT_AUTHORIZED"
}
{
"error_message": "NOT_AUTHORIZED",
"error_code": "NOT_AUTHORIZED"
}
{
"message": "access token required",
"error_code": "NOT_AUTHORIZED"
}