Affiliates API
Affiliate Programs
List All Affiliate Programs
this api endpoint ( get get ) allows you to fetch all of your affiliate programs the response is paginated; therefore, you should use the 'page' parameter for navigating through the results in subsequent requests on successful completion, it returns an array of affiliate program object docid\ c8a1zandf7hre4jwqwewe , along with the total number of results available and any flags applied for filtering purposes permissions affiliate programs view query parameters page fetch the results from a specific page it defaults to 1 per page the number of results to fetch per page the maximum is 100 and if it defaults to 50 from appendix docid\ kfbmx4q3dxjtduqf75yx1 start date to use for filtering (the date the affiliate program was created) to appendix docid\ kfbmx4q3dxjtduqf75yx1 end date used for filtering (the date the affiliate program was created) product id string a product id to use for filtering results require "uri" require "net/http" url = uri("https //api tamio com/v2/affiliate programs/list?page=1\&per page=10") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" response = https request(request) puts response read body curl location request get 'https //api tamio com/v2/affiliate programs/list?page=1\&per page=10' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'get', headers myheaders }; fetch("https //api tamio com/v2/affiliate programs/list?page=1\&per page=10", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "programs" \[ { "object" "affiliate program", "products" \[], "domain" "bc06950e 226c 4a6f 82b1 bff6fe170374", "label" "20% commission", "languages" { "en" { "label" "20% commissionn", "description" "awesome affiliate program with 20% recurring commission" }, }, "created at" 1671639386, "signup url" null, "id" "9d1c6ac2 bf2c 403f 9261 96235d18e5be", "currency" "eur", "commission amount" 0, "commission percent" 20 0, "description" "promote our new line of clothing and receive 20% commission!", "payout delay" 0, "subscription commission type" "once", "destinations" \[ "worldwide" ], "payments" \[ "stripe" ], "is public" false, "auto approve" false, "is listed" false, "allow bonuses" false, "payment count" null, "affiliate notifications" false, "banners" null } ], "total results" 1, "status" 200, "page" 1, "per page" 10, "filter" null, "from" null, "to" null }