Get contract invoice
curl --request GET \
--url https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/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.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/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 => [
"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.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId}"
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.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId}")
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{
"id": 71204,
"tenant_id": 12,
"project_id": 9103,
"contract_id": 3390,
"tenant_term_id": 4,
"financial_class_id": null,
"rep_id": 1159,
"contact_id": 4821,
"event_tax_item_id": 0,
"number": "INV-2025-1042",
"po_number": null,
"description": "Progress invoice for roofing materials and labor.",
"description_internal": "Net 30 terms confirmed with customer.",
"status": "Open",
"is_sales_order": false,
"is_closed": false,
"is_line_item_totals_hidden": false,
"is_attention_line_hidden": false,
"is_deleted": false,
"financials_pending_amount": "0.00",
"financials_approved_amount": "9250.00",
"financials_billable_amount": "9250.00",
"financials_sold_amount": "9250.00",
"financials_total_amount": "9250.00",
"financials_down_payment_amount": "5000.00",
"financials_progress_paid_amount": "4250.00",
"financials_final_paid_amount": "0.00",
"financials_deductible_paid_amount": "0.00",
"financials_all_paid_amount": "9250.00",
"financials_total_paid_amount": "9250.00",
"financials_credit_memo_amount": "0.00",
"financials_credit_memo_tax_amount": "0.00",
"financials_refund_amount": "0.00",
"financials_revenue_amount": "9250.00",
"financials_revenue_approved_amount": "9250.00",
"financials_received_amount": "9250.00",
"financials_balance_amount": "0.00",
"financials_tax_amount": "0.00",
"financials_to_pay_amount": "9250.00",
"date": "2025-02-15",
"due_at": "2025-03-17",
"updated_at": "2025-02-16 11:20:00"
}{
"message": "Unauthenticated."
}{
"message": "You are not authorized to view invoices."
}{
"message": "The requested resource could not be found."
}Contract Invoices
Get contract invoice
Returns a single contract invoice by id. The 20 financial fields (financials_pending_amount through financials_to_pay_amount) are omitted from the response entirely for users without financial visibility in your organization, though in practice such users receive a 403 instead.
GET
/
projects
/
{projectId}
/
contracts
/
{contractId}
/
invoices
/
{invoiceId}
Get contract invoice
curl --request GET \
--url https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/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.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/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 => [
"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.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId}"
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.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}/invoices/{invoiceId}")
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{
"id": 71204,
"tenant_id": 12,
"project_id": 9103,
"contract_id": 3390,
"tenant_term_id": 4,
"financial_class_id": null,
"rep_id": 1159,
"contact_id": 4821,
"event_tax_item_id": 0,
"number": "INV-2025-1042",
"po_number": null,
"description": "Progress invoice for roofing materials and labor.",
"description_internal": "Net 30 terms confirmed with customer.",
"status": "Open",
"is_sales_order": false,
"is_closed": false,
"is_line_item_totals_hidden": false,
"is_attention_line_hidden": false,
"is_deleted": false,
"financials_pending_amount": "0.00",
"financials_approved_amount": "9250.00",
"financials_billable_amount": "9250.00",
"financials_sold_amount": "9250.00",
"financials_total_amount": "9250.00",
"financials_down_payment_amount": "5000.00",
"financials_progress_paid_amount": "4250.00",
"financials_final_paid_amount": "0.00",
"financials_deductible_paid_amount": "0.00",
"financials_all_paid_amount": "9250.00",
"financials_total_paid_amount": "9250.00",
"financials_credit_memo_amount": "0.00",
"financials_credit_memo_tax_amount": "0.00",
"financials_refund_amount": "0.00",
"financials_revenue_amount": "9250.00",
"financials_revenue_approved_amount": "9250.00",
"financials_received_amount": "9250.00",
"financials_balance_amount": "0.00",
"financials_tax_amount": "0.00",
"financials_to_pay_amount": "9250.00",
"date": "2025-02-15",
"due_at": "2025-03-17",
"updated_at": "2025-02-16 11:20:00"
}{
"message": "Unauthenticated."
}{
"message": "You are not authorized to view invoices."
}{
"message": "The requested resource could not be found."
}Authorizations
Path Parameters
Query Parameters
Response
The requested contract invoice.
An invoice billed against a project contract. The 20 financial fields from financials_pending_amount through financials_to_pay_amount below are omitted from the response entirely for users without financial visibility in your organization — though in practice such users receive a 403 on every Contract Invoices endpoint before seeing any fields at all.