List all affiliate programs

GET https://api.tamio.com/v2/affiliate-programs/list

Returns a paginated list of affiliate programs. Supports filtering by product, date range, and sort order.

Query Parameters

page integer

Page number for pagination (1-based).

per_page integer

Number of programs to return per page.

order string

Sort order for the results.

ascdesc
product_id string

Filter programs by a specific product UUID.

from object

Start date filter (ISO 8601 string or Unix timestamp).

to object

End date filter (ISO 8601 string or Unix timestamp).

Responses

200 Programs retrieved successfully

Programs retrieved successfully

status integer
total_results integer

Total number of programs matching the query.

programs array of AffiliateProgram
400 Validation or business logic error. Returned when:
401 Missing or invalid API key
/affiliate-programs/list
1const response = await fetch("https://api.tamio.com/v2/affiliate-programs/list", {
2 headers: {
3 "Authorization": "Bearer YOUR_API_KEY",
4 "Accept": "application/json"
5 }
6});
7const data = await response.json();
Responses
{
  "status": 200,
  "total_results": 5,
  "programs": []
}