Create a checkout
POST/api/checkout
Create a checkout for a given cart.
Request
- application/json
Body
required
cart_id string
The ID of the cart
Responses
- 200
Successful creation of the checkout
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
id string
success_url stringnullable
cancel_url stringnullable
payment_method stringnullable
email stringnullable
status string
checkout_url stringnullable
origin_payment_id stringnullable
origin_payment_body objectnullable
cart
object
cart_id string
customer_session_id string
shipping_country string
line_items
object[]
id string
supplier string
product_available_shippings
object[]
id string
name string
description string
country_code string
price
object
amount number
amount_incl_taxes number
tax_amount number
tax_rate number
currency_code string
product_brand string
product_sku string
product_barcode string
product_id number
product_title string
product_image
object[]
id number
url string
width number
height number
variant_id numbernullable
variant_title stringnullable
variant object[]
quantity number
shipping
object
nullable
id string
name string
description string
price
object
amount number
amount_incl_taxes number
tax_amount number
tax_rate number
currency_code string
price
object
amount number
discount number
currency_code string
compare_at number
amount_incl_taxes number
compare_at_incl_taxes number
tax_amount number
tax_rate number
subtotal number
shipping number
currency string
available_shipping_countries string[]
billing_address
object
id string
first_name string
last_name string
phone_code string
phone string
company stringnullable
address1 string
address2 stringnullable
city string
province stringnullable
province_code stringnullable
country string
country_code string
zip string
shipping_address
object
id string
first_name string
last_name string
phone_code string
phone string
company stringnullable
address1 string
address2 stringnullable
city string
province stringnullable
province_code stringnullable
country string
country_code string
zip string
totals
object
currency_code string
subtotal number
shipping number
total number
taxes number
tax_rate number
discounts number
discount_code stringnullable
buyer_accepts_purchase_conditions boolean
buyer_accepts_terms_conditions boolean
created_at string
updated_at string
deleted_at stringnullable
{
"id": "3e45985c-3038-4e02-bd18-85554c5db6ef",
"success_url": "string",
"cancel_url": "string",
"payment_method": "string",
"email": "string",
"status": "ACTIVE",
"checkout_url": "string",
"origin_payment_id": "string",
"origin_payment_body": {},
"cart": {
"cart_id": "d35a8791-0cf9-4cf1-8817-1774e15c3c01",
"customer_session_id": "my-session-id-01",
"shipping_country": "US",
"line_items": [
{
"id": "f287736b-4ac6-4aef-b922-0cca2372888d",
"supplier": "tipio_test@reachu.io",
"product_available_shippings": [
{
"id": "6999657f-df54-4777-8f0e-5c917aef03a2",
"name": "seller USA & CA",
"description": "seller USA & CA",
"country_code": "US",
"price": {
"amount": 94.34,
"amount_incl_taxes": 100,
"tax_amount": 5.66,
"tax_rate": 6,
"currency_code": "NOK"
}
}
],
"product_brand": "",
"product_sku": "UXHAWEIURIAM6AAR",
"product_barcode": "",
"product_id": 402559,
"product_title": "Ps4",
"product_image": [
{
"id": 230947,
"url": "https://containerqa.reachu.io/reachu-Uploads-qa/product-images/402559-a56b7e56-1f77-42cc-a6f7-ea106d9639f3.jpeg",
"width": 259,
"height": 194
}
],
"variant_id": 0,
"variant_title": "string",
"variant": [
{}
],
"quantity": 2,
"shipping": {
"id": "6999657f-df54-4777-8f0e-5c917aef03a2",
"name": "seller USA & CA",
"description": "seller USA & CA",
"price": {
"amount": 94.34,
"amount_incl_taxes": 100,
"tax_amount": 5.66,
"tax_rate": 6,
"currency_code": "NOK"
}
},
"price": {
"amount": 9433.96,
"discount": 2000,
"currency_code": "NOK",
"compare_at": 0,
"amount_incl_taxes": 10000,
"compare_at_incl_taxes": 0,
"tax_amount": 566.04,
"tax_rate": 6
}
}
],
"subtotal": 20000,
"shipping": 100,
"currency": "NOK",
"available_shipping_countries": [
"US"
]
},
"billing_address": {
"id": "0bbeee33-c92f-4a41-a466-a4360515528e",
"first_name": "First",
"last_name": "Last",
"phone_code": "47",
"phone": "40123456",
"company": "string",
"address1": "test 1234",
"address2": "string",
"city": "Oslo",
"province": "string",
"province_code": "string",
"country": "Norway",
"country_code": "NO",
"zip": "0000"
},
"shipping_address": {
"id": "0bbeee33-c92f-4a41-a466-a4360515528e",
"first_name": "First",
"last_name": "Last",
"phone_code": "47",
"phone": "40123456",
"company": "string",
"address1": "test 1234",
"address2": "string",
"city": "Oslo",
"province": "string",
"province_code": "string",
"country": "Norway",
"country_code": "NO",
"zip": "0000"
},
"totals": {
"currency_code": "NOK",
"subtotal": 20000,
"shipping": 100,
"total": 18100,
"taxes": 1137.74,
"tax_rate": 6,
"discounts": 2000
},
"discount_code": "CODE10",
"buyer_accepts_purchase_conditions": true,
"buyer_accepts_terms_conditions": true,
"created_at": "2025-09-10T20:42:40.289Z",
"updated_at": "2025-09-10T21:36:36.000Z",
"deleted_at": "string"
}
Loading...