Packages
Add Package
Adds an item to the user’s cart with optional promotion and payment type.
POST
/
cart
/
add
/
{id}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
id
string
requiredThe 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
promoted
enum<string>
Available options:
0
, 1
payment_type
enum<string>
Available options:
0
, 1
Response
200 - application/json
success
boolean
Indicates if the operation was successful.
message
string
A message providing additional information about the operation.