Skip to main content
POST
/
public
/
{user_id}
/
cart
/
{cart_uuid}
/
lines
Add To Cart
curl --request POST \
  --url https://apigw.ipxo.com/ecommerce/public/{user_id}/cart/{cart_uuid}/lines \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "price_id": "2f6c41a7-cc74-35c1-833d-43221c3286af",
  "quantity": 20
}
'
{
  "data": {
    "uuid": "a13651d1-84e3-4601-8b2e-c61ced85c9ea",
    "reference_id": "f4d4a43c-9215-3bd8-84f9-29ab23cd7e8f",
    "title": "Dr.",
    "description": "Ullam ut qui dignissimos nam.",
    "quantity": 1,
    "unit_quantity": 1,
    "purchasable_type": "product_variant",
    "purchasable_id": "e5fe7d27-6e76-337e-bc97-558b204bcdc2",
    "unit_price": {
      "currency": "USD",
      "amount": "0.00",
      "amount_minor": 0
    },
    "sub_total": {
      "currency": "USD",
      "amount": "0.00",
      "amount_minor": 0
    },
    "discount_total": {
      "currency": "USD",
      "amount": "0.00",
      "amount_minor": 0
    },
    "tax_total": {
      "currency": "USD",
      "amount": "0.00",
      "amount_minor": 0
    },
    "total": {
      "currency": "USD",
      "amount": "0.00",
      "amount_minor": 0
    },
    "total_before_tax": {
      "currency": "USD",
      "amount": "0.00",
      "amount_minor": 0
    },
    "exchange_rate": "0.80000000",
    "exchange_rate_fetched_at": "2026-03-03T14:05:29.0000000+00:00"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The ID of the user.

cart_uuid
string
required

Body

application/json
price_id
string
required

Must be a valid UUID. The uuid of an existing record in the prices table.

Example:

"2f6c41a7-cc74-35c1-833d-43221c3286af"

quantity
number

Must be at least 1.

Example:

20

Response

200 - application/json
data
object