Checkouts
Create a checkout
Creates a new payment checkout resource. The unique checkout_reference created by this request, is used for further manipulation of the checkout.
For 3DS checkouts, add the redirect_url parameter to your request body schema.
Follow by processing a checkout to charge the provided payment instrument.
post/v0.1/checkouts
Request body
Example request
{
"currency": "EUR",
"merchant_code": "MH4H92C7",
"date": "2020-02-29T10:56:56+00:00",
"valid_until": "2020-02-29T10:56:56+00:00",
"transactions": [
{
"id": "6b425463-3e1b-431d-83fa-1e51c2925e99",
"transaction_code": "TEENSK4W2K",
"amount": 10.1,
"currency": "EUR",
"timestamp": "2020-02-29T10:56:56.876Z",
"merchant_code": "MH4H92C7",
"vat_amount": 6,
"tip_amount": 3,
"auth_code": "053201",
"internal_id": 1763892018
}
],
"redirect_url": "https://mysite.com/completed_purchase"
}Response
Created
Example response
{
"amount": 10.1,
"currency": "EUR",
"merchant_code": "MH4H92C7",
"id": "4e425463-3e1b-431d-83fa-1e51c2925e99",
"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": "MH4H92C7"
},
"transactions": [
{
"id": "6b425463-3e1b-431d-83fa-1e51c2925e99",
"transaction_code": "TEENSK4W2K",
"amount": 10.1,
"currency": "EUR",
"timestamp": "2020-02-29T10:56:56.876Z",
"merchant_code": "MH4H92C7",
"vat_amount": 6,
"tip_amount": 3,
"auth_code": "053201",
"internal_id": 1763892018
}
]
}