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:
Validation 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 |
status
integer
error
string
error_code
integer
401
Missing or invalid API key
Missing or invalid API key
status
integer
error
string