curl --request POST \
--url https://api.eflow.team/v1/networks/billings/affiliates/invoices \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"network_affiliate_id": 7,
"start_time": "2026-01-01",
"end_time": "2026-01-31",
"is_hidden_affiliate": false,
"payment_terms": 30,
"public_notes": "public note visible to affiliate",
"internal_notes": "internal note not visible to affiliate",
"details": [],
"extra_periods": []
}
'import requests
url = "https://api.eflow.team/v1/networks/billings/affiliates/invoices"
payload = {
"network_affiliate_id": 7,
"start_time": "2026-01-01",
"end_time": "2026-01-31",
"is_hidden_affiliate": False,
"payment_terms": 30,
"public_notes": "public note visible to affiliate",
"internal_notes": "internal note not visible to affiliate",
"details": [],
"extra_periods": []
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
network_affiliate_id: 7,
start_time: '2026-01-01',
end_time: '2026-01-31',
is_hidden_affiliate: false,
payment_terms: 30,
public_notes: 'public note visible to affiliate',
internal_notes: 'internal note not visible to affiliate',
details: [],
extra_periods: []
})
};
fetch('https://api.eflow.team/v1/networks/billings/affiliates/invoices', 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/networks/billings/affiliates/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'network_affiliate_id' => 7,
'start_time' => '2026-01-01',
'end_time' => '2026-01-31',
'is_hidden_affiliate' => false,
'payment_terms' => 30,
'public_notes' => 'public note visible to affiliate',
'internal_notes' => 'internal note not visible to affiliate',
'details' => [
],
'extra_periods' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eflow.team/v1/networks/billings/affiliates/invoices"
payload := strings.NewReader("{\n \"network_affiliate_id\": 7,\n \"start_time\": \"2026-01-01\",\n \"end_time\": \"2026-01-31\",\n \"is_hidden_affiliate\": false,\n \"payment_terms\": 30,\n \"public_notes\": \"public note visible to affiliate\",\n \"internal_notes\": \"internal note not visible to affiliate\",\n \"details\": [],\n \"extra_periods\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eflow.team/v1/networks/billings/affiliates/invoices")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"network_affiliate_id\": 7,\n \"start_time\": \"2026-01-01\",\n \"end_time\": \"2026-01-31\",\n \"is_hidden_affiliate\": false,\n \"payment_terms\": 30,\n \"public_notes\": \"public note visible to affiliate\",\n \"internal_notes\": \"internal note not visible to affiliate\",\n \"details\": [],\n \"extra_periods\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/billings/affiliates/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"network_affiliate_id\": 7,\n \"start_time\": \"2026-01-01\",\n \"end_time\": \"2026-01-31\",\n \"is_hidden_affiliate\": false,\n \"payment_terms\": 30,\n \"public_notes\": \"public note visible to affiliate\",\n \"internal_notes\": \"internal note not visible to affiliate\",\n \"details\": [],\n \"extra_periods\": []\n}"
response = http.request(request)
puts response.read_body{
"network_affiliate_invoice_id": 123,
"network_id": 123,
"network_affiliate_id": 123,
"start_time": "<string>",
"end_time": "<string>",
"timezone_id": 123,
"balance": 123,
"currency_id": "<string>",
"payment_terms": 123,
"is_hidden_affiliate": true,
"public_notes": "<string>",
"internal_notes": "<string>",
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"affiliate": {},
"details": [
{
"network_affiliate_invoice_detail_id": 123,
"network_affiliate_invoice_id": 123,
"network_offer_id": 123,
"network_offer_name": "<string>",
"amount": 123,
"invoice_currency_amount": 123,
"currency_id": "<string>",
"notes": "<string>",
"quantity": 123,
"time_created": 1734455015,
"time_saved": 1734455015,
"referral_history_id": 123,
"type": "<string>"
}
],
"payments": [
{
"network_affiliate_payment_id": 123,
"network_id": 123,
"network_affiliate_invoice_id": 123,
"status": "<string>",
"payment_type": "<string>",
"notes": "<string>",
"confirmation_code": "<string>",
"amount": 123,
"currency": "<string>",
"unix_timestamp": 1734455015,
"tax_id": "<string>",
"is_auto_generated": true,
"debug_info": "<string>",
"relationship": {
"employee": {}
},
"payee_original_amount": 123,
"payee_fee_amount": 123,
"payee_currency": "<string>",
"time_approved": 1734455015,
"time_completed": 1734455015
}
]
},
"details": [
{
"network_affiliate_invoice_detail_id": 123,
"network_affiliate_invoice_id": 123,
"network_offer_id": 123,
"network_offer_name": "<string>",
"amount": 123,
"invoice_currency_amount": 123,
"currency_id": "<string>",
"notes": "<string>",
"quantity": 123,
"time_created": 1734455015,
"time_saved": 1734455015,
"referral_history_id": 123,
"type": "<string>"
}
],
"extra_periods": [
{}
]
}Create Partner Invoice
curl --request POST \
--url https://api.eflow.team/v1/networks/billings/affiliates/invoices \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"network_affiliate_id": 7,
"start_time": "2026-01-01",
"end_time": "2026-01-31",
"is_hidden_affiliate": false,
"payment_terms": 30,
"public_notes": "public note visible to affiliate",
"internal_notes": "internal note not visible to affiliate",
"details": [],
"extra_periods": []
}
'import requests
url = "https://api.eflow.team/v1/networks/billings/affiliates/invoices"
payload = {
"network_affiliate_id": 7,
"start_time": "2026-01-01",
"end_time": "2026-01-31",
"is_hidden_affiliate": False,
"payment_terms": 30,
"public_notes": "public note visible to affiliate",
"internal_notes": "internal note not visible to affiliate",
"details": [],
"extra_periods": []
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
network_affiliate_id: 7,
start_time: '2026-01-01',
end_time: '2026-01-31',
is_hidden_affiliate: false,
payment_terms: 30,
public_notes: 'public note visible to affiliate',
internal_notes: 'internal note not visible to affiliate',
details: [],
extra_periods: []
})
};
fetch('https://api.eflow.team/v1/networks/billings/affiliates/invoices', 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/networks/billings/affiliates/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'network_affiliate_id' => 7,
'start_time' => '2026-01-01',
'end_time' => '2026-01-31',
'is_hidden_affiliate' => false,
'payment_terms' => 30,
'public_notes' => 'public note visible to affiliate',
'internal_notes' => 'internal note not visible to affiliate',
'details' => [
],
'extra_periods' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eflow.team/v1/networks/billings/affiliates/invoices"
payload := strings.NewReader("{\n \"network_affiliate_id\": 7,\n \"start_time\": \"2026-01-01\",\n \"end_time\": \"2026-01-31\",\n \"is_hidden_affiliate\": false,\n \"payment_terms\": 30,\n \"public_notes\": \"public note visible to affiliate\",\n \"internal_notes\": \"internal note not visible to affiliate\",\n \"details\": [],\n \"extra_periods\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eflow.team/v1/networks/billings/affiliates/invoices")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"network_affiliate_id\": 7,\n \"start_time\": \"2026-01-01\",\n \"end_time\": \"2026-01-31\",\n \"is_hidden_affiliate\": false,\n \"payment_terms\": 30,\n \"public_notes\": \"public note visible to affiliate\",\n \"internal_notes\": \"internal note not visible to affiliate\",\n \"details\": [],\n \"extra_periods\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/billings/affiliates/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"network_affiliate_id\": 7,\n \"start_time\": \"2026-01-01\",\n \"end_time\": \"2026-01-31\",\n \"is_hidden_affiliate\": false,\n \"payment_terms\": 30,\n \"public_notes\": \"public note visible to affiliate\",\n \"internal_notes\": \"internal note not visible to affiliate\",\n \"details\": [],\n \"extra_periods\": []\n}"
response = http.request(request)
puts response.read_body{
"network_affiliate_invoice_id": 123,
"network_id": 123,
"network_affiliate_id": 123,
"start_time": "<string>",
"end_time": "<string>",
"timezone_id": 123,
"balance": 123,
"currency_id": "<string>",
"payment_terms": 123,
"is_hidden_affiliate": true,
"public_notes": "<string>",
"internal_notes": "<string>",
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"affiliate": {},
"details": [
{
"network_affiliate_invoice_detail_id": 123,
"network_affiliate_invoice_id": 123,
"network_offer_id": 123,
"network_offer_name": "<string>",
"amount": 123,
"invoice_currency_amount": 123,
"currency_id": "<string>",
"notes": "<string>",
"quantity": 123,
"time_created": 1734455015,
"time_saved": 1734455015,
"referral_history_id": 123,
"type": "<string>"
}
],
"payments": [
{
"network_affiliate_payment_id": 123,
"network_id": 123,
"network_affiliate_invoice_id": 123,
"status": "<string>",
"payment_type": "<string>",
"notes": "<string>",
"confirmation_code": "<string>",
"amount": 123,
"currency": "<string>",
"unix_timestamp": 1734455015,
"tax_id": "<string>",
"is_auto_generated": true,
"debug_info": "<string>",
"relationship": {
"employee": {}
},
"payee_original_amount": 123,
"payee_fee_amount": 123,
"payee_currency": "<string>",
"time_approved": 1734455015,
"time_completed": 1734455015
}
]
},
"details": [
{
"network_affiliate_invoice_detail_id": 123,
"network_affiliate_invoice_id": 123,
"network_offer_id": 123,
"network_offer_name": "<string>",
"amount": 123,
"invoice_currency_amount": 123,
"currency_id": "<string>",
"notes": "<string>",
"quantity": 123,
"time_created": 1734455015,
"time_saved": 1734455015,
"referral_history_id": 123,
"type": "<string>"
}
],
"extra_periods": [
{}
]
}Authorizations
The Everflow API key generated from the Control Center > Security.
Body
The ID of the partner that will be invoiced.
Invoice start date in the YYYY-MM-DD format.
Invoice end date in the YYYY-MM-DD format.
Notes that will be visible to both network employees and the invoiced partner.
Notes that will be visible to network employees but not the invoiced partner.
Determines whether the invoice is visible to the partner or not.
Number of days for the affiliate payment term (e.g. pass 20 for NET 20).
Invoice line items to include.
Additional billing periods to include.
Response
Unique invoice ID.
Network ID.
The ID of the partner that was invoiced.
Invoice status.
paid, unpaid, deleted Invoice period start date.
Invoice period end date.
Timezone ID for the invoice period.
Outstanding balance.
Currency code (e.g. USD).
Number of days for the affiliate payment term (e.g. 20 for NET 20).
Whether the invoice is visible to the partner or not.
Notes visible to both network employees and the invoiced partner.
Notes visible to network employees but not the invoiced partner.
Unix timestamp of creation.
1734455015
Unix timestamp of last update.
1734455015
Related data. The details and payments keys are always included. The affiliate key is included when relationship=affiliate or relationship=all is passed.
Show child attributes
Show child attributes
Invoice line items (root-level, nullable).
Show child attributes
Show child attributes
Additional billing periods associated with this invoice.
Was this page helpful?
