Lookup coupon
lookup_couponValidate a promo code by checking its status, active dates, usage limits, discount amounts, and eligible packages. Also verify if it applies to specific packages.
Instructions
Validate a promo code: existence, status, start/end dates, usage limits, discount amounts per currency, eligible packages. Wraps Coupons.getByCode; with package_ids, also Coupons.getForPackages to check applicability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| package_ids | No | Check the coupon applies to these packages |