Clients

List All Clients


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

Response

Status: 200

[[{"uuid":"...",
"name":"...",
"website":"...",
"abn_number":"...",
"active":"...",
"is_individual":"...",
"address_street":"...",
"address_city":"...",
"address_state":"...",
"address_postcode":"...",
"address_country":"...",
"fax_number":"...",
"address":"...",
"billing_address":"...",
"badges":"...",
"tax_rate_uuid":"..."},
{"uuid":"...",
"name":"...",
"website":"...",
"abn_number":"...",
"active":"...",
"is_individual":"...",
"address_street":"...",
"address_city":"...",
"address_state":"...",
"address_postcode":"...",
"address_country":"...",
"fax_number":"...",
"address":"...",
"billing_address":"...",
"badges":"...",
"tax_rate_uuid":"..."}]]

Show a Client


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

Response

Status: 200

[{"uuid":"...",
"name":"...",
"website":"...",
"abn_number":"...",
"active":"...",
"is_individual":"...",
"address_street":"...",
"address_city":"...",
"address_state":"...",
"address_postcode":"...",
"address_country":"...",
"fax_number":"...",
"address":"...",
"billing_address":"...",
"badges":"...",
"tax_rate_uuid":"..."}]

Create a Client


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

Request

{"name":"New Data Here"}

Response

Status: 200

Update a Client


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

Request

{"name":"Updated Data Here"}

Response

Status: 200

Destroy a Client


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

Response

Status: 200