Quote Cart
POST/quote
Get a list of quotations for given cart. Stores create quotes for a given cart in order to perform tasks such as
- Track each item the customer wants to buy, including the quantity and base cost
- Gather information about the customer, including billing and shipping addresses
- Determine shipping costs
- Calculate the subtotal, add costs (shipping fees, taxes, etc.) and apply coupons to determine the grand total
- Place the order so that the merchant can fulfill it
Request
- application/json
Body
required
Array [
]
Array [
]
A unique identifier to track this request
metadata
object[]
Custom key-value pairs defined during cart creation
quotation
object
required
items
object[]
required
Line items
Product ID
attributes
object
User selected attributes (e.g. color, size)
Possible values: >= 3 characters
and <= 3 characters
The ISO 4217 code of a currency
ship_to
object
Shipping address
Possible values: >= 10 characters
and <= 14 characters
Possible values: >= 2 characters
and <= 2 characters
The ISO 3166-1 alpha-2 code of a country
Shopper's email
Discount coupon code
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
Array [
]
Array [
]
Array [
]
]
quotes
object[]
required
items
object[]
required
attributes
object
unit's net value multiplied by quantity
unit's tax multiplied by quantity
subtotal (net + tax) multiplied by quantity
unit's net value (including discounts) multiplied by quantity
unit's tax value (including discounts) multiplied by quantity
total cost (including discounts) multiplied by quantity
shipping_option
object
Possible values: [LOCAL_PICKUP
, DELIVERY
, BOX_NOW
]
total cart's cost
total cart's discount
fees
object[]
Auto applied amounts by the merchant. It could contain positive and/or negative values.
payment_methods
object[]
Possible values: [COD
]
{
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quotes": [
{
"items": [
{
"id": "string",
"quantity": 0,
"attributes": {
"Size": "XL",
"Color": "White"
},
"subtotal_net_cents": 0,
"subtotal_tax_cents": 0,
"subtotal_cents": 0,
"cost_net_cents": 0,
"cost_tax_cents": 0,
"cost_cents": 0
}
],
"shipping_option": {
"id": "string",
"name": "string",
"type": "LOCAL_PICKUP",
"net_cents": 0,
"tax_cents": 0,
"total_cents": 0
},
"total_cents": 0,
"discount_cents": 0,
"fees": [
{
"title": "string",
"cost_cents": 0
}
],
"payment_methods": [
{
"id": "string",
"name": "string",
"type": "COD",
"net_cents": 0,
"tax_cents": 0,
"total_cents": 0
}
]
}
]
}
{
"request_id": "af4ebaa6-7f47-4163-85af-d5b82a8cf4b0",
"quotes": [
{
"items": [
{
"id": "product-id-1",
"quantity": 1,
"subtotal_net_cents": 800,
"subtotal_tax_cents": 200,
"subtotal_cents": 1000,
"cost_net_cents": 700,
"cost_tax_cents": 200,
"cost_cents": 900
}
],
"shipping_option": {
"id": "ups-courier",
"type": "DELIVERY",
"name": "UPS courier (2-3 working days)",
"net_cents": 400,
"tax_cents": 100,
"total_cents": 500
},
"fees": [
{
"title": "Last pieces",
"cost_cents": -200
}
],
"total_cents": 1200,
"discount_cents": 100
},
{
"items": [
{
"id": "product-id-1",
"quantity": 1,
"subtotal_net_cents": 800,
"subtotal_tax_cents": 200,
"subtotal_cents": 1000,
"cost_net_cents": 700,
"cost_tax_cents": 200,
"cost_cents": 900
}
],
"shipping_option": {
"id": "same-day-delivery",
"type": "DELIVERY",
"name": "Same day delivery",
"net_cents": 800,
"tax_cents": 200,
"total_cents": 1000
},
"fees": [
{
"title": "Last pieces",
"cost_cents": -200
}
],
"total_cents": 1700,
"discount_cents": 100
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
Possible values: [INAPPLICABLE_COUPON
, INVALID_COUPON
, OUT_OF_STOCK_PRODUCT
, UNSHIPPABLE_LOCATION
, UNSHIPPABLE_CART
, INVALID_PRODUCT
]
{
"request_id": "string",
"message": "string",
"code": "INAPPLICABLE_COUPON"
}
{
"message": "Product 'product-id-1' is out of stock",
"code": "OUT_OF_STOCK_PRODUCT"
}