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 [
]
Array [
]
Array [
- gift-wrap-quote
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
]
loyalty_profile
object
Optional object containing information about loyalty program effects from this quote.
Points that can be earned by proceeding with this quote
availableDiscounts
object[]
Discounts that can be optionally applied to this quote via the customer's loyalty profile
Optional code to be applied for this discount
Reward description
Optional expiry date for the reward
Total currency units to be discounted from the total when this discount is applied.
addons
object[]
Addons available in the quotation.
oneOf
Possible values: [GIFT_WRAP
]
The addon type. Must be GIFT_WRAP for this schema.
options
object[]
required
A list of available gift wrap options.
The unique identifier for this gift wrap option.
Pre-tax cost in cents.
Tax cost in cents.
Total cost in cents.
{
"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
}
],
"loyalty_profile": {
"potentialPointsForOrder": 0,
"availableDiscounts": [
{
"code": "string",
"description": "string",
"expires": "2024-07-29",
"discount_cents": 0
}
]
},
"addons": [
{}
]
}
]
}
{
"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,
"addons": [
{
"type": "GIFT_WRAP",
"options": [
{
"id": "fancy",
"net_cents": 100,
"tax_cents": 0,
"total_cents": 100
},
{
"id": "basic",
"net_cents": 50,
"tax_cents": 5,
"total_cents": 55
}
]
}
]
},
{
"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,
"addons": [
{
"type": "GIFT_WRAP",
"options": [
{
"id": "fancy",
"net_cents": 100,
"tax_cents": 0,
"total_cents": 100
},
{
"id": "basic",
"net_cents": 50,
"tax_cents": 5,
"total_cents": 55
}
]
}
]
}
]
}
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"
}