WhiteLabel API
Affiliate Network
List All Public Programs
this api endpoint ( get get ) retrieves all affiliate programs that have been listed by your clients in your affiliate network 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 public program object docid\ fhkoh22n kpj9czvrc6pe the number of available results and the flags used for filtering permissions affiliate network 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 subscriber was created) to appendix docid\ kfbmx4q3dxjtduqf75yx1 end date used for filtering (the date the subscriber was created) require "uri" require "net/http" url = uri("https //api tamio com/v2/whitelabel/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/whitelabel/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/whitelabel/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" \[ "caf80f0e 6f00 4e53 839b 847b7fe07fa0" ], "domain" { "id" "bc06950e 226c 4a6f 82b1 bff6fe170374", "domain" "google com" }, "seller" { "name" "awesome merchant", "email" "awesomemerchant\@example com", "country" "de" }, "affiliates" 10, "label" "test", "created at" 1671586309, "signup url" null, "id" "d628c45b 271c 4070 ab43 c2c1cc369eef", "currency" "eur", "commission amount" 10000, "commission percent" 0, "description" "test", "payout delay" 0, "subscription commission type" "once", "destinations" \[ "worldwide" ], "payments" \[ "utrust", "bitpay" ], "is public" false, "auto approve" true, "is listed" true, "allow bonuses" true, "payment count" null, "affiliate notifications" true, "banners" null, "approved" true } ], "total results" 1, "status" 200, "page" 1, "per page" 10, "filter" null, "from" null, "to" null }