POST
/
cart
/
add
/
{id}
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.
promoted
enum<string>
Available options:
0,
1
payment_type
enum<string>
Available options:
0,
1

Response

200
application/json
Successful response indicating the item was added to the cart.
success
boolean

Indicates if the operation was successful.

message
string

A message providing additional information about the operation.