Get Offer Deals
curl --request GET \
--url https://api.eflow.team/v1/affiliates/offers/{offerId}/deals \
--header 'X-Eflow-Api-Key: <api-key>'import requests
url = "https://api.eflow.team/v1/affiliates/offers/{offerId}/deals"
headers = {"X-Eflow-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Eflow-Api-Key': '<api-key>'}};
fetch('https://api.eflow.team/v1/affiliates/offers/{offerId}/deals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eflow.team/v1/affiliates/offers/{offerId}/deals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Eflow-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eflow.team/v1/affiliates/offers/{offerId}/deals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eflow.team/v1/affiliates/offers/{offerId}/deals")
.header("X-Eflow-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/affiliates/offers/{offerId}/deals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"deals": [
{
"network_advertiser_deal_id": 123,
"name": "<string>",
"deal_type": "<string>",
"deal_status": "<string>",
"deal_categories": [
"<string>"
],
"network_id": 123,
"description": "<string>",
"brand_name": "<string>",
"scope": "<string>",
"restrictions": "<string>",
"coupon_code": "<string>",
"coupon_code_discount_amount": 123,
"coupon_code_discount_percentage": 123,
"coupon_code_discount_currency_id": "<string>",
"threshold_amount": 123,
"threshold_amount_currency_id": "<string>",
"threshold_quantity": 123,
"purchase_limit_amount": 123,
"purchase_limit_amount_currency_id": "<string>",
"purchase_limit_quantity": 123,
"date_valid_from": 123,
"date_valid_to": 123,
"date_valid_timezone_id": 123,
"time_created": 1734455015,
"time_saved": 1734455015,
"time_deleted": 1734455015,
"relationship": {}
}
]
}Deals
Get Offer Deals
GET
/
affiliates
/
offers
/
{offerId}
/
deals
Get Offer Deals
curl --request GET \
--url https://api.eflow.team/v1/affiliates/offers/{offerId}/deals \
--header 'X-Eflow-Api-Key: <api-key>'import requests
url = "https://api.eflow.team/v1/affiliates/offers/{offerId}/deals"
headers = {"X-Eflow-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Eflow-Api-Key': '<api-key>'}};
fetch('https://api.eflow.team/v1/affiliates/offers/{offerId}/deals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eflow.team/v1/affiliates/offers/{offerId}/deals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Eflow-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eflow.team/v1/affiliates/offers/{offerId}/deals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eflow.team/v1/affiliates/offers/{offerId}/deals")
.header("X-Eflow-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/affiliates/offers/{offerId}/deals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"deals": [
{
"network_advertiser_deal_id": 123,
"name": "<string>",
"deal_type": "<string>",
"deal_status": "<string>",
"deal_categories": [
"<string>"
],
"network_id": 123,
"description": "<string>",
"brand_name": "<string>",
"scope": "<string>",
"restrictions": "<string>",
"coupon_code": "<string>",
"coupon_code_discount_amount": 123,
"coupon_code_discount_percentage": 123,
"coupon_code_discount_currency_id": "<string>",
"threshold_amount": 123,
"threshold_amount_currency_id": "<string>",
"threshold_quantity": 123,
"purchase_limit_amount": 123,
"purchase_limit_amount_currency_id": "<string>",
"purchase_limit_quantity": 123,
"date_valid_from": 123,
"date_valid_to": 123,
"date_valid_timezone_id": 123,
"time_created": 1734455015,
"time_saved": 1734455015,
"time_deleted": 1734455015,
"relationship": {}
}
]
}Returns all deals associated with a specific offer. Deals include coupon codes, discount information, brand partnerships, and validity periods. Only returns deals for offers the affiliate is authorized to view.
Authorizations
Was this page helpful?
