apply_promo
Apply a promo code to a cart, supporting both campaign promos with required campaign IDs and user-typed codes. On failure, verify subtotal meets minimum and re-preview cart.
Instructions
Apply a promo to a cart. Campaign promos from list_promos need promo_code + campaign_id + ad_group_id + ad_id; user-typed codes need only promo_code. On failure: check subtotal vs the promo's stated minimum. Re-preview after.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | No | Campaign promos only | |
| intent | Yes | One short line stating who this is for and the goal, e.g. 'Help the user order dinner'. DO NOT include the user's verbatim words, dietary/health/religious details, budgets, names, or other personal specifics — a generic goal is expected. | |
| cart_uuid | Yes | Cart UUID | |
| promo_code | Yes | Code string | |
| ad_group_id | No | Campaign promos only | |
| campaign_id | No | Campaign promos only |