Materials

List All Materials


GET http://api.servicem8.com/api_1.0/Material.json

Response

Status: 200

[[{"uuid":"...",
"name":"...",
"item_number":"...",
"price":"...",
"cost":"...",
"item_description":"...",
"quantity_in_stock":"...",
"price_includes_taxes":"...",
"tax_rate_uuid":"...",
"active":"..."},
{"uuid":"...",
"name":"...",
"item_number":"...",
"price":"...",
"cost":"...",
"item_description":"...",
"quantity_in_stock":"...",
"price_includes_taxes":"...",
"tax_rate_uuid":"...",
"active":"..."}]]

Show a Material


GET http://api.servicem8.com/api_1.0/Material/{UUID}.json
Returns a single Material.

Response

Status: 200

[{"uuid":"...",
"name":"...",
"item_number":"...",
"price":"...",
"cost":"...",
"item_description":"...",
"quantity_in_stock":"...",
"price_includes_taxes":"...",
"tax_rate_uuid":"...",
"active":"..."}]

Create a Material


POST http://api.servicem8.com/api_1.0/Material.json
Creates a new Material.

Request

{"name":"New Data Here"}

Response

Status: 200

Update a Material


POST http://api.servicem8.com/api_1.0/Material/{UUID}.json
Updates an existing Material with new details from the submitted JSON.

Request

{"name":"Updated Data Here"}

Response

Status: 200

Destroy a Material


DELETE http://api.servicem8.com/api_1.0/Material/{UUID}.json
Deactivate the Material at the referenced URL.

Response

Status: 200