Process a checkout
Processing a checkout will attempt to charge the provided payment instrument for the amount of the specified checkout resource initiated in the Create a checkout
endpoint.
Follow this request with Retrieve a checkout
to confirm its status.
- application/json
Request Body
Details of the payment instrument for processing the checkout.
- payment_type string required
Possible values: [
card
,boleto
,ideal
,sofort
,bancontact
] - installments integer
Possible values:
>= 1
and<= 12
Number of installments for deferred payments. Available only to merchant users in Brazil.
mandate object
Mandate is passed when a card is to be tokenised
type string requiredPossible values: [
recurrent
]Indicates the mandate type
user_agent string requiredOperating system and web client used by the end user
user_ip stringIP address of the end user. Supports IPv4 and IPv6
card object
Required when payment type is
card
. Details of the payment card.name string requiredName of the cardholder as it appears on the payment card.
number string requiredNumber of the payment card (without spaces).
expiry_year string requiredPossible values:
>= 2 characters
and<= 4 characters
Year from the expiration time of the payment card. Accepted formats are
YY
andYYYY
.expiry_month string requiredPossible values: [
01
,02
,03
,04
,05
,06
,07
,08
,09
,10
,11
,12
]Month from the expiration time of the payment card. Accepted format is
MM
.cvv string requiredPossible values:
>= 3 characters
and<= 4 characters
Three or four-digit card verification value (security code) of the payment card.
zip_code stringPossible values:
>= 5 characters
and<= 5 characters
Required five-digit ZIP code. Applicable only to merchant users in the USA.
- token string
Required when using a tokenized card to process a checkout. Unique token identifying the saved payment card for a customer.
- customer_id string
Required when
token
is provided. Unique ID of the customer.
- 200
- 202
- 400
- 401
- 404
- 409
OK
- application/json
- Schema
- Example (from schema)
- Checkout Success Card
- Checkout Success Token
- Checkout Success Boleto
- Checkout Success Sofort
- Checkout Successi Deal
- Checkout Success Bancontact
Schema
- checkout_reference string
Possible values:
<= 90 characters
Unique ID of the payment checkout specified by the client application when creating the checkout resource.
- amount float
Amount of the payment.
- 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.
- pay_to_email email
Email address of the registered user (merchant) to whom the payment is made.
- merchant_code string
Unique identifying code of the merchant profile.
- description string
Short description of the checkout visible in the SumUp dashboard. The description can contribute to reporting, allowing easier identification of a checkout.
- return_url uri
URL to which the SumUp platform sends the processing status of the payment checkout.
- id string
Unique ID of the checkout resource.
- status string
Possible values: [
PENDING
,FAILED
,PAID
]Current status of the checkout.
- date date-time
Date and time of the creation of the payment checkout. Response format expressed according to ISO8601 code.
- valid_until date-time
Date and time of the checkout expiration before which the client application needs to send a processing request. If no value is present, the checkout does not have an expiration time.
- customer_id string
Unique identification of a customer. If specified, the checkout session and payment instrument are associated with the referrenced customer.
mandate object
Created mandate
type stringIndicates the mandate type
status stringMandate status
merchant_code stringMerchant code which has the mandate
transactions object[]
List of transactions related to the payment.
id stringUnique ID of the transaction.
transaction_code stringTransaction code returned by the acquirer/processing entity after processing the transaction.
amount floatTotal amount of the transaction.
currency stringPossible 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-timeDate and time of the creation of the transaction. Response format expressed according to ISO8601 code.
status stringPossible values: [
SUCCESSFUL
,CANCELLED
,FAILED
,PENDING
]Current status of the transaction.
payment_type stringPossible values: [
ECOM
,RECURRING
]Payment type used for the transaction.
installments_count integerPossible values:
>= 1
Current number of the installment for deferred payments.
merchant_code stringUnique code of the registered merchant to whom the payment is made.
vat_amount floatAmount of the applicable VAT (out of the total transaction amount).
tip_amount floatAmount of the tip (out of the total transaction amount).
entry_mode stringPossible values: [
CUSTOMER_ENTRY
]Entry mode of the payment details.
auth_code stringAuthorization code for the transaction sent by the payment card issuer or bank. Applicable only to card payments.
internal_id integerInternal unique ID of the transaction on the SumUp platform.
- transaction_code string
Transaction code of the successful transaction with which the payment for the checkout is completed.
- transaction_id string
Transaction ID of the successful transaction with which the payment for the checkout is completed.
- merchant_name string
Name of the merchant
- redirect_url string
Refers to a url where the end user is redirected once the payment processing completes.
payment_instrument object
Object containing token information for the specified payment instrument
token stringToken value
{
"checkout_reference": "string",
"amount": 0,
"currency": "BGN",
"pay_to_email": "[email protected]",
"merchant_code": "string",
"description": "string",
"return_url": "string",
"id": "string",
"status": "PENDING",
"date": "2023-05-24",
"valid_until": "2023-05-24",
"customer_id": "string",
"mandate": {
"type": "string",
"status": "string",
"merchant_code": "string"
},
"transactions": [
{
"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
}
],
"transaction_code": "string",
"transaction_id": "string",
"merchant_name": "string",
"redirect_url": "string",
"payment_instrument": {
"token": "string"
}
}
{
"checkout_reference": "f00a8f74-b05d-4605-bd73-2a901bae5802",
"amount": 10.1,
"currency": "EUR",
"pay_to_email": "[email protected]",
"merchant_code": "MH4H92C7",
"description": "Purchase",
"return_url": "http://example.com",
"id": "4e425463-3e1b-431d-83fa-1e51c2925e99",
"status": "PENDING",
"date": "2020-02-29T10:56:56+00:00",
"valid_until": "2020-02-29T10:56:56+00:00",
"customer_id": "831ff8d4cd5958ab5670",
"mandate": {
"type": "recurrent",
"status": "active",
"merchant_code": "MDASYTPD"
},
"transactions": [
{
"id": "410fc44a-5956-44e1-b5cc-19c6f8d727a4",
"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",
"internal_id": 1763892018
}
],
"transaction_code": "TEENSK4W2K",
"transaction_id": "410fc44a-5956-44e1-b5cc-19c6f8d727a4"
}
{
"checkout_reference": "f00a8f74-b05d-4605-bd73-2a901bae5802",
"amount": 10.1,
"currency": "EUR",
"pay_to_email": "[email protected]",
"merchant_code": "MH4H92C7",
"description": "Purchase with token",
"id": "4e425463-3e1b-431d-83fa-1e51c2925e99",
"status": "PENDING",
"date": "2020-02-29T10:56:56+00:00",
"transaction_code": "TEENSK4W2K",
"transaction_id": "410fc44a-5956-44e1-b5cc-19c6f8d727a4",
"merchant_name": "Sample Merchant",
"redirect_url": "https://mysite.com/completed_purchase",
"customer_id": "831ff8d4cd5958ab5670",
"payment_instrument": {
"token": "e76d7e5c-9375-4fac-a7e7-b19dc5302fbc"
},
"transactions": [
{
"id": "410fc44a-5956-44e1-b5cc-19c6f8d727a4",
"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",
"internal_id": 1763892018
}
]
}
{
"checkout_reference": "f00a8f74-b05d-4605-bd73-2a901bae5802",
"amount": 10.1,
"currency": "BRL",
"pay_to_email": "[email protected]",
"merchant_code": "MH4H92C7",
"description": "Boleto checkout",
"id": "4e425463-3e1b-431d-83fa-1e51c2925e99",
"status": "PENDING",
"date": "2021-07-06T12:34:02.000+00:00",
"merchant_name": "Sample shop",
"boleto": {
"barcode": "34191090081790614310603072340007886840000000200",
"url": "https://checkouts.sample.com/v0.1/checkouts/2e7a36cc-7897-446b-a966-952ab5f049ea/boleto"
},
"redirect_url": "https://website.com",
"purpose": "CHECKOUT",
"transactions": [
{
"id": "debd2986-9852-4e86-8a8e-7ea9c87dd679",
"transaction_code": "TEN3E696NP",
"merchant_code": "MH4H92C9",
"amount": 10.1,
"vat_amount": 6,
"tip_amount": 3,
"currency": "BRL",
"timestamp": "2021-07-06T12:34:16.460+00:00",
"status": "PENDING",
"payment_type": "BOLETO",
"entry_mode": "BOLETO",
"installments_count": 1,
"internal_id": 1763892018
}
]
}
{
"next_step": {
"url": "https://r3.girogate.de/ti/sofortueberweisungmixed",
"method": "GET",
"payload": {
"tx": "624786308",
"rs": "MyFOScJ7I3iAmU4Wmalwb1bObT1st1b1",
"cs": "364d0864ffa3602eb757b18326ffeb8be0c9c6e2ab7dcfebc1e2b0f6491eaae9"
},
"full": "https://r3.girogate.de/ti/sofortueberweisungmixed?tx=624786308&rs=MyFOScJ7I3iAmU4Wmalwb1bObT1st1b1&cs=364d0864ffa3602eb757b18326ffeb8be0c9c6e2ab7dcfebc1e2b0f6491eaae9",
"mechanism": [
"browser"
]
}
}
{
"next_step": {
"url": "https://r3.girogate.de/ti/simideal",
"method": "GET",
"payload": {
"tx": "961473700",
"rs": "ILnaUeQTKJ184fVrjGILrLjePX9E4rmz",
"cs": "c8bc0ea231f8372431ca22d6f8319f8de0263d0b1705759ed27155f245f193c5"
},
"full": "https://r3.girogate.de/ti/simideal?tx=961473700&rs=ILnaUeQTKJ184fVrjGILrLjePX9E4rmz&cs=c8bc0ea231f8372431ca22d6f8319f8de0263d0b1705759ed27155f245f193c5",
"mechanism": [
"browser"
]
}
}
{
"next_step": {
"url": "https://r3.girogate.de/ti/simbcmc",
"method": "GET",
"payload": {
"tx": "624788471",
"rs": "5MioXoKt2Gwj9dLgqAX1bMRBuT5xTSdB",
"cs": "697edacdd9175f3f99542500fa0ff08280b66aaff3c2641a2e212e4b039473cc"
},
"full": "https://r3.girogate.de/ti/simbcmc?tx=624788471&rs=5MioXoKt2Gwj9dLgqAX1bMRBuT5xTSdB&cs=697edacdd9175f3f99542500fa0ff08280b66aaff3c2641a2e212e4b039473cc",
"mechanism": [
"browser"
]
}
}
Accepted
- application/json
- Schema
- Example (from schema)
Schema
next_step object
Required action processing 3D Secure payments.
url stringWhere the end user is redirected.
method stringMethod used to complete the redirect.
redirect_url stringRefers to a url where the end user is redirected once the payment processing completes.
mechanism string[]Possible values: [
iframe
,browser
]Indicates allowed mechanisms for redirecting an end user. If both values are provided ensure a redirect takes place in either.
payload object
Contains parameters essential for form redirection. Number of object keys and their content can vary.
PaReqMDTermUrl
{
"next_step": {
"url": "string",
"method": "string",
"redirect_url": "string",
"mechanism": [
"iframe"
],
"payload": {}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Invalid_ Parameter
- Multiple_ Invalid_ Parameters
Schema
- MOD1
- MOD2
- message string
Short description of the error.
- error_code string
Platform code for the error.
- param string
Parameter name (with relative location) to which the error applies. Parameters from embedded resources are displayed using dot notation. For example,
card.name
refers to thename
parameter embedded in thecard
object. - allOf
{
"message": "string",
"error_code": "string",
"param": "string"
}
{
"message": "Validation error",
"error_code": "INVALID",
"param": "card.expiry_year"
}
[
{
"error_code": "INVALID",
"message": "Validation error",
"param": "card.name"
},
{
"error_code": "INVALID",
"message": "Validation error",
"param": "card.number"
},
{
"error_code": "INVALID",
"message": "Validation error",
"param": "card.expiry_year"
}
]
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"
}
Conflict
- application/json
- Schema
- Example (from schema)
- Checkout_ Processed
Schema
- message string
Short description of the error.
- error_code string
Platform code for the error.
{
"message": "string",
"error_code": "string"
}
{
"error_code": "CHECKOUT_PROCESSED",
"message": "Checkout is already processed"
}