Affiliates API
Affiliate Programs
Retrieve Affiliate Program
this api endpoint ( get get ) retrieves an affiliate program by id if the request succeeds, it will return an affiliate program object docid\ c8a1zandf7hre4jwqwewe ; otherwise, it will return an error permissions affiliate programs view path parameters id the id of the affiliate program to retrieve require "uri" require "net/http" url = uri("https //api tamio com/v2/affiliate programs/retrieve/9d1c6ac2 bf2c 403f 9261 96235d18e5be") 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/retrieve/9d1c6ac2 bf2c 403f 9261 96235d18e5be' \\ \ 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/retrieve/9d1c6ac2 bf2c 403f 9261 96235d18e5be", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "program" { "object" "affiliate program", "products" \[], "domain" null, "label" "20% commission", "languages" { "en" { "label" "20% commissionn", "description" "awesome affiliate program with 20% recurring commission" }, }, "created at" 1671639386, "signup url" null, "domain" "bc06950e 226c 4a6f 82b1 bff6fe170374", "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 } }