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
Query Parameters
- id string
Retrieves the transaction resource with the specified transaction ID (the
id
parameter in the transaction resource). - internal_id string
Retrieves the transaction resource with the specified internal transaction ID (the
internal_id
parameter in the transaction resource). - transaction_code string
Retrieves the transaction resource with the specified transaction code.
- 200
- 401
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
- id string
Unique ID of the transaction.
- transaction_code string
Transaction code returned by the acquirer/processing entity after processing the transaction.
- amount float
Total amount of the transaction.
- currency string
Possible values: [
BGN
,BRL
,CHF
,CLP
,CZK
,DKK
,EUR
,GBP
,HRK
,HUF
,NOK
,PLN
,RON
,SEK
,USD
]Three-letter ISO4217 code of the currency for the amount. Currently supported currency values are enumerated above.
- timestamp date-time
Date and time of the creation of the transaction. Response format expressed according to ISO8601 code.
- status string
Possible values: [
SUCCESSFUL
,CANCELLED
,FAILED
,PENDING
]Current status of the transaction.
- payment_type string
Possible values: [
ECOM
,RECURRING
]Payment type used for the transaction.
- installments_count integer
Possible values:
>= 1
Current number of the installment for deferred payments.
- merchant_code string
Unique code of the registered merchant to whom the payment is made.
- vat_amount float
Amount of the applicable VAT (out of the total transaction amount).
- tip_amount float
Amount of the tip (out of the total transaction amount).
- entry_mode string
Possible values: [
CUSTOMER_ENTRY
]Entry mode of the payment details.
- auth_code string
Authorization code for the transaction sent by the payment card issuer or bank. Applicable only to card payments.
- internal_id integer
Internal unique ID of the transaction on the SumUp platform.
- product_summary string
Short description of the payment. The value is taken from the
description
property of the related checkout resource. - payouts_total integer
Total number of payouts to the registered user specified in the
user
property. - payouts_received integer
Number of payouts that are made to the registered user specified in the
user
property. - payout_plan string
Possible values: [
SINGLE_PAYMENT
,TRUE_INSTALLMENT
,ACCELERATED_INSTALLMENT
]Payout plan of the registered user at the time when the transaction was made.
- username email
Email address of the registered user (merchant) to whom the payment is made.
- lat float
Possible values:
<= 90
Latitude value from the coordinates of the payment location (as received from the payment terminal reader).
- lon float
Possible values:
<= 180
Longitude value from the coordinates of the payment location (as received from the payment terminal reader).
- horizontal_accuracy float
Indication of the precision of the geographical position received from the payment terminal.
- simple_payment_type string
Possible values: [
MOTO
,CASH
,CC_SIGNATURE
,ELV
,CC_CUSTOMER_ENTERED
,MANUAL_ENTRY
,EMV
]Simple name of the payment type.
- verification_method string
Possible values: [
none
,signature
,offline pin
,online pin
,offline pin + signature
,confirmation code verified
]Verification method used for the transaction.
card object
Details of the payment card.
last_4_digits stringPossible values:
>= 4 characters
and<= 4 characters
Last 4 digits of the payment card number.
type stringPossible values: [
AMEX
,CUP
,DINERS
,DISCOVER
,ELO
,ELV
,HIPERCARD
,JCB
,MAESTRO
,MASTERCARD
,VISA
,VISA_ELECTRON
,VISA_VPAY
,UNKNOWN
]Issuing card network of the payment card.
- local_time date-time
Local date and time of the creation of the transaction.
- payout_type string
Possible values: [
BANK_ACCOUNT
,BALANCE
,PREPAID_CARD
]Payout type for the transaction.
products object[]
List of products from the merchant's catalog for which the transaction serves as a payment.
name stringName of the product from the merchant's catalog.
price floatPrice of the product without VAT.
vat_rate floatVAT rate applicable to the product.
single_vat_amount floatAmount of the VAT for a single product item (calculated as the product of
price
andvat_rate
, i.e.single_vat_amount = price * vat_rate
).price_with_vat floatPrice of a single product item with VAT.
vat_amount floatTotal VAT amount for the purchase (calculated as the product of
single_vat_amount
andquantity
, i.e.vat_amount = single_vat_amount * quantity
).quantity numberNumber of product items for the purchase.
total_price floatTotal price of the product items without VAT (calculated as the product of
price
andquantity
, i.e.total_price = price * quantity
).total_with_vat floatTotal price of the product items including VAT (calculated as the product of
price_with_vat
andquantity
, i.e.total_with_vat = price_with_vat * quantity
).- vat_rates array
List of VAT rates applicable to the transaction.
transaction_events object[]
List of transaction events related to the transaction.
id int64Unique ID of the transaction event.
event_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.
due_date dateDate when the transaction event is due to occur.
date dateDate when the transaction event occurred.
installment_number integerConsequtive number of the installment that is paid. Applicable only payout events, i.e.
event_type = PAYOUT
.timestamp date-timeDate and time of the transaction event.
- simple_status string
Possible values: [
SUCCESSFUL
,PAID_OUT
,CANCEL_FAILED
,CANCELLED
,CHARGEBACK
,FAILED
,REFUND_FAILED
,REFUNDED
,NON_COLLECTION
]Status generated from the processing status and the latest transaction state.
- links object[]
List of hyperlinks for accessing related resources.
events object[]
List of events related to the transaction.
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.
fee_amount floatAmount of the fee related to the event.
installment_number integerConsecutive number of the installment.
deducted_amount floatAmount deducted for the event.
deducted_fee_amount floatAmount of the fee deducted for the event.
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.
- tax_enabled boolean
Indicates whether tax deduction is enabled for the transaction.
{
"id": "string",
"transaction_code": "string",
"amount": 0,
"currency": "BGN",
"timestamp": "2023-05-24",
"status": "SUCCESSFUL",
"payment_type": "ECOM",
"installments_count": 0,
"merchant_code": "string",
"vat_amount": 0,
"tip_amount": 0,
"entry_mode": "CUSTOMER_ENTRY",
"auth_code": "string",
"internal_id": 0,
"product_summary": "string",
"payouts_total": 0,
"payouts_received": 0,
"payout_plan": "SINGLE_PAYMENT",
"username": "[email protected]",
"lat": 0,
"lon": 0,
"horizontal_accuracy": 0,
"simple_payment_type": "MOTO",
"verification_method": "none",
"card": {
"last_4_digits": "string",
"type": "AMEX"
},
"local_time": "2023-05-24",
"payout_type": "BANK_ACCOUNT",
"products": [
{
"name": "string",
"price": 0,
"vat_rate": 0,
"single_vat_amount": 0,
"price_with_vat": 0,
"vat_amount": 0,
"quantity": 0,
"total_price": 0,
"total_with_vat": 0
}
],
"vat_rates": [
null
],
"transaction_events": [
{
"id": 0,
"event_type": "PAYOUT",
"status": "PENDING",
"amount": 0,
"due_date": "2023-05-24",
"date": "2023-05-24",
"installment_number": 0,
"timestamp": "2023-05-24"
}
],
"simple_status": "SUCCESSFUL",
"links": [
{
"rel": "string",
"href": "string",
"type": "string"
},
{
"rel": "string",
"href": "string",
"type": "string",
"min_amount": 0,
"max_amount": 0
}
],
"events": [
{
"id": 0,
"transaction_id": "string",
"type": "PAYOUT",
"status": "PENDING",
"amount": 0,
"timestamp": "2023-05-24",
"fee_amount": 0,
"installment_number": 0,
"deducted_amount": 0,
"deducted_fee_amount": 0
}
],
"location": {
"lat": 0,
"lon": 0,
"horizontal_accuracy": 0
},
"tax_enabled": true
}
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"
}
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"
}