Get project material order
curl --request GET \
--url https://api.contractorscloud.com/api/v1/projects/{projectId}/material-orders/{materialOrderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contractorscloud.com/api/v1/projects/{projectId}/material-orders/{materialOrderId}"
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}/material-orders/{materialOrderId}', 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}/material-orders/{materialOrderId}",
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}/material-orders/{materialOrderId}"
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}/material-orders/{materialOrderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/projects/{projectId}/material-orders/{materialOrderId}")
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": 26410,
"tenant_id": 12,
"work_order_id": 15840,
"project_id": 9103,
"trade_id": 12,
"contract_id": 3390,
"status_id": 2,
"supplier_id": 88,
"delivery_time_id": 3,
"delivery_place_id": 1,
"type_id": 4,
"description": "30 squares of architectural shingles, underlayment, and flashing.",
"delivery_comment": "Deliver to the driveway before 9am.",
"cost_comment": null,
"reference_number": "PO-55210",
"instructions": "Stage materials near the garage.",
"cost_status": 2,
"readable_cost_status": "Approved",
"cost_type": 1,
"readable_cost_type": "Supplier",
"estimate_cost_amount": "1800.00",
"actual_cost_amount": "0.00",
"submitted_at": "2025-02-18",
"back_ordered_at": null,
"delivery_at": "2025-03-01",
"created_at": "2025-02-18 10:00:00"
}{
"message": "Unauthenticated."
}{
"message": "The requested resource could not be found."
}Material Orders
Get project material order
Returns a single project material order by id.
GET
/
projects
/
{projectId}
/
material-orders
/
{materialOrderId}
Get project material order
curl --request GET \
--url https://api.contractorscloud.com/api/v1/projects/{projectId}/material-orders/{materialOrderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contractorscloud.com/api/v1/projects/{projectId}/material-orders/{materialOrderId}"
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}/material-orders/{materialOrderId}', 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}/material-orders/{materialOrderId}",
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}/material-orders/{materialOrderId}"
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}/material-orders/{materialOrderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/projects/{projectId}/material-orders/{materialOrderId}")
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": 26410,
"tenant_id": 12,
"work_order_id": 15840,
"project_id": 9103,
"trade_id": 12,
"contract_id": 3390,
"status_id": 2,
"supplier_id": 88,
"delivery_time_id": 3,
"delivery_place_id": 1,
"type_id": 4,
"description": "30 squares of architectural shingles, underlayment, and flashing.",
"delivery_comment": "Deliver to the driveway before 9am.",
"cost_comment": null,
"reference_number": "PO-55210",
"instructions": "Stage materials near the garage.",
"cost_status": 2,
"readable_cost_status": "Approved",
"cost_type": 1,
"readable_cost_type": "Supplier",
"estimate_cost_amount": "1800.00",
"actual_cost_amount": "0.00",
"submitted_at": "2025-02-18",
"back_ordered_at": null,
"delivery_at": "2025-03-01",
"created_at": "2025-02-18 10:00:00"
}{
"message": "Unauthenticated."
}{
"message": "The requested resource could not be found."
}Authorizations
Path Parameters
Query Parameters
Response
The requested project material order.
Materials ordered for a project's work order.
The id of the work order these materials are for. Null if not linked to a work order. See Work Order.
Example:
15840
The id of the contract this material order is associated with. See Contract.
Example:
3390
The id of the supplier this material order was placed with. Null if not set. See List suppliers.
Example:
88