Skip to content

Receipts

SumUp API reference and code samples.

Receipts

The Receipts model obtains receipt-like details for specific transactions.

The Receipt object

Receipt

  • transaction_data object

    Transaction information.

     Show attributes
     Close
    Attributes
    • transaction_code string

      Transaction code.

    • amount string

      Transaction amount.

    • vat_amount string

      Transaction VAT amount.

    • tip_amount string

      Tip amount (included in transaction amount).

    • currency string

      Transaction currency.

    • timestamp string date-time

      Time created at.

    • status string

      Transaction processing status.

    • payment_type string

      Transaction type.

    • entry_mode string

      Transaction entry mode.

    • verification_method string

      Cardholder verification method.

    • card object
       Show attributes
       Close
      Attributes
      • last_4_digits string

        Card last 4 digits.

      • type string

        Card Scheme.

    • installments_count integer

      Number of installments.

    • products []object

      Products

       Show attributes
       Close
      Attributes
      • name string

        Product name

        Example: "Coffee"
      • price string double

        Product price

        Example: "150.0"
      • vat_rate string double

        VAT rate

        Example: "0.0"
      • single_vat_amount string double

        VAT amount for a single product

        Example: "0.0"
      • price_with_vat string double

        Product price including VAT

        Example: "150.0"
      • vat_amount string double

        VAT amount

        Example: "0.0"
      • quantity integer

        Product quantity

        Example: 1
      • total_price string double

        Quantity x product price

        Example: "150.0"
      • total_with_vat string double

        Total price including VAT

        Example: "150.0"
    • vat_rates []object

      Vat rates.

       Show attributes
       Close
      Attributes
      • gross number

        Gross

      • net number

        Net

      • rate number

        Rate

      • vat number

        Vat

    • events []object

      Events

       Show attributes
       Close
      Attributes
      • id integer

        Unique ID of the transaction event.

      • transaction_id string

        Unique ID of the transaction.

      • type string

        Type of the transaction event.

      • status string

        Status of the transaction event.

      • amount string double

        Amount of the event.

      • timestamp string date-time

        Date and time of the transaction event.

      • receipt_no string
    • receipt_no string

      Receipt number

  • merchant_data object

    Receipt merchant data

     Show attributes
     Close
    Attributes
    • merchant_profile object
       Show attributes
       Close
      Attributes
      • merchant_code string
        Example: "MH4H92C7"
      • business_name string
      • email string
      • address object
         Show attributes
         Close
        Attributes
        • address_line1 string
        • city string
        • country string
        • country_en_name string
        • country_native_name string
        • post_code string
        • landline string
    • locale string
  • emv_data object
  • acquirer_data object
     Show attributes
     Close
    Attributes
    • tid string
    • authorization_code string
    • return_code string
    • local_time string
The Receipt object
{
"transaction_data": {
"transaction_code": null,
"amount": null,
"vat_amount": null,
"tip_amount": null,
"currency": null,
"timestamp": null,
"status": null,
"payment_type": null,
"entry_mode": null,
"verification_method": null,
"card": {
"last_4_digits": null,
"type": null
},
"installments_count": null,
"products": [
{
"name": "Coffee",
"price": "150.0",
"vat_rate": "0.0",
"single_vat_amount": "0.0",
"price_with_vat": "150.0",
"vat_amount": "0.0",
"quantity": 1,
"total_price": "150.0",
"total_with_vat": "150.0"
}
],
"vat_rates": [
{
"gross": null,
"net": null,
"rate": null,
"vat": null
}
],
"events": [
{
"id": null,
"transaction_id": null,
"type": null,
"status": null,
"amount": null,
"timestamp": null,
"receipt_no": null
}
],
"receipt_no": null
},
"merchant_data": {
"merchant_profile": {
"merchant_code": "MH4H92C7",
"business_name": null,
"email": null,
"address": {
"address_line1": null,
"city": null,
"country": null,
"country_en_name": null,
"country_native_name": null,
"post_code": null,
"landline": null
}
},
"locale": null
},
"emv_data": {},
"acquirer_data": {
"tid": null,
"authorization_code": null,
"return_code": null,
"local_time": null
}
}
Receipts

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).

