Billing/Invoice
Get an invoice
Returns one invoice with its lines and the billed party’s details. You can see invoices for your organisation, invoices it’s liable for and your own user invoices; platform admins in the admin organisation see all, plus the provider fee.
GET
/
v1
/
billing
/
invoice
/
{id}
Get an invoice
curl --request GET \
--url https://api.tagdeliver.com/v1/billing/invoice/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/billing/invoice/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tagdeliver.com/v1/billing/invoice/{id}', 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.tagdeliver.com/v1/billing/invoice/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.tagdeliver.com/v1/billing/invoice/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.tagdeliver.com/v1/billing/invoice/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/billing/invoice/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"result": {
"id": 3667,
"organisation_id": 3,
"liable_org": null,
"user_id": null,
"type": "DEBIT",
"status": "GENERATED",
"date_generated": "2026-11-01 06:30:01",
"date_due": "2026-11-30 00:00:00",
"date_start": "2026-10-01",
"date_end": "2026-10-31",
"base_amount": 1250.4,
"base_sub_amount": 1042,
"base_currency": "GBP",
"target_amount": null,
"target_currency": "GBP",
"target_rate": null,
"tax": 0.2,
"tax_id": null,
"notes": null,
"name": "Example Media",
"org_name": "DEMO",
"country": "GB",
"gcm": 0,
"items": [
{
"id": 19872,
"title": "UID 18620 - example.com",
"description": "104,200,000 impressions",
"quantity": 1,
"amount": 1042,
"chargeable": true
}
]
},
"success": true
}{
"success": false,
"message": "Token not found."
}{
"success": false,
"message": "User forbidden"
}{
"success": false,
"message": "Resource not found"
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}Was this page helpful?
⌘I
Get an invoice
curl --request GET \
--url https://api.tagdeliver.com/v1/billing/invoice/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/billing/invoice/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tagdeliver.com/v1/billing/invoice/{id}', 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.tagdeliver.com/v1/billing/invoice/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.tagdeliver.com/v1/billing/invoice/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.tagdeliver.com/v1/billing/invoice/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/billing/invoice/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"result": {
"id": 3667,
"organisation_id": 3,
"liable_org": null,
"user_id": null,
"type": "DEBIT",
"status": "GENERATED",
"date_generated": "2026-11-01 06:30:01",
"date_due": "2026-11-30 00:00:00",
"date_start": "2026-10-01",
"date_end": "2026-10-31",
"base_amount": 1250.4,
"base_sub_amount": 1042,
"base_currency": "GBP",
"target_amount": null,
"target_currency": "GBP",
"target_rate": null,
"tax": 0.2,
"tax_id": null,
"notes": null,
"name": "Example Media",
"org_name": "DEMO",
"country": "GB",
"gcm": 0,
"items": [
{
"id": 19872,
"title": "UID 18620 - example.com",
"description": "104,200,000 impressions",
"quantity": 1,
"amount": 1042,
"chargeable": true
}
]
},
"success": true
}{
"success": false,
"message": "Token not found."
}{
"success": false,
"message": "User forbidden"
}{
"success": false,
"message": "Resource not found"
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}