POST
/
cart
/
add
/
{id}
Add an item to the cart
curl --request POST \
  --url https://v3.minestorecms.com/api/cart/add/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "promoted": "0",
  "payment_type": "0"
}'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The ID of the item to add to the cart.

Query Parameters

promoted
enum<string>

Whether the item is promoted. Possible values are '0' (no) and '1' (yes).

Available options:
0,
1
payment_type
enum<string>

The type of payment for the item. Possible values are '0' (regular) and '1' (subscription).

Available options:
0,
1

Body

application/json

Item details to be added to the cart.

The body is of type object.

Response

Successful response indicating the item was added to the cart.

The response is of type object.