update_order_bump
Change how an order bump is offered on one checkout page or event: enabled, preselected, hidden, the show/hide rule, quantity and description clamping. Only supplied fields change. Edit the product's copy and price with update_product. Mutating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hidden | No | Hide the order bump unless the page URL reveals it with `?show_order_bumps=` and the product price reference. | |
| pageId | Yes | The ID of the checkout page or event. Use the type you fetched it with (get_checkout_page or get_event). | |
| enabled | No | Whether the order bump is offered. A disabled order bump stays on the page but is not shown. | |
| pageType | Yes | The kind of page the order bump is on: `checkout` for a checkout page, `event` for an event (where order bumps are shown as add-ons). | |
| productId | Yes | The ID of the order bump product placed on the page. Listed as `productId` by list_order_bumps. | |
| preselected | No | Whether the order bump is ticked when the page loads. | |
| allowQuantity | No | Let the customer pick a quantity. Off, the order bump is bought once. | |
| showHideLogic | No | Rule that shows the order bump only for some selections. Sent whole: it replaces the stored rule. | |
| shortenDescription | No | Clamp a long description behind a Show more toggle. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |