Skip to main content
POST
/
{shopId}
/
cart
Create cart (No variant)
curl --request POST \
  --url http://staging.qshop.ng/apiv2/{shopId}/cart \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "_id": "6426e90031af623fe56938c8",
      "name": "New Samsung s16",
      "qty": 1,
      "variant": {
        "_id": "6426e90031af623fe56938c6"
      }
    }
  ],
  "user": "61a956551a113f7e13c45c10"
}
'

Body

application/json
items
object[]
Example:
[
{
"_id": "6426e90031af623fe56938c8",
"name": "New Samsung s16",
"qty": 1,
"variant": { "_id": "6426e90031af623fe56938c6" }
}
]
user
string
Example:

"61a956551a113f7e13c45c10"

Response

200 - undefined