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.
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. |