get_upcoming_affiliate_payouts
Retrieve upcoming affiliate payouts for a given affiliate ID. Use this read-only lookup to see pending commissions and prepare payout reports.
Instructions
🟢 READ-ONLY · GET /v2/affiliates/{id}/payouts/upcoming
Get upcoming affiliate payouts. Returns the upcoming payouts specified by the provided affiliate 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 Affiliates tools: get_completed_affiliate_payouts, get_due_affiliate_payouts, get_affiliate_payments, get_customers_per_affiliate, get_leads_per_affiliate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Affiliate Id or email (encoded string) |