Skip to main content
POST
/
cart
/
add-items
[
  {
    "item_key": "<string>",
    "id": 123,
    "name": "<string>",
    "title": "<string>",
    "price": "<string>",
    "quantity": {
      "value": 123,
      "min_purchase": 123,
      "max_purchase": 123
    },
    "totals": {
      "subtotal": 123,
      "subtotal_tax": 123,
      "total": 123,
      "tax": 123
    },
    "slug": "<string>",
    "meta": {
      "product_type": "<string>",
      "sku": "<string>",
      "dimensions": {
        "length": "<string>",
        "width": "<string>",
        "height": "<string>",
        "unit": "<string>"
      },
      "weight": "<string>",
      "variation": {}
    },
    "backorders": "<string>",
    "cart_item_data": {},
    "featured_image": "<string>"
  }
]

Body

application/json
items
object[]
required

Array of items to add to the cart.

email
string<email>

Set the customers billing email address.

phone
string

Set the customers billing phone number.

return_items
boolean
default:false

Returns the items details once added.

Response

Items added to cart successfully.

  • object[]
  • object

Returns array of added items when return_items is true.

item_key
string

Unique identifier for the item within the cart.

id
integer

Product ID.

name
string

Product name.

title
string

Product title.

price
string

Current product price.

quantity
object

Quantity information for this item.

totals
object

Item totals.

slug
string

Product slug.

meta
object

Item metadata.

backorders
string

Backorder status.

cart_item_data
object

Custom cart item data.

Product featured image URL.

I