The Receipts model obtains receipt-like details for specific transactions.
The Receipt object
Receipt details for a transaction.
- transaction_dataReceipt Transaction
Transaction details displayed on a receipt.
CloseReceipt Transaction- transaction_codestring
Transaction code returned after processing the transaction.
Example:"TEENSK4W2K" - transaction_idTransaction ID
Unique identifier of the transaction.
Example:"410fc44a-5956-44e1-b5cc-19c6f8d727a4" - merchant_codestring
Short unique identifier for the merchant.
Example:"MH4H92C7" - amountstring
Total transaction amount, in major units.
Example:"10.10" - vat_amountstring
VAT included in the transaction amount, in major units.
Example:"6.00" - tip_amountstring
Tip included in the transaction amount, in major units.
Example:"3.00" - currencystring
Three-letter ISO 4217 currency code of the transaction.
Example:"EUR" - timestampstringformat: date-time
The timestamp of when the transaction was created.
Example:"2020-02-29T10:56:56.876Z" - statusstring
Current processing status of the transaction.
Example:"SUCCESSFUL" - payment_typestring
Payment type used for the transaction.
Example:"ECOM" - entry_modestring
Entry mode of the payment details.
Example:"CUSTOMER_ENTRY" - verification_methodstring
Cardholder verification method.
Example:"none" - card_readerReceipt Reader
Card reader details displayed on the receipt.
CloseReceipt Reader- codestring
Unique identifier of the physical card reader.
Example:"U1DT3NA00-CN" - typestring
Model of the physical card reader.
Example:"solo"
- cardReceipt Card
Payment card details displayed on the receipt.
CloseReceipt Card- last_4_digitsstring
Last four digits of the payment card number.
Example:"3456" - typestring
Issuing card network of the payment card.
Example:"VISA"
- installments_countinteger
Number of installments.
Example:1 - process_asstringOptions:
CREDITDEBITWhether the transaction was processed as credit or debit.
Example:"CREDIT" - products[]object
Products associated with the transaction.
CloseAttributes- namestring
Product name.
Example:"Coffee" - descriptionstring
Product description.
Example:"Cappuccino" - pricestringformat: double
Product price.
Example:"150.0" - vat_ratestringformat: double
VAT rate.
Example:"0.0" - single_vat_amountstringformat: double
VAT amount for a single product.
Example:"0.0" - price_with_vatstringformat: double
Product price including VAT.
Example:"150.0" - vat_amountstringformat: double
Total VAT amount for the product quantity.
Example:"0.0" - quantityinteger
Product quantity.
Example:1 - total_pricestringformat: double
Total price calculated as the product price multiplied by the quantity.
Example:"150.0" - total_with_vatstringformat: double
Total product price including VAT.
Example:"150.0"
- vat_rates[]object
VAT breakdown for the transaction.
CloseAttributes- grossnumber
Gross amount to which the VAT rate applies.
Example:10.1 - netnumber
Net amount to which the VAT rate applies.
Example:8.49 - ratenumber
VAT rate applied to the transaction amount.
Example:0.19 - vatnumber
VAT amount included in the gross amount.
Example:1.61
- events[]ReceiptEvent
Transaction events displayed on the receipt.
CloseReceipt Event- idTransaction Event ID
Unique identifier of the transaction event.
Example:9567461191 - transaction_idTransaction ID
Unique identifier of the transaction.
Example:"410fc44a-5956-44e1-b5cc-19c6f8d727a4" - typeTransaction Event TypeOptions:
PAYOUTCHARGE_BACKREFUNDPAYOUT_DEDUCTIONType of the transaction event.
Example:"REFUND" - statusTransaction Event StatusOptions:
FAILEDPAID_OUTPENDINGRECONCILEDREFUNDEDSCHEDULEDSUCCESSFULStatus of the transaction event.
Not every value is used for every event type.
PENDING: The event has been created but is not final yet. Used for events that are still being processed and whose final outcome is not known yet.SCHEDULED: The event is planned for a future payout cycle but has not been executed yet. This applies to payout events before money is actually sent out.RECONCILED: The underlying payment has been matched with settlement data and is ready to continue through payout processing, but the funds have not been paid out yet. This applies to payout events.PAID_OUT: The payout event has been completed and the funds were included in a merchant payout.REFUNDED: A refund event has been accepted and recorded in the refund flow. This is the status returned for refund events once the transaction amount is being or has been returned to the payer.SUCCESSFUL: The event completed successfully. Use this as the generic terminal success status for event types that do not expose a more specific business outcome such asPAID_OUTorREFUNDED.FAILED: The event could not be completed. Typical examples are a payout that could not be executed or an event that was rejected during processing.
Example:"SUCCESSFUL" - amountstringformat: double
Amount associated with the transaction event, in major units.
Example:"10.10" - timestampstringformat: date-time
The timestamp of when the transaction event occurred.
Example:"2020-05-25T10:49:42.784Z" - receipt_nostring
Receipt number associated with the event.
Example:"123456"
- receipt_nostring
Receipt number associated with the transaction.
Example:"123456"
Example:{"transaction_code":"TEENSK4W2K","transaction_id":"410fc44a-5956-44e1-b5cc-19c6f8d727a4","merchant_code":"MH4H92C7","amount":"10.10","vat_amount":"6.00","tip_amount":"3.00","currency":"EUR","timestamp":"2020-02-29T10:56:56.876Z","status":"SUCCESSFUL","payment_type":"ECOM","entry_mode":"CUSTOMER_ENTRY","installments_count":1,"process_as":"CREDIT"} - merchant_dataReceipt Merchant Data
Merchant details displayed on a transaction receipt.
CloseReceipt Merchant Data- merchant_profileobject
Merchant profile details displayed on the receipt.
CloseAttributes- merchant_codestring
Short unique identifier for the merchant.
Example:"MH4H92C7" - business_namestring
Business name of the merchant.
Example:"Coffee House" - company_registration_numberstring
Company registration number of the merchant.
Example:"HRB 123456" - vat_idstring
VAT identification number of the merchant.
Example:"DE123456789" - websitestring
Website of the merchant.
Example:"https://example.com" - emailstring
Email address of the merchant.
Example:"merchant@example.com" - languagestring
Language configured for the merchant profile.
Example:"de" - addressobject
Business address of the merchant.
CloseAttributes- address_line1string
First line of the merchant address.
Example:"Sample street 1" - address_line2string
Second line of the merchant address.
Example:"Floor 2" - citystring
City of the merchant address.
Example:"Berlin" - countrystring
Two-letter ISO 3166-1 alpha-2 country code of the merchant address.
Example:"DE" - country_en_namestring
English name of the country in the merchant address.
Example:"Germany" - country_native_namestring
Localized name of the country in the merchant address.
Example:"Deutschland" - region_namestring
Region or state of the merchant address.
Example:"Berlin" - post_codestring
Postal code of the merchant address.
Example:"10115" - landlinestring
Landline phone number of the merchant.
Example:"+493012345678"
- localestring
Locale used for rendering localized receipt fields.
Example:"de-DE"
- emv_dataobject
EMV-specific metadata returned for card-present payments.
Example:{} - acquirer_dataobject
Acquirer-specific metadata related to the card authorization.
CloseAttributes- tidstring
Identifier of the terminal used for the authorization.
Example:"12345678" - authorization_codestring
Authorization code returned by the acquirer.
Example:"053201" - return_codestring
Return code reported by the acquirer.
Example:"00" - local_timestring
Local timestamp of the card authorization.
Example:"2020-02-29T11:56:56+01:00"
Example:{"authorization_code":"053201","return_code":"00"}
{ "transaction_data": { "transaction_code": "TEENSK4W2K", "transaction_id": "410fc44a-5956-44e1-b5cc-19c6f8d727a4", "merchant_code": "MH4H92C7", "amount": "10.10", "vat_amount": "6.00", "tip_amount": "3.00", "currency": "EUR", "timestamp": "2020-02-29T10:56:56.876Z", "status": "SUCCESSFUL", "payment_type": "ECOM", "entry_mode": "CUSTOMER_ENTRY", "installments_count": 1, "process_as": "CREDIT" }, "merchant_data": { "merchant_profile": { "merchant_code": "MH4H92C7", "business_name": "Coffee House", "company_registration_number": "HRB 123456", "vat_id": "DE123456789", "website": "https://example.com", "email": "merchant@example.com", "language": "de", "address": { "address_line1": "Sample street 1", "address_line2": "Floor 2", "city": "Berlin", "country": "DE", "country_en_name": "Germany", "country_native_name": "Deutschland", "region_name": "Berlin", "post_code": "10115", "landline": "+493012345678" } }, "locale": "de-DE" }, "emv_data": {}, "acquirer_data": { "authorization_code": "053201", "return_code": "00" }}Retrieve receipt details
Retrieves receipt specific data for a transaction.
receipts.readPath Parameters
- transaction_idstringrequired
SumUp unique transaction ID or transaction code, e.g. TS7HDYLSKD.
Example:"410fc44a-5956-44e1-b5cc-19c6f8d727a4"
Query Parameters
- midstringrequired
Short unique identifier for the merchant.
Example:"MH4H92C7" - tx_event_idinteger
Unique identifier of the transaction event to include on the receipt.
Example:9567461191
Response
Returns receipt details for the requested transaction. See Receipt object.
- transaction_dataReceipt Transaction
Transaction details displayed on a receipt.
CloseReceipt Transaction- transaction_codestring
Transaction code returned after processing the transaction.
Example:"TEENSK4W2K" - transaction_idTransaction ID
Unique identifier of the transaction.
Example:"410fc44a-5956-44e1-b5cc-19c6f8d727a4" - merchant_codestring
Short unique identifier for the merchant.
Example:"MH4H92C7" - amountstring
Total transaction amount, in major units.
Example:"10.10" - vat_amountstring
VAT included in the transaction amount, in major units.
Example:"6.00" - tip_amountstring
Tip included in the transaction amount, in major units.
Example:"3.00" - currencystring
Three-letter ISO 4217 currency code of the transaction.
Example:"EUR" - timestampstringformat: date-time
The timestamp of when the transaction was created.
Example:"2020-02-29T10:56:56.876Z" - statusstring
Current processing status of the transaction.
Example:"SUCCESSFUL" - payment_typestring
Payment type used for the transaction.
Example:"ECOM" - entry_modestring
Entry mode of the payment details.
Example:"CUSTOMER_ENTRY" - verification_methodstring
Cardholder verification method.
Example:"none" - card_readerReceipt Reader
Card reader details displayed on the receipt.
CloseReceipt Reader- codestring
Unique identifier of the physical card reader.
Example:"U1DT3NA00-CN" - typestring
Model of the physical card reader.
Example:"solo"
- cardReceipt Card
Payment card details displayed on the receipt.
CloseReceipt Card- last_4_digitsstring
Last four digits of the payment card number.
Example:"3456" - typestring
Issuing card network of the payment card.
Example:"VISA"
- installments_countinteger
Number of installments.
Example:1 - process_asstringOptions:
CREDITDEBITWhether the transaction was processed as credit or debit.
Example:"CREDIT" - products[]object
Products associated with the transaction.
CloseAttributes- namestring
Product name.
Example:"Coffee" - descriptionstring
Product description.
Example:"Cappuccino" - pricestringformat: double
Product price.
Example:"150.0" - vat_ratestringformat: double
VAT rate.
Example:"0.0" - single_vat_amountstringformat: double
VAT amount for a single product.
Example:"0.0" - price_with_vatstringformat: double
Product price including VAT.
Example:"150.0" - vat_amountstringformat: double
Total VAT amount for the product quantity.
Example:"0.0" - quantityinteger
Product quantity.
Example:1 - total_pricestringformat: double
Total price calculated as the product price multiplied by the quantity.
Example:"150.0" - total_with_vatstringformat: double
Total product price including VAT.
Example:"150.0"
- vat_rates[]object
VAT breakdown for the transaction.
CloseAttributes- grossnumber
Gross amount to which the VAT rate applies.
Example:10.1 - netnumber
Net amount to which the VAT rate applies.
Example:8.49 - ratenumber
VAT rate applied to the transaction amount.
Example:0.19 - vatnumber
VAT amount included in the gross amount.
Example:1.61
- events[]ReceiptEvent
Transaction events displayed on the receipt.
CloseReceipt Event- idTransaction Event ID
Unique identifier of the transaction event.
Example:9567461191 - transaction_idTransaction ID
Unique identifier of the transaction.
Example:"410fc44a-5956-44e1-b5cc-19c6f8d727a4" - typeTransaction Event TypeOptions:
PAYOUTCHARGE_BACKREFUNDPAYOUT_DEDUCTIONType of the transaction event.
Example:"REFUND" - statusTransaction Event StatusOptions:
FAILEDPAID_OUTPENDINGRECONCILEDREFUNDEDSCHEDULEDSUCCESSFULStatus of the transaction event.
Not every value is used for every event type.
PENDING: The event has been created but is not final yet. Used for events that are still being processed and whose final outcome is not known yet.SCHEDULED: The event is planned for a future payout cycle but has not been executed yet. This applies to payout events before money is actually sent out.RECONCILED: The underlying payment has been matched with settlement data and is ready to continue through payout processing, but the funds have not been paid out yet. This applies to payout events.PAID_OUT: The payout event has been completed and the funds were included in a merchant payout.REFUNDED: A refund event has been accepted and recorded in the refund flow. This is the status returned for refund events once the transaction amount is being or has been returned to the payer.SUCCESSFUL: The event completed successfully. Use this as the generic terminal success status for event types that do not expose a more specific business outcome such asPAID_OUTorREFUNDED.FAILED: The event could not be completed. Typical examples are a payout that could not be executed or an event that was rejected during processing.
Example:"SUCCESSFUL" - amountstringformat: double
Amount associated with the transaction event, in major units.
Example:"10.10" - timestampstringformat: date-time
The timestamp of when the transaction event occurred.
Example:"2020-05-25T10:49:42.784Z" - receipt_nostring
Receipt number associated with the event.
Example:"123456"
- receipt_nostring
Receipt number associated with the transaction.
Example:"123456"
Example:{"transaction_code":"TEENSK4W2K","transaction_id":"410fc44a-5956-44e1-b5cc-19c6f8d727a4","merchant_code":"MH4H92C7","amount":"10.10","vat_amount":"6.00","tip_amount":"3.00","currency":"EUR","timestamp":"2020-02-29T10:56:56.876Z","status":"SUCCESSFUL","payment_type":"ECOM","entry_mode":"CUSTOMER_ENTRY","installments_count":1,"process_as":"CREDIT"} - merchant_dataReceipt Merchant Data
Merchant details displayed on a transaction receipt.
CloseReceipt Merchant Data- merchant_profileobject
Merchant profile details displayed on the receipt.
CloseAttributes- merchant_codestring
Short unique identifier for the merchant.
Example:"MH4H92C7" - business_namestring
Business name of the merchant.
Example:"Coffee House" - company_registration_numberstring
Company registration number of the merchant.
Example:"HRB 123456" - vat_idstring
VAT identification number of the merchant.
Example:"DE123456789" - websitestring
Website of the merchant.
Example:"https://example.com" - emailstring
Email address of the merchant.
Example:"merchant@example.com" - languagestring
Language configured for the merchant profile.
Example:"de" - addressobject
Business address of the merchant.
CloseAttributes- address_line1string
First line of the merchant address.
Example:"Sample street 1" - address_line2string
Second line of the merchant address.
Example:"Floor 2" - citystring
City of the merchant address.
Example:"Berlin" - countrystring
Two-letter ISO 3166-1 alpha-2 country code of the merchant address.
Example:"DE" - country_en_namestring
English name of the country in the merchant address.
Example:"Germany" - country_native_namestring
Localized name of the country in the merchant address.
Example:"Deutschland" - region_namestring
Region or state of the merchant address.
Example:"Berlin" - post_codestring
Postal code of the merchant address.
Example:"10115" - landlinestring
Landline phone number of the merchant.
Example:"+493012345678"
- localestring
Locale used for rendering localized receipt fields.
Example:"de-DE"
- emv_dataobject
EMV-specific metadata returned for card-present payments.
Example:{} - acquirer_dataobject
Acquirer-specific metadata related to the card authorization.
CloseAttributes- tidstring
Identifier of the terminal used for the authorization.
Example:"12345678" - authorization_codestring
Authorization code returned by the acquirer.
Example:"053201" - return_codestring
Return code reported by the acquirer.
Example:"00" - local_timestring
Local timestamp of the card authorization.
Example:"2020-02-29T11:56:56+01:00"
Example:{"authorization_code":"053201","return_code":"00"}
curl https://api.sumup.com/v1.1/receipts/{transaction_id} \ -X GET \ -H "Authorization: Bearer $SUMUP_API_KEY"import SumUp from '@sumup/sdk';
const client = new SumUp();
const result = await client.receipts.get("410fc44a-5956-44e1-b5cc-19c6f8d727a4", "MH4H92C7");using SumUp;
var client = new SumUpClient();
var result = await client.Receipts.GetAsync( "410fc44a-5956-44e1-b5cc-19c6f8d727a4", "MH4H92C7");import com.sumup.sdk.SumUpClient;
SumUpClient client = SumUpClient.builder().build();
var result = client.receipts().getReceipt( "410fc44a-5956-44e1-b5cc-19c6f8d727a4", "MH4H92C7");from sumup import Sumup
client = Sumup()
result = client.receipts.get("410fc44a-5956-44e1-b5cc-19c6f8d727a4", "MH4H92C7")$sumup = new \SumUp\SumUp();
$result = $sumup->receipts->get('410fc44a-5956-44e1-b5cc-19c6f8d727a4', 'MH4H92C7');client := sumup.NewClient()
result, err := client.Receipts.Get(context.Background(), "410fc44a-5956-44e1-b5cc-19c6f8d727a4", "MH4H92C7")use sumup::Client;
let client = Client::default();
let result = client.receipts().get("410fc44a-5956-44e1-b5cc-19c6f8d727a4", sumup::GetReceiptParams{ mid: Some("MH4H92C7".to_string()), tx_event_id: Some(9567461191),}).await;{ "transaction_data": { "transaction_code": "TEENSK4W2K", "transaction_id": "410fc44a-5956-44e1-b5cc-19c6f8d727a4", "merchant_code": "MH4H92C7", "amount": "10.10", "vat_amount": "6.00", "tip_amount": "3.00", "currency": "EUR", "timestamp": "2020-02-29T10:56:56.876Z", "status": "SUCCESSFUL", "payment_type": "ECOM", "entry_mode": "CUSTOMER_ENTRY", "installments_count": 1, "process_as": "CREDIT" }, "merchant_data": { "merchant_profile": { "merchant_code": "MH4H92C7" } }, "acquirer_data": { "authorization_code": "053201" }}Content-Type: application/json
The request is invalid for the submitted parameters.
- messagestring
Short description of the error.
Example:"Resource not found" - error_codestring
Platform code for the error.
Example:"NOT_FOUND"
Content-Type: application/json
The request is not authorized.
- typestringrequiredformat: uri
A URI reference that identifies the problem type.
Example:"https://developer.sumup.com/problem/not-found" - titlestring
A short, human-readable summary of the problem type.
Example:"Requested resource couldn't be found." - statusinteger
The HTTP status code generated by the origin server for this occurrence of the problem.
Example:404 - detailstring
A human-readable explanation specific to this occurrence of the problem.
Example:"The requested resource doesn't exist or does not belong to you." - instancestringformat: uri
A URI reference that identifies the specific occurrence of the problem.
Example:"https://api.sumup.com/v0.1/checkouts/4e425463-3e1b-431d-83fa-1e51c2925e99"
Content-Type: application/json
The requested transaction event does not exist for the provided transaction.
- messagestring
Short description of the error.
Example:"Resource not found" - error_codestring
Platform code for the error.
Example:"NOT_FOUND"
{ "message": "is not a valid merchant code", "error_code": "INVALID"}{ "detail": "Unauthorized.", "status": 401, "title": "Unauthorized", "trace_id": "3c77294349d3b5647ea2d990f0d8f017", "type": "https://developer.sumup.com/problem/unauthorized"}{ "message": "No such tx event (ID=9567461191) for transaction 4ffb8dfc-7f2b-413d-a497-2ad00766585e", "error_code": "NOT_FOUND"}