Billing
Gets one invoice, with its attachments and line items.
Same fields as GET /v1/invoices, plus Description, Attachments and
LineItems. An invoice that does not exist, or belongs to another service provider,
is a 404 - the two are never distinguished.
A bundle is one line: its quantity, price, cost, amount and tax are the bundle’s, and
SubItems lists the items inside it. Every other line has SubItems: [].
Each attachment’s Url is a temporary download link and expires - don’t store it.
GET
/
v1
/
invoices
/
{invoiceId}
Gets one invoice, with its attachments and line items.
curl --request GET \
--url https://api.usw.gorelo.io/v1/invoices/{invoiceId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.usw.gorelo.io/v1/invoices/{invoiceId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.usw.gorelo.io/v1/invoices/{invoiceId}', 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.usw.gorelo.io/v1/invoices/{invoiceId}",
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-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.usw.gorelo.io/v1/invoices/{invoiceId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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.usw.gorelo.io/v1/invoices/{invoiceId}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usw.gorelo.io/v1/invoices/{invoiceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"StatusCode": 100,
"IsSuccess": true,
"Data": {
"Id": "3f1a9e2b-6c4d-4e2a-8b1a-0e2f7c9d1a44",
"Number": 1042,
"DisplayNumber": "INV-1042",
"ClientId": 88,
"ContractId": 4021,
"Status": {
"Id": 1,
"Name": "<string>"
},
"InvoiceDate": "2026-09-01",
"DueDate": "2026-10-01",
"SubTotal": 1200,
"TotalDiscount": 60,
"TotalTax": 85.5,
"Total": 1225.5,
"AmountPaid": 500,
"AmountDue": 725.5,
"Reference": "PO-4471",
"ExternalId": "<string>",
"PaymentLink": "<string>",
"InvoiceTemplateId": 123,
"InvoiceEmailTemplateId": 123,
"BrandingThemeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"IsEmailSent": true,
"EmailSentOn": "2023-11-07T05:31:56Z",
"CreatedOn": "2023-11-07T05:31:56Z",
"UpdatedOn": "2023-11-07T05:31:56Z",
"Description": "<string>",
"Attachments": [
{
"Name": "timesheet-august.pdf",
"Url": "<string>"
}
],
"LineItems": [
{
"Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ItemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ItemType": {
"Id": 1,
"Name": "<string>"
},
"Name": "Onboarding Pack",
"Description": "<string>",
"Quantity": 2,
"UnitCost": 90,
"UnitPrice": 150,
"DiscountPercent": 10,
"Tax": {
"Id": 1,
"Name": "<string>"
},
"Amount": 270,
"TaxAmount": 123,
"BillableStatus": {
"Id": 1,
"Name": "<string>"
},
"CoaCode": "<string>",
"SubItems": [
{
"ItemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"Name": "<string>"
}
]
}
],
"Payments": [
{
"Id": "8c2d4f1a-3b5e-4c7d-9a1f-2e6b8d0c4f13",
"Amount": 250,
"PaymentDate": "2026-10-01",
"Reference": "BANK-20261001-118"
}
]
},
"DataContext": null,
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}Authorizations
Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.
Response
OK
Available options:
100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511 Was this page helpful?
⌘I
Gets one invoice, with its attachments and line items.
curl --request GET \
--url https://api.usw.gorelo.io/v1/invoices/{invoiceId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.usw.gorelo.io/v1/invoices/{invoiceId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.usw.gorelo.io/v1/invoices/{invoiceId}', 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.usw.gorelo.io/v1/invoices/{invoiceId}",
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-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.usw.gorelo.io/v1/invoices/{invoiceId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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.usw.gorelo.io/v1/invoices/{invoiceId}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usw.gorelo.io/v1/invoices/{invoiceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"StatusCode": 100,
"IsSuccess": true,
"Data": {
"Id": "3f1a9e2b-6c4d-4e2a-8b1a-0e2f7c9d1a44",
"Number": 1042,
"DisplayNumber": "INV-1042",
"ClientId": 88,
"ContractId": 4021,
"Status": {
"Id": 1,
"Name": "<string>"
},
"InvoiceDate": "2026-09-01",
"DueDate": "2026-10-01",
"SubTotal": 1200,
"TotalDiscount": 60,
"TotalTax": 85.5,
"Total": 1225.5,
"AmountPaid": 500,
"AmountDue": 725.5,
"Reference": "PO-4471",
"ExternalId": "<string>",
"PaymentLink": "<string>",
"InvoiceTemplateId": 123,
"InvoiceEmailTemplateId": 123,
"BrandingThemeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"IsEmailSent": true,
"EmailSentOn": "2023-11-07T05:31:56Z",
"CreatedOn": "2023-11-07T05:31:56Z",
"UpdatedOn": "2023-11-07T05:31:56Z",
"Description": "<string>",
"Attachments": [
{
"Name": "timesheet-august.pdf",
"Url": "<string>"
}
],
"LineItems": [
{
"Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ItemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ItemType": {
"Id": 1,
"Name": "<string>"
},
"Name": "Onboarding Pack",
"Description": "<string>",
"Quantity": 2,
"UnitCost": 90,
"UnitPrice": 150,
"DiscountPercent": 10,
"Tax": {
"Id": 1,
"Name": "<string>"
},
"Amount": 270,
"TaxAmount": 123,
"BillableStatus": {
"Id": 1,
"Name": "<string>"
},
"CoaCode": "<string>",
"SubItems": [
{
"ItemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"Name": "<string>"
}
]
}
],
"Payments": [
{
"Id": "8c2d4f1a-3b5e-4c7d-9a1f-2e6b8d0c4f13",
"Amount": 250,
"PaymentDate": "2026-10-01",
"Reference": "BANK-20261001-118"
}
]
},
"DataContext": null,
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}