Update a shopping cart by ID
PATCH/api/cart/:id
Update a shopping cart using its ID.
Request
Path Parameters
id stringrequired
The ID of the cart to update
- application/json
Body
required
shipping_country string
Country code
Responses
- 200
Successful update of the cart
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
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[]
{
"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"
]
}
Loading...