List all affiliate programs
Returns a paginated list of affiliate programs. Supports filtering by product, date range, and sort order.
Query Parameters
Page number for pagination (1-based).
Number of programs to return per page.
Sort order for the results.
ascdescFilter programs by a specific product UUID.
Start date filter (ISO 8601 string or Unix timestamp).
End date filter (ISO 8601 string or Unix timestamp).
Responses
Programs retrieved successfully
Total number of programs matching the query.
affiliate_programUnix epoch (seconds).
Fixed commission in smallest currency unit.
Percentage as a decimal (e.g. 0.10 = 10%).
onceforeverrepeatingDuration in months (only for repeating type).
Multilingual content keyed by language code.
Number of affiliates in the program.
Number of sales with affiliate revenue.
enableddisabledValidation or business logic error. Returned when:
pageorper_pageare not integers or exceed their maximum (100000 / 100)orderis notascordescproduct_idis not a valid UUIDfromortoare not a valid date format, are null, or exceed 26 characters- Unknown query parameters are sent
Error codes:
| Code | Description |
|---|---|
| 1002 | Product not found or does not belong to your account |
Missing or invalid API key