Get Deal By ID
curl --request GET \
--url https://api.eflow.team/v1/affiliates/offers/{offerId}/deals/{dealId} \
--header 'X-Eflow-Api-Key: <api-key>'import requests
url = "https://api.eflow.team/v1/affiliates/offers/{offerId}/deals/{dealId}"
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/{dealId}', 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/{dealId}",
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/{dealId}"
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/{dealId}")
.header("X-Eflow-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/affiliates/offers/{offerId}/deals/{dealId}")
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{
"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": {
"locations": [
{}
],
"products": [
{}
],
"resources": [
{}
],
"trackings": [
{}
]
}
}Deals
Get Deal
GET
/
affiliates
/
offers
/
{offerId}
/
deals
/
{dealId}
Get Deal By ID
curl --request GET \
--url https://api.eflow.team/v1/affiliates/offers/{offerId}/deals/{dealId} \
--header 'X-Eflow-Api-Key: <api-key>'import requests
url = "https://api.eflow.team/v1/affiliates/offers/{offerId}/deals/{dealId}"
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/{dealId}', 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/{dealId}",
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/{dealId}"
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/{dealId}")
.header("X-Eflow-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/affiliates/offers/{offerId}/deals/{dealId}")
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{
"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": {
"locations": [
{}
],
"products": [
{}
],
"resources": [
{}
],
"trackings": [
{}
]
}
}Returns a single deal by its ID for a specific offer. Optionally includes related data such as locations, products, resources, and tracking information via query parameters. Note that the relationship object may be empty if the deal has no data for the requested relationship types.
Authorizations
Path Parameters
Query Parameters
Response
Was this page helpful?
