discounts_catalog_sale
Run a sale. Money is integer minor units (cents). Calling this changes nothing: it returns a preview of what would change and a confirmation link. Only the merchant, on that page, can make it happen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What the shopper sees it called. | |
| endsAt | No | ISO 8601. Omit to run until turned off. | |
| filter | Yes | Which products the sale covers. Give exactly one of all, collectionId, tag, vendor. | |
| startsAt | No | ISO 8601. Omit to start immediately. | |
| percentBps | Yes | Basis points off: 20% is 2000. |