Create discounts
create_discountsCreate per-store product discounts in bulk, up to 100 per request, for Yango Tech darkstores. Define activity periods and discount values to apply promotions via the B2B API.
Instructions
Creates per-store product discounts (POST /b2b/v1/discounts/create), at most 100 per request. CAUTION: the exact key names inside discount_activity_period and discount_value are NOT documented (the official client types them as plain string→string maps with no example) — confirm the expected keys with Yango Tech before relying on this tool, and note there is no endpoint to list or delete discounts. The response body is not documented upstream (2xx = success) and is returned verbatim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| discounts | Yes | Discounts to create (at most 100 per request). |