create_order_bump
Offer an order bump product on a checkout page or event (an add-on on events). It is added last. Create the product first with create_product, or find one with list_products (role: orderbump). 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 | ID of a product with `role: orderbump` (create one with create_product, find one with list_products). It must share the page currency, have one enabled price that is not a payment plan, and not already be sold or offered on this page. | |
| 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 |