Packages
Set Variable
Updates the variable value for a specific item in the user’s cart. It handles variable pricing based on item configuration and user selection.
POST
/
cart
/
setVariable
/
{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 for which the variable is being set.
Body
application/json
var_id
integer
requiredThe ID of the variable to be set for the item.
var_value
string
requiredThe value of the variable to be applied to the item.
Response
200 - application/json
success
boolean
Indicates if the operation was successful.