Receipt

  • transaction_data object

    Transaction information.

     Show attributes
     Close
    Attributes
    • transaction_code string

      Transaction code.

    • amount string

      Transaction amount.

    • vat_amount string

      Transaction VAT amount.

    • tip_amount string

      Tip amount (included in transaction amount).

    • currency string

      Transaction currency.

    • timestamp string date-time

      Time created at.

    • status string

      Transaction processing status.

    • payment_type string

      Transaction type.

    • entry_mode string

      Transaction entry mode.

    • verification_method string

      Cardholder verification method.

    • card object
       Show attributes
       Close
      Attributes
      • last_4_digits string

        Card last 4 digits.

      • type string

        Card Scheme.

    • installments_count integer

      Number of installments.

    • products []object

      Products

       Show attributes
       Close
      Attributes
      • name string

        Product name

        Example: "Coffee"
      • price string double

        Product price

        Example: "150.0"
      • vat_rate string double

        VAT rate

        Example: "0.0"
      • single_vat_amount string double

        VAT amount for a single product

        Example: "0.0"
      • price_with_vat string double

        Product price including VAT

        Example: "150.0"
      • vat_amount string double

        VAT amount

        Example: "0.0"
      • quantity integer

        Product quantity

        Example: 1
      • total_price string double

        Quantity x product price

        Example: "150.0"
      • total_with_vat string double

        Total price including VAT

        Example: "150.0"
    • vat_rates []object

      Vat rates.

       Show attributes
       Close
      Attributes
      • gross number

        Gross

      • net number

        Net

      • rate number

        Rate

      • vat number

        Vat

    • events []object

      Events

       Show attributes
       Close
      Attributes
      • id integer

        Unique ID of the transaction event.

      • transaction_id string

        Unique ID of the transaction.

      • type string

        Type of the transaction event.

      • status string

        Status of the transaction event.

      • amount string double

        Amount of the event.

      • timestamp string date-time

        Date and time of the transaction event.

      • receipt_no string
    • receipt_no string

      Receipt number

  • merchant_data object

    Receipt merchant data

     Show attributes
     Close
    Attributes
    • merchant_profile object
       Show attributes
       Close
      Attributes
      • merchant_code string
        Example: "MH4H92C7"
      • business_name string
      • email string
      • address object
         Show attributes
         Close
        Attributes
        • address_line1 string
        • city string
        • country string
        • country_en_name string
        • country_native_name string
        • post_code string
        • landline string
    • locale string
  • emv_data object
  • acquirer_data object
     Show attributes
     Close
    Attributes
    • tid string
    • authorization_code string
    • return_code string
    • local_time string
GET /v1.1/receipts/{id}
curl https://api.sumup.com/v1.1/receipts/{id} \
-X GET \
-H "Authorization: Bearer $SUMUP_API_KEY"
import SumUp from '@sumup/sdk';
const client = new SumUp();
const result = await client.receipts.get("id", "mid");
using SumUp;
var client = new SumUpClient();
var result = await client.Receipts.GetAsync(
"id",
"mid"
);
import com.sumup.sdk.SumUpClient;
SumUpClient client = SumUpClient.builder().build();
var result = client.receipts().getReceipt(
"id",
"mid"
);
from sumup import Sumup
client = Sumup()
result = client.receipts.get("id", "mid")
$sumup = new \SumUp\SumUp();
$result = $sumup->receipts->get('id', 'mid');
client := sumup.NewClient()
result, err := client.Receipts.Get(context.Background(), "id", "mid")
use sumup::Client;
let client = Client::default();
let result = client.receipts().get("id", sumup::GetReceiptParams{
mid: Some("mid".to_string()),
tx_event_id: Some("tx_event_id".to_string()),
}).await;
Retrieve receipt details response
{
"transaction_data": {
"transaction_code": null,
"amount": null,
"vat_amount": null,
"tip_amount": null,
"currency": null,
"timestamp": null,
"status": null,
"payment_type": null,
"entry_mode": null,
"verification_method": null,
"card": {
"last_4_digits": null,
"type": null
},
"installments_count": null,
"products": [
{
"name": "Coffee",
"price": "150.0",
"vat_rate": "0.0",
"single_vat_amount": "0.0",
"price_with_vat": "150.0",
"vat_amount": "0.0",
"quantity": 1,
"total_price": "150.0",
"total_with_vat": "150.0"
}
],
"vat_rates": [
{
"gross": null,
"net": null,
"rate": null,
"vat": null
}
],
"events": [
{
"id": null,
"transaction_id": null,
"type": null,
"status": null,
"amount": null,
"timestamp": null,
"receipt_no": null
}
],
"receipt_no": null
},
"merchant_data": {
"merchant_profile": {
"merchant_code": "MH4H92C7",
"business_name": null,
"email": null,
"address": {
"address_line1": null,
"city": null,
"country": null,
"country_en_name": null,
"country_native_name": null,
"post_code": null,
"landline": null
}
},
"locale": null
},
"emv_data": {},
"acquirer_data": {
"tid": null,
"authorization_code": null,
"return_code": null,
"local_time": null
}
}