Affiliates API
Affiliates
List All Blocked Affiliates
this endpoint ( get get ) retrieves all the affiliates that are blocked from joining your affiliate 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 object docid\ kcij54n ngxgdktcb7q8y the number of available results and the flags used for filtering permissions affiliates view path parameters id the id of the affiliate program 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 50 and if it defaults to 10 from appendix docid\ kfbmx4q3dxjtduqf75yx1 start date used for filtering to appendix docid\ kfbmx4q3dxjtduqf75yx1 end date used for filtering filter optional text used for filtering results by name , email and country require "uri" require "net/http" url = uri("https //api tamio com/v2/affiliates/blocked/51826951 5d7a 4192 83f8 zdr1233949e5?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 var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api tamio com/v2/affiliates/blocked/51826951 5d7a 4192 83f8 zdr1233949e5?page=1\&per page=10", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));curl location request get 'https //api tamio com/v2/affiliates/blocked/51826951 5d7a 4192 83f8 zdr1233949e5?page=1\&per page=10' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'{ "blocked affiliates" \[ { "email" "blocked\@test com", "created at" 1709682611, "id" "51826951 5d7a 4192 83f8 f4e5d23949e5" } ], "total results" 1, "status" 200, "page" 1, "per page" 10 }