Create cart

POST /cart

This endpoint allows you to create a cart with a unique identifier for each of your users.

Headers

Header
Type
Description

Authorization

string

Bearer token.

customuserid

string

This is a unique identifier that you create for each of your users.

Request body

{
    "items": [
        {"variantId": 123, "product": 123, "quantity": 1}
    ]
}

Response

{
  "status": "Cart Created",
}

Last updated