get_promotions_coupons
Retrieve all coupons for a specified promotion by providing its promotion ID. Use this read-only lookup to list or report promotion coupons without making changes.
Instructions
๐ข READ-ONLY ยท GET /v2/promotions/{pid}/coupons
Get promotions coupons. Returns all coupons for the promotion specified by the provided promotion id.
Behavior: read-only lookup against the live school; creates, changes and deletes nothing. Auth (admin API token + Lw-Client id) is injected server-side, never by the model; calls are throttled to stay under LearnWorlds' 30-per-10s cap and retried on 429/5xx.
Returns: HTTP <status> followed by the LearnWorlds JSON response body. A non-2xx reply surfaces as a tool error with that status and the API error payload โ 401 bad/expired token, 403 not permitted, 404 no such record, 422 rejected input.
Use when: safe to call speculatively for lookups and reporting. Not for changing anything โ use the matching ๐ก write tool. Related Promotions tools: create_coupon_promotion, get_coupon_usage, create_coupons_promotion_bulk, create_promotion, get_promotion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Promotion Id |