update_code_discount_bxgy
Update an existing buy X get Y discount code. Modify only the fields you specify, such as title, code, dates, product eligibility, and discount type.
Instructions
Update an existing BXGY code discount. Only provided fields are changed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "update_code_discount_bxgy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | GID of the discount node. | |
| title | No | ||
| code | No | ||
| startsAt | No | ||
| endsAt | No | ||
| appliesOncePerCustomer | No | ||
| usesPerOrderLimit | No | ||
| buyQuantity | No | ||
| buyAll | No | ||
| buyProductIds | No | ||
| buyCollectionIds | No | ||
| getQuantity | No | ||
| getAll | No | ||
| getProductIds | No | ||
| getCollectionIds | No | ||
| getDiscountType | No | ||
| getDiscountPercentage | No | ||
| combinesWith | No | Discount classes this discount can combine with. |