curl --request GET \
--url https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}"
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}', 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}",
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}"
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}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}")
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": 3390,
"tenant_id": 12,
"company_id": 6,
"project_id": 9103,
"claim_id": 3305,
"rep_id": 1159,
"financial_class_id": null,
"contract_type_id": 2,
"name": "Roof Replacement Agreement",
"overhead_rule": 0,
"is_approved": true,
"is_payouts_locked": false,
"expenses_pending_amount": "0.00",
"expenses_approved_amount": "0.00",
"expenses_paid_amount": "0.00",
"expenses_denied_amount": "0.00",
"expenses_total_amount": "0.00",
"overhead_amount": "0.00",
"payouts_amount": "0.00",
"certificate_of_completion_comment": null,
"certificate_of_completion_insurance_comment": null,
"certificate_of_completion_insurance_closing_comment": null,
"certificate_of_completion_insurance_completed_at": null,
"financials_pending_amount": "0.00",
"financials_approved_amount": "9250.00",
"financials_billable_amount": "9250.00",
"financials_sold_amount": "18500.00",
"financials_total_amount": "18500.00",
"financials_down_payment_amount": "5000.00",
"financials_progress_payment_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_refund_amount": "0.00",
"financials_revenue_amount": "9250.00",
"financials_revenue_approved_amount": "9250.00",
"financials_received_amount": "9250.00",
"financials_balance_amount": "9250.00",
"transactions_total": 4,
"approved_at": "2025-02-12 16:00:00",
"payouts_locked_at": null,
"warranty_starts_at": null,
"created_at": "2025-02-11 09:30:00"
}{
"message": "Unauthenticated."
}{
"message": "The requested resource could not be found."
}Get project contract
Returns a single project contract by id. Financial fields are omitted from the response entirely for users without the matching financial visibility in your organization: the 17 invoice and payment fields, the 5 expense fields, and the 4 payout fields are each controlled separately — see Contract.
curl --request GET \
--url https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}"
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}', 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}",
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}"
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}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/projects/{projectId}/contracts/{contractId}")
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": 3390,
"tenant_id": 12,
"company_id": 6,
"project_id": 9103,
"claim_id": 3305,
"rep_id": 1159,
"financial_class_id": null,
"contract_type_id": 2,
"name": "Roof Replacement Agreement",
"overhead_rule": 0,
"is_approved": true,
"is_payouts_locked": false,
"expenses_pending_amount": "0.00",
"expenses_approved_amount": "0.00",
"expenses_paid_amount": "0.00",
"expenses_denied_amount": "0.00",
"expenses_total_amount": "0.00",
"overhead_amount": "0.00",
"payouts_amount": "0.00",
"certificate_of_completion_comment": null,
"certificate_of_completion_insurance_comment": null,
"certificate_of_completion_insurance_closing_comment": null,
"certificate_of_completion_insurance_completed_at": null,
"financials_pending_amount": "0.00",
"financials_approved_amount": "9250.00",
"financials_billable_amount": "9250.00",
"financials_sold_amount": "18500.00",
"financials_total_amount": "18500.00",
"financials_down_payment_amount": "5000.00",
"financials_progress_payment_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_refund_amount": "0.00",
"financials_revenue_amount": "9250.00",
"financials_revenue_approved_amount": "9250.00",
"financials_received_amount": "9250.00",
"financials_balance_amount": "9250.00",
"transactions_total": 4,
"approved_at": "2025-02-12 16:00:00",
"payouts_locked_at": null,
"warranty_starts_at": null,
"created_at": "2025-02-11 09:30:00"
}{
"message": "Unauthenticated."
}{
"message": "The requested resource could not be found."
}Authorizations
Path Parameters
Query Parameters
Response
The requested project contract.
A contract recorded on a project. Its financial fields fall into three groups that are each omitted from the response entirely for users who lack the matching visibility in your organization. The 17 invoice and payment fields from financials_pending_amount through financials_balance_amount are hidden from users without financial visibility or without access to invoices and payments. The 5 expense fields (expenses_pending_amount through expenses_total_amount) are hidden from users without financial visibility. The 4 payout fields (payouts_amount, overhead_amount, is_payouts_locked, and payouts_locked_at) are hidden from users without financial visibility or without access to payouts.