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
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The ID of the item for which the variable is being set.
Body
application/json
The ID of the variable to be set for the item.
Example:
123
The value of the variable to be applied to the item.
Example:
"Large"
Response
200
application/json
Successfully set or updated the variable for the item in the cart.
Indicates if the operation was successful.