Introduction
Welcome to the API reference.
Production
SandBox
Release Notes
v8.45.0
- Added
costTaxTotal
to work-orders GET endpointslastClientContactNote
to jobs GET endpointsadditionalFields
v8.44.0
- Added
linkedAttachmentIds
to work-orders GET endpointsreserveItemStatusLabel
to reserve-items GET endpoints
v8.43.1
# filterTag PATCH endpoint request body example
{
"data": {
"id": [
"33144d9c-7983-11ef-a7bd-00fff7b445c2",
"331462a4-7983-11ef-a7bd-00fff7b445c2"
]
}
}
- Added
- filterTag PATCH endpoints to
- allocations
- contacts
- divisions
- estimates
- estimate-categories
- estimates-snapshot
- jobs
- work-orders
- whs-items
- filterTag PATCH endpoints to
v8.43.0
- Added
- API rate limit - 5000 calls in a rolling 24-hour window
- API rate limit - 5 concurrent calls
- filterType and filterTag GET endpoints
- WHS Item endpoints.
- WHS Item Type endpoints.
- WHS Item Status endpoints.
- Schedule endpoints.
- Schedule Item endpoints
- Schedule Item Link endpoints
v8.42.0
- Added
- Job link endpoints
- Site Form GET endpoints
contactRelationships
andcustomFields
to POST Job endpoint
v8.38.0
- Added
- field
authorisedTotalExcludingTaxExcludingMarginExcludingMarkup
to Job GET endpoints. - Feedback item, Feedback item type, Feedback item status and Feedback item submission type endpoints
- field
v8.37.0
- Added
- fields
incidentDate
,allocatedDate
,brokerReference
,strataReference
andadjusterReference
to Job endpoints. - ReserveCategory endpoints.
- ReserveItem endpoints.
- fields
v8.35.0
- Added
filterTags
to Allocation, WorkOrder and Estimate GET endpoints.
v8.33.0
- Added
objectId
andobjectType
to StatusHistory GET endpoints.- StatusHistory supported
objectType
list in the API document.
v8.32.0
- Added
objectId
andobjectType
to Allocation GET endpoints.
v8.31.0
- Added
linkedToContactId
to Contact endpoints.primeUrl
to Job GET endpoints.- Job
contactRelationship
endpoints.
v8.28.0
- Added
allocationIds
to AccountsReceivableInvoice GET endpoints.approvalAt
to AccountsPayableInvoice and JobExpenseInvoice endpoints.
- Fixed
- use UTC time for
createdAt
andupdatedAt
- use UTC time for
v8.25.0
- Added
workOrderAssignedId
to AccountsPayableInvoice GET endpoints. This id links to User object.approvalStatus
,approvalNote
andapprovedBy
to AccountsPayableInvoice and JobExpenseInvoice endpoints. Example for searching byapprovalStatus
:q='approvalStatus.label'.eq('Disputed')
v8.22.0
- Added
additionalMargin
to Estimate GET endpointsattachmentId
to WorkOrder GET endpoints
v8.21.0
- Added
jobExpenseInvoiceId
andJobExpenseInvoiceId
to timesheet GET endpoints- Room area fields(
length
,width
,height
andareaUnit
) to estimateCategory endpoints - Contact Licence(Compliance Record) endpoints
v8.20.0
- Added
- StatusHistory endpoint
- Add linked contacts to Job GET endpoints. It can be loaded by query string
include=contactRelationships
- Add approval fields to Timesheet endpoints
v8.19.0
- Added
- Add
createdAt
,createdBy
,updatedAt
andupdatedBy
to Contact GET endpoints
- Add
v8.15.0
- Added
- Timesheet POST and PUT endpoints
- Unit GET endpoints
- Trade GET endpoints
- Estimate endpoints
- Add timezone field to timesheet GET endpoints
- Changed
- Change timesheet GET endpoints
timesheetRole
field totimesheetRoleId
- Change timesheet GET endpoints
timesheetActivity
field totimesheetActivityId
- Change timesheet GET endpoints
Authentication
Prime Ecosystem API uses OAuth 2.0 to authenticate application requests. We use the Password grant type to issue the tokens.
Please contact Prime administrator for the API integration. Once you are signed up, we will link your App to a user and email you the client key and secret.
Getting an Access Token
POST {api_uri}/oauth/token
Response example
{
"token_type": "Bearer",
"expires_in": 1295999,
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjYyMTg5MzU4ODM3YmFiYWVlZWFjYzk1Njk3ZTUwZmFlMzRhYjk5ZGFmOWNiNDY5YmU2Y2RhMjdmNGZjNjRjNmE0NWJiZmI4YWJiYTlkMmYxIn0.eyJhdWQiOiIwMmIwOWE1OC00ZGFlLTRhYjgtODBjYi0zOTcyNjU5ZmUyNjEiLCJqdGkiOiI2MjE4OTM1ODgzN2JhYmFlZWVhY2M5NTY5N2U1MGZhZTM0YWI5OWRhZjljYjQ2OWJlNmNkYTI3ZjRmYzY0YzZhNDViYmZiOGFiYmE5ZDJmMSIsImlhdCI6MTU0ODQyMTgzMCwibmJmIjoxNTQ4NDIxODMwLCJleHAiOjE1NDk3MTc4MjksInN1YiI6IjIiLCJzY29wZXMiOltdfQ.Emq7-gYFg4UCQI1OtaLSDGhUxnfL7SGXTe1za4mOI4DLe8R-UMivn7lIFHJaLa2m2KIvoEnxBGwpTvXu7cWFT2IhdwwBjhp4ntDCcwCR3VxKqKsK2JwHIKuujMPkW7laHzpScP0C-KwHrQPZZalWF3wRQ50WB5CJI1YFyWiQxtM1fwMl3ql9BE1bLGGkBD6SZu3QsRA3pkQBe108Ux97d1Yzyzxp-jcFrRFEeUapaIKQOuyHpLGgCzPrt7W0MFUrqE8hIde9E6PA1ardDL5qYNg0CgTJkozizfO5LHPzGR4pdI_ObKVSRNxFWZwIDolfA_TDP0dRoSGKMTsibkJ2SyhRXQTFraItP-5zmBqrmGQPSVvGSNqJ-DU2frQ61ZsmTvTB9n4Ep81Ll1nuAdQkk8ErygeBlqjqzgEJtBNXsZu6gkKt63hS5NXANI3Q5YdShWbF9PZ4chGQ2vRHimeHe_-IhZiV8HNwTdVljsbGZOx3al3g5jHRoUimZVRh2v34mTIl5UBwxS4D1KP4qsnzOlOfjkR_pxIMjzMHeFJylkXwaXVelpnY60lTTvGJdYFkukkJR7EdGQJaVzNd2V1zOYMQ_ZHJBhGQcNzFxMh-ttTDkCyqTTxHP_BiF3hfwvZbCajpO442XBFOv-58ps-OxQccvdn1mbYfth0VT9aOblE",
"refresh_token": "def502004b6007189733b7576cbb66938181a76cb6e9ae9459714ee9c29630a16d996e9965ddf143d956729d8bee61ecead9de278c4db64da0d788740c788b8034eab0345181f1fadfc01f75318ade38ec9949916852e4fee09b3b20c3cae00c6c2d252fbbe557d3769ebf33b951a79b75adce85fe75f4d135ebcfb32778f5c99725ebd3a78272cf56a4e32927b4f33c8d2d4c893079192ec9cd1daa04e2628bc62266f3f6d3d012c2298fde87f5225c00740c0f0bd02025c1752b9b107f93e28cb85d4a910386d0b23f47ffc977e206a8b8c757131ba68eb63176ac29e070c3218771cb2d40f27072e9fed4714355c696e6d553eabd94509555ddd05d196df1e357410813e16b20395348bca0f5d0e2a1add4fa1c8455f1611d0906c11e38ceba1a5feec20b0bbb53dc0d784b08a016398548a0812fef484470244d6ba859afa4e5fbc5f7146e7f28adceb19a65d7ada273a8bc7943159a10dd09ce4fd6851cacffce29adba1e4f74c72fd9fc4ff50d3d1877c8f498614cfee1a15a6a06e998b442bb15"
}
Header
Key | Value |
---|---|
Content-Type | application/x-www-form-urlencoded |
Accept | application/vnd.api.v2+json |
Body
Key | Value |
---|---|
grant_type | password |
username | {username} |
password | {password} |
client_id | {client_id} |
client_secret | {client_secret} |
Refreshing an Access Token
POST {api_uri}/oauth/token
Response Example
{
"token_type": "Bearer",
"expires_in": 1295999,
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjYyMTg5MzU4ODM3YmFiYWVlZWFjYzk1Njk3ZTUwZmFlMzRhYjk5ZGFmOWNiNDY5YmU2Y2RhMjdmNGZjNjRjNmE0NWJiZmI4YWJiYTlkMmYxIn0.eyJhdWQiOiIwMmIwOWE1OC00ZGFlLTRhYjgtODBjYi0zOTcyNjU5ZmUyNjEiLCJqdGkiOiI2MjE4OTM1ODgzN2JhYmFlZWVhY2M5NTY5N2U1MGZhZTM0YWI5OWRhZjljYjQ2OWJlNmNkYTI3ZjRmYzY0YzZhNDViYmZiOGFiYmE5ZDJmMSIsImlhdCI6MTU0ODQyMTgzMCwibmJmIjoxNTQ4NDIxODMwLCJleHAiOjE1NDk3MTc4MjksInN1YiI6IjIiLCJzY29wZXMiOltdfQ.Emq7-gYFg4UCQI1OtaLSDGhUxnfL7SGXTe1za4mOI4DLe8R-UMivn7lIFHJaLa2m2KIvoEnxBGwpTvXu7cWFT2IhdwwBjhp4ntDCcwCR3VxKqKsK2JwHIKuujMPkW7laHzpScP0C-KwHrQPZZalWF3wRQ50WB5CJI1YFyWiQxtM1fwMl3ql9BE1bLGGkBD6SZu3QsRA3pkQBe108Ux97d1Yzyzxp-jcFrRFEeUapaIKQOuyHpLGgCzPrt7W0MFUrqE8hIde9E6PA1ardDL5qYNg0CgTJkozizfO5LHPzGR4pdI_ObKVSRNxFWZwIDolfA_TDP0dRoSGKMTsibkJ2SyhRXQTFraItP-5zmBqrmGQPSVvGSNqJ-DU2frQ61ZsmTvTB9n4Ep81Ll1nuAdQkk8ErygeBlqjqzgEJtBNXsZu6gkKt63hS5NXANI3Q5YdShWbF9PZ4chGQ2vRHimeHe_-IhZiV8HNwTdVljsbGZOx3al3g5jHRoUimZVRh2v34mTIl5UBwxS4D1KP4qsnzOlOfjkR_pxIMjzMHeFJylkXwaXVelpnY60lTTvGJdYFkukkJR7EdGQJaVzNd2V1zOYMQ_ZHJBhGQcNzFxMh-ttTDkCyqTTxHP_BiF3hfwvZbCajpO442XBFOv-58ps-OxQccvdn1mbYfth0VT9aOblE",
"refresh_token": "def502004b6007189733b7576cbb66938181a76cb6e9ae9459714ee9c29630a16d996e9965ddf143d956729d8bee61ecead9de278c4db64da0d788740c788b8034eab0345181f1fadfc01f75318ade38ec9949916852e4fee09b3b20c3cae00c6c2d252fbbe557d3769ebf33b951a79b75adce85fe75f4d135ebcfb32778f5c99725ebd3a78272cf56a4e32927b4f33c8d2d4c893079192ec9cd1daa04e2628bc62266f3f6d3d012c2298fde87f5225c00740c0f0bd02025c1752b9b107f93e28cb85d4a910386d0b23f47ffc977e206a8b8c757131ba68eb63176ac29e070c3218771cb2d40f27072e9fed4714355c696e6d553eabd94509555ddd05d196df1e357410813e16b20395348bca0f5d0e2a1add4fa1c8455f1611d0906c11e38ceba1a5feec20b0bbb53dc0d784b08a016398548a0812fef484470244d6ba859afa4e5fbc5f7146e7f28adceb19a65d7ada273a8bc7943159a10dd09ce4fd6851cacffce29adba1e4f74c72fd9fc4ff50d3d1877c8f498614cfee1a15a6a06e998b442bb15"
}
Header
Key | Value |
---|---|
Content-Type | application/x-www-form-urlencoded |
Accept | application/vnd.api.v2+json |
Body
Key | Value |
---|---|
grant_type | refresh_token |
client_id | {client_id} |
client_secret | {client_secret} |
refresh_token | {refresh_token} |
API Overview
Timezone: By default all Datetime values are in UTC, unless there's timezone
field which has a different value.
API Limits
API Rate Limit
- 60 calls in a rolling 60-second window
- 5000 calls in a rolling 24-hour window
- 5 concurrent calls
API Rate Limit headers
- x-ratelimit-limit: Indicates the maximum number of requests allowed within the current rate limit window.
- x-ratelimit-remaining: Shows how many requests you have left within the current rate limit.
- x-ratelimit-reset: Specifies the time when the rate limit resets, given in UTC epoch time (seconds).
- retry-after: Indicates the number of seconds until the rate limit resets.
Request Size Limit
A single POST to API has a size limit of 25MB
API Headers
Key | Value |
---|---|
Authorization | Bearer {access_token} |
Accept | application/vnd.api.v2+json |
Content-Type | application/json |
API Retrieving Data
Get Resource List
{apipath}/perils?per_page=5&page=1
Response example
{
"data": [
{
"type": "peril",
"id": "ec156c70-fa52-32b0-efd9-bfeea10e0623",
"attributes": {
"label": "No peril",
"version": 0
}
},
{
"type": "peril",
"id": "192ebfa5-8ae3-7607-b4c0-faea51b2c931",
"attributes": {
"label": "Storm",
"version": 0
}
},
{
"type": "peril",
"id": "6ca97990-64d8-e18e-e95f-f651a7a79c29",
"attributes": {
"label": "Water damage",
"version": 0
}
},
{
"type": "peril",
"id": "ea334c27-7b63-6f44-f5b3-aa1a8543ee6a",
"attributes": {
"label": "Fire",
"version": 0
}
},
{
"type": "peril",
"id": "bffbd8eb-5f02-eec9-78ed-d1477ce11d9a",
"attributes": {
"label": "Lightning",
"version": 0
}
}
],
"meta": {
"pagination": {
"total": 17,
"count": 5,
"per_page": 5,
"current_page": 1,
"total_pages": 4
}
},
"links": {
"self": "http://devcon.app/api/perils?page=1",
"first": "http://devcon.app/api/perils?page=1",
"next": "http://devcon.app/api/perils?page=2",
"last": "http://devcon.app/api/perils?page=4"
}
}
Get Individual Resource
{apipath}/perils/ec156c70-fa52-32b0-efd9-bfeea10e0623
Response example
{
"data": {
"type": "peril",
"id": "ec156c70-fa52-32b0-efd9-bfeea10e0623",
"attributes": {
"label": "No peril",
"version": 0
}
}
}
Getting Started
Use the HTTP GET method to retrieve data via API. This includes both lists and individual resource.
Get resource list: GET {api_uri}/{resource-end-point}
Get individual resource: GET {api_uri}/{resource-end-point}/{id}
Pagination
To page through the results, specify page
(page number, starting from 1) and per_page
(maximum number of items in the result, default value is 15).
Ordering
To sort the results of a query, include the order
query string. The format is order=columnName[|sortOrder]
. The default sort order is ascending. To indicate descending sort order, include DESC. For example order=lastName
or order=updatedAt|DESC
.
Filtering
Use Query string q=
to filter results.
For example, to filter work order by the created datetime(UTC): {{apipath}}/work-orders?q='createdAt'.gte('2016-12-20 02:00:00'),'createdAt'.lte('2016-12-21 10:00:00')
Operations
eq(mixed $value)
- Test that the field is equal to a valueneq(mixed $value)
- Test that the field is not equal to a valuegt(mixed $value)
- Test that the field's value is greater than the value providedgte(mixed $value)
- Test that the field's value is greater than or equal to the value providedlt(mixed $value)
- Test that the field's value is less than the value providedlte(mixed $value)
- Test that the field's value is less than or equal to the value providedin(mixed $value1, ..., mixed $valueN)
- Test that the field's value is in the list of values provided (comma delimited)nin(mixed $value1, ..., mixed $valueN)
- Test that the field's value is not any of the values providedlike(string $string)
- Test that the field is "like" a value. Use of "%" represents wildcards.between(mixed $min, mixed $max)
- Test that the field's value is between the first and second parameters.
And / Or
If multiple fields are being tested, its necessary to sepcify whether they should be evaluated as "and" or "or" tests.
- The comma represents "and" e.g.
field1.eq(3),field2.eq(4)
- The pipe represents "or" e.g.
field1.eq(3)|field1.eq(4)
Closures
Wrapping ()
brackets can be used to affect order of operations for queries.
Escaping values
Quotes (single or double) "
or '
can be used to escape strings e.g. field.like("orang%")
Escaping quotes: If you need to use quotes, you can use the \
character to escape the quote character
API Creating and Updating Data
Getting Started
Use the POST method to add a new item and use the PUT method to update an existing item via API.
When updating data the version
field must have up-to-date value.
Update Item
{apipath}/perils/9b334265-4785-956e-d3e4-4ec0c5baf101
Request example
{
"attributes": {
"label": "New peril new",
"version": 1551251098
}
}
Sync item with filter tags example
{
"attributes": {
"label": "New peril new",
"version": 1727147297
},
"relationships": {
"filterTags": {
"data": {
"id": [
"33144d9c-7983-11ef-a7bd-00fff7b445c2",
"331462a4-7983-11ef-a7bd-00fff7b445c2"
]
}
}
}
}
Response
The response data is the item which has been added or updated.
API Response Code
Code | Summary | Description |
---|---|---|
200 | OK | Successful API call. |
401 | Unauthorized | Invalid authorization. |
403 | Forbidden | API user doesn't have permission to perform the action. |
404 | Not Found | The requested resource could not be found. |
405 | Method Not Allowed | A request method is not supported for the requested resource; for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource. |
422 | Unprocessable Entity | The request body fails validation. |
429 | Too Many Requests | The user has sent too many requests in a given amount of time. |
500 | Internal Error | Prime API server error. Contact support team if problems persist. |
Authenticating requests
To authenticate requests, include an Authorization
header with the value "Bearer {access_token}"
.
All authenticated endpoints are marked with a requires authentication
badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
Accounts Payable Invoice
Accounts Payable Invoice Status |
---|
Approved |
Awaiting Approval |
Cancelled |
New |
Paid |
Part Paid |
Sent |
Approved Status |
---|
Pending |
Approved |
Not Approved |
Disputed |
Under Review |
List Accounts Payable Invoices
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Accounts Payable Invoice
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "accountsPayableInvoice",
"id": "678ae7f5-49c4-20a3-3fcb-62096c91bc0c",
"attributes": {
"jobId": "e637522e-24bb-28ef-7ba1-d090fda20d84",
"invoiceNumber": "12341234",
"workOrderId": "3279039f-4c14-d268-f5d5-3f00f28cd325",
"accountsPayableInvoiceStatus": "New",
"accountNumber": "1-2110",
"itemCode": "120",
"amount": "800.0000",
"tax": "0.0000",
"taxTotal": "72.7273",
"invoicedDate": "2018-02-27",
"dueDate": "2018-03-06",
"attachmentId": "35486bec-a7fd-4447-8418-727b5a1ea001",
"approvalStatus": "Disputed",
"approvalNote": null,
"approvedBy": "Tooly McToolface",
"approvedAt": "2018-02-27 10:10:37",
"createdAt": "2018-02-27 10:10:37",
"createdBy": "Rhys James",
"updatedAt": "2018-02-27 10:10:37",
"updatedBy": "Rhys James",
"isSynced": false,
"finalInvoice": false,
"version": 1519690237
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Accounts Payable Invoice
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Accounts Payable Invoice
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Accounts Payable Invoice Status
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices/1/relationships/accountsPayableInvoiceStatus" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/accounts-payable-invoices/1/relationships/accountsPayableInvoiceStatus"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Accounts Receivable Invoice
Accounts Receivable Invoice Status |
---|
Approved |
Awaiting Approval |
Cancelled |
Draft |
Paid |
Part Paid |
Pending |
Sent |
List Accounts Receivable Invoices
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/accounts-receivable-invoices" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/accounts-receivable-invoices"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Accounts Receivable Invoice
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/accounts-receivable-invoices/4" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/accounts-receivable-invoices/4"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "accountsReceivableInvoice",
"id": "ef7a463e-97d1-2e63-8280-a9cba74a40c7",
"attributes": {
"jobId": "b6572f74-25c8-6d33-2a74-14812518667e",
"invoiceNumber": "DC00056",
"accountsReceivableInvoiceStatus": "Pending",
"accountNumber": null,
"invoicedDate": "2018-10-23",
"dueDate": "2018-11-23",
"notes": "",
"subtotal": "174.6756",
"total": "3493.5120",
"taxTotal": "317.5920",
"progressPaymentNumber": 1,
"progressPaymentPercentage": "0.05000000",
"accountsReceivableType": "Authorised Works",
"showExcessAs": "",
"invoicedTo": "e8392786-d0f8-bd31-c25f-fbd30e359b09",
"attachmentId": "35486bec-a7fd-4447-8418-727b5a1ea001",
"accountsReceivableInvoiceItems": [
{
"id": "e5b04b2a-2a11-ecd4-c0f9-477ca4786b0f",
"quantity": "1.0000",
"unit": "Ea",
"rate": "158.7960",
"subtotal": "158.7960",
"includeTax": 1,
"tax": "0.1000",
"total": "174.6756",
"taxTotal": "15.8796",
"itemCode": null,
"allocationIds": [],
"version": 1541723770
}
],
"createdAt": "2018-11-09 10:34:02",
"createdBy": "Paul George",
"updatedAt": "2018-11-09 10:36:13",
"updatedBy": "Paul George",
"isSynced": false,
"version": 1541723773
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Accounts Receivable Invoice Status
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/accounts-receivable-invoices/4/relationships/accountsReceivableInvoiceStatus" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/accounts-receivable-invoices/4/relationships/accountsReceivableInvoiceStatus"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Allocation
Allocation Status |
---|
Make Safe |
Plumbing Report |
Electrical Report |
Roof Report |
Engineering Report |
Assessment Report |
Flooring Report |
Restoration |
Do & Charge |
Decontamination |
Architecture Design |
Work Order |
Building Report |
Quote |
Asbestos Report |
PRV Report |
Painting |
The objectId is linked Estimate or LockedEstimate's id
List Allocations
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/allocations" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/allocations"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Allocation
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/allocations/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/allocations/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "allocation",
"id": "f2c92140-c578-11ea-8bbe-080027f092e2",
"attributes": {
"jobId": "5cdd47ac-ee37-0793-98fb-bd4dd5230f97",
"assignedContactId": null,
"assignedId": "dfb8c40d-49f8-2c7d-2fbf-31dca0d45916",
"allocationStatusId": "22a70f2c-3c0b-11ea-81c5-02784156a6b6",
"allocationType": "Do & Charge",
"allocationNumber": "A00001",
"objectId": "747d8e26-48be-e769-021d-77781c956467",
"objectType": "LockedEstimate",
"label": "Do & Charge",
"description": "test1",
"limit": null,
"siteAttended": null,
"completed": null,
"firstCustomerContactAt": null,
"filterTags": [],
"version": 1604316353
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Allocation
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/allocations" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/allocations"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Allocation
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/allocations/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/allocations/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Filter Tags
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/allocations/1/relationships/filterTags" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/allocations/1/relationships/filterTags"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
AllocationStatus
List AllocationStatuses
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/allocation-statuses" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/allocation-statuses"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get AllocationStatus
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/allocation-statuses/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/allocation-statuses/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "allocationStatus",
"id": "e5c370b3-3b48-11ea-ab87-080027f092e2",
"attributes": {
"label": "new status",
"version": 1533345093
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Appointment
Appointment Status |
---|
New |
Completed |
Cancelled |
List Appointments
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/appointments" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/appointments"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Appointment
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/appointments/2" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/appointments/2"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "appointment",
"id": "f2c92140-c578-11ea-8bbe-080027f092e2",
"attributes": {
"jobId": "7b7c1013-9c44-9826-f463-920948f89aa0",
"appointmentStatus": "Completed",
"appointmentTypeId": "f3413a2d-c578-11ea-8bbe-080027f092e2",
"primaryUserId": "9c0366a1-d78c-3cd8-4ac0-463517922162",
"start": "2016-11-22 14:30:00",
"end": "2016-11-22 15:30:00",
"instructions": "",
"notes": "",
"createdAt": "2016-11-21 12:11:14",
"createdBy": "John Smith",
"updatedAt": "2017-03-05 00:45:42",
"updatedBy": "John Smith",
"version": 1488638742
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Appointment
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/appointments" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/appointments"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Appointment
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/appointments/2" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/appointments/2"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
AppointmentType
List AppointmentTypes
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/appointment-types" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/appointment-types"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get AppointmentType
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/appointment-types/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/appointment-types/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Attachment
Attachment Status |
---|
Published |
Obsolete |
Hidden |
List Attachments
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/attachments" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/attachments"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Attachment
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/attachments/2" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/attachments/2"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "attachment",
"id": "9362cb89-ffb0-4265-88b7-12f1ce20e49d",
"attributes": {
"description": "test file",
"fileName": "test.png",
"attachmentTypeId": "8cb18cb6-ed8e-3bc2-57a8-15e5076f053f",
"attachmentStatus": "Published",
"mimeType": "image/png",
"size": 181613,
"url": "https://s3.ap-southeast-2.amazonaws.com/cdn.primeeco.tech/xxx/image1.JPG?uuid=13af40e0-daf4-4b3f-a1bb-74852b6cbf7e&type=thumbnail&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJWI2PN62XOXJO5DQ%2F20220920%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20220920T035317Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=d99f290d43f9bbcf05ba02c9478033d3fbe9408ccf52424f52b95061ed64b920",
"objectId": "7b7c1013-9c44-9826-f463-920948f89aa0",
"objectType": "Job"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Attachment
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/attachments" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/attachments"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Attachment
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/attachments/2" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/attachments/2"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
AttachmentType
List AttachmentTypes
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/attachment-types" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/attachment-types"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get AttachmentType
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/attachment-types/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/attachment-types/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Catastrophe Code
List Catastrophe Codes
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/catastrophe-codes" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/catastrophe-codes"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Catastrophe Code
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/catastrophe-codes/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/catastrophe-codes/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Catastrophe Code
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/catastrophe-codes" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/catastrophe-codes"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "catastropheCode",
"id": "93c3e652-85a8-4baf-91de-f774184b5334",
"attributes": {
"label": "No catastrophe",
"code": "NO-CAT",
"version": 1548514578
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Catastrophe Code
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/catastrophe-codes/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/catastrophe-codes/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
ClientPortal
List ClientPortals
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/client-portals" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/client-portals"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get ClientPortal
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/client-portals/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/client-portals/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Contact
Contact Type |
---|
Client |
Company |
Contact Employee |
Contact Office |
Customer |
Location |
Site Contact |
Subcontractor |
Supplier |
User |
Payment Term Types |
---|
DAYSAFTERBILLDATE |
DAYSAFTERBILLMONTH |
OFCURRENTMONTH |
OFFOLLOWINGMONTH |
List Contacts
requires authentication
Filter contacts by type, for example:
GET /api/contacts?q='contactType.name'.eq('Client')
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/contacts" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contacts"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Contact
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/contacts/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contacts/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "contact",
"id": "ac094821-49fd-ac12-fffb-9398127a8046",
"attributes": {
"status": "active",
"position": "",
"isIndividual": false,
"name": "Teds Plumbing",
"firstName": "",
"lastName": "",
"salutation": "",
"contactType": "Subcontractor",
"primaryContact": "Ted Logan",
"homeNumber": "+1-962-866-0751",
"mobileNumber": "",
"workNumber": "",
"preferredContactNumber": "Home",
"preferredContactNumberValue": "+1-962-866-0751",
"contactEmail": "paul@primeecosystem.com.au",
"abn": "4291829310",
"financeRef": "Ref001",
"levesysRef": "ABC123",
"xeroRef": "4269db00-66c4-4d38-a5df-ab0b4f483afe",
"notes": "Voluptas qui non ad qui hic blanditiis. Laudantium quia sit earum nam ipsum officia. Quas qui tenetur error. Et id provident qui harum.\n\nExcepturi id veritatis inventore cum. Numquam aut numquam saepe culpa similique beatae. Et hic ratione provident veniam. Autem quam molestiae ullam dignissimos voluptas.\n\nCupiditate autem natus et ipsa. Occaecati corrupti omnis explicabo et ipsam. Sed eum inventore ullam ratione sed cupiditate ea.",
"salesAccountNumber": "200",
"purchasesAccountNumber": "400",
"salesPaymentTermType": "DAYSAFTERBILLDATE",
"salesPaymentTermValue": 12,
"purchasesPaymentTermType": "DAYSAFTERBILLMONTH",
"purchasesPaymentTermValue": 15,
"linkedToContactId": "51ea9438-22fd-8304-77e5-60d95ee4c5c6",
"address": {
"addressLine1": "1 Test Street",
"suburb": "South Tamworth",
"state": "QLD",
"country": "Australia",
"postcode": "2340"
},
"postalAddress": {
"addressLine1": "PO BOX 123",
"suburb": "South Tamworth",
"state": "QLD",
"country": "Australia",
"postcode": "2340"
},
"subcontractor": {
"gstRegistered": true,
"contactNumber": "(816) 586-6686",
"serviceAreas": "",
"paymentAccountName": "Blanca Doyle",
"paymentAccountNumber": "513843894089133",
"paymentAccountBsb": "APTTMS7NM0C"
},
"createdAt": "2016-11-19 19:37:17",
"createdBy": "Test User",
"updatedAt": "2017-07-29 01:30:10",
"updatedBy": "Test User",
"version": 1518499684
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Contact
requires authentication
The subcontractor section is only available for Subcontractor type contact.
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/contacts" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contacts"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Contact
requires authentication
The subcontractor section is only available for Subcontractor type contact.
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/contacts/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contacts/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Filter Tags
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/contacts/1/relationships/filterTags" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contacts/1/relationships/filterTags"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
ContactLicence
Contact Licence(Compliance Record)
Licence Status |
---|
Active |
Pending |
Incomplete |
Obsolete |
Licence Type |
---|
Licence |
Insurance |
Contract |
Health & Safety |
CM3 |
WWC |
Medical |
List ContactLicences
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/contact-licences" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-licences"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get ContactLicence
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/contact-licences/3" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-licences/3"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "contact-licence",
"id": "da4741b8-113e-11ed-955f-34c93d5aba49",
"attributes": {
"contactId": "048d77e1-cf1a-7452-c892-11d6e3fbe125",
"licenceStatus": "Active",
"licenceType": "Insurance",
"state": null,
"attachmentId": null,
"number": "PL2324343",
"startDate": null,
"expiryDate": "2018-10-31",
"label": "Public Liability",
"notes": null,
"version": 1524056796
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create ContactLicence
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/contact-licences" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-licences"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update ContactLicence
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/contact-licences/3" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-licences/3"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
ContactRelationshipType
List ContactRelationshipTypes
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/contact-relationship-types" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-relationship-types"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get ContactRelationshipType
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/contact-relationship-types/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-relationship-types/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
CustomField
type |
---|
text |
multitext |
select |
multiselect |
boolean |
currency |
date |
signature |
time |
List CustomFields
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/custom-fields" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/custom-fields"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get CustomField
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/custom-fields/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/custom-fields/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "customField",
"id": "dfe21559-c86c-63cc-37bb-6f2725fea501",
"attributes": {
"customFieldType": "job",
"type": "text",
"name": "age-of-property",
"label": "Age of Property",
"description": "Age of Property",
"version": 1491907589
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
CustomFieldOption
List CustomFieldOptions
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/custom-field-options" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/custom-field-options"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get CustomFieldOption
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/custom-field-options/7" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/custom-field-options/7"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Division
List Divisions
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/divisions" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/divisions"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Division
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/divisions/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/divisions/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Division
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/divisions" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/divisions"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Division
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/divisions/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/divisions/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Filter Tags
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/divisions/1/relationships/filterTags" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/divisions/1/relationships/filterTags"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Estimate
Estimate Types |
---|
Authorised Works |
Direct Allocation |
List Locked Estimates
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/estimates-snapshot" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimates-snapshot"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Locked Estimate
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/estimates-snapshot/eum" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimates-snapshot/eum"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "estimateSnapshot",
"id": "9d91f5f6-4529-c3cb-f0a4-8186df946faf",
"attributes": {
"jobId": "b6d87e29-98e5-3f8d-4a3e-eaa15ca0d212",
"label": "Estimate",
"description": "Estimate",
"estimateStatus": "Authorised",
"isVariation": 0,
"estimateType": "Authorised Works",
"totalIncludingTax": 78292.5,
"authorisedTotalExcludingTax": 71175,
"authorisedTotalIncludingTax": 78292.5,
"estimateCategories": [
{
"id": "7faaf2e8-101e-3444-19de-1635b402b2ff",
"type": "preliminary",
"label": "Preliminaries",
"description": null,
"materialMargin": "0.000000",
"labourMargin": "0.000000",
"estimateItems": [
{
"id": "96358720-76d8-4898-7cad-18bf8a4737a9",
"authorised": 1,
"trade": null,
"description": "Supervison",
"materialUnit": "ea",
"materialQuantity": "0.00",
"materialCost": "0.00",
"materialTotal": "0.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "23.00",
"labourCost": "23.00",
"labourTotal": "529.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
"additionalMargin": "0.000000"
},
{
"id": "075fadcb-6161-e717-ed53-da60cc0dee08",
"authorised": 1,
"trade": null,
"description": "Waste Management",
"materialUnit": "ea",
"materialQuantity": "0.00",
"materialCost": "0.00",
"materialTotal": "0.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "231.00",
"labourCost": "23.00",
"labourTotal": "5313.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
"additionalMargin": "0.000000"
}
]
},
{
"id": "bc628fa9-3082-227f-8ba8-ae64a82c328f",
"type": "category",
"label": "Bedroom",
"description": null,
"materialMargin": "0.000000",
"labourMargin": "0.000000",
"estimateItems": [
{
"id": "fc0cd926-bc46-8f44-2b8c-ae28c114597e",
"authorised": 1,
"trade": "Floor Covers",
"description": "asdfadsfadsfasdf",
"materialUnit": "ea",
"materialQuantity": "132.00",
"materialCost": "34.00",
"materialTotal": "4488.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "232.00",
"labourCost": "23.00",
"labourTotal": "5336.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
"additionalMargin": "0.000000"
},
{
"id": "f6561ad4-2957-db56-ad7e-eece7cf27daf",
"authorised": 1,
"trade": "Roof Tiling",
"description": "asfdasdfasdfasdf",
"materialUnit": "ea",
"materialQuantity": "4.00",
"materialCost": "4.00",
"materialTotal": "16.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "14.00",
"labourCost": "3434.00",
"labourTotal": "48076.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
"additionalMargin": "0.000000"
},
{
"id": "d7fcb71b-ed41-9f9e-0b87-55ca8ef2a677",
"authorised": 1,
"trade": "Roof Tiling",
"description": "asfasdfasdfasdf",
"materialUnit": "ea",
"materialQuantity": "41.00",
"materialCost": "34.00",
"materialTotal": "1394.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "41.00",
"labourCost": "23.00",
"labourTotal": "943.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
"additionalMargin": "0.000000"
},
{
"id": "e12c7bb0-7ae3-8ddb-e68a-a19e2416bd6a",
"authorised": 1,
"trade": "Roof Tiling",
"description": "asfdadsfasdfasdfasd",
"materialUnit": "ea",
"materialQuantity": "14.00",
"materialCost": "34.00",
"materialTotal": "476.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "14.00",
"labourCost": "23.00",
"labourTotal": "322.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
"additionalMargin": "0.000000"
}
]
},
{
"id": "d1d5ceea-5702-2dd2-4cd0-6fe41ce18654",
"type": "category",
"label": "Kitchen",
"description": null,
"materialMargin": "0.000000",
"labourMargin": "0.000000",
"estimateItems": [
{
"id": "224fa004-294c-d156-6d9b-cfe634cc275a",
"authorised": 1,
"trade": "Automatic Gates",
"description": "asdfdsfdsfdsaf",
"materialUnit": "ea",
"materialQuantity": "331.00",
"materialCost": "4.00",
"materialTotal": "1324.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "14.00",
"labourCost": "3.00",
"labourTotal": "42.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
"additionalMargin": "0.000000"
},
{
"id": "885e4176-acda-aad5-6716-21045088894c",
"authorised": 1,
"trade": "Automatic Gates",
"description": "asdfasdfasdf",
"materialUnit": "ea",
"materialQuantity": "31.00",
"materialCost": "34.00",
"materialTotal": "1054.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "41.00",
"labourCost": "34.00",
"labourTotal": "1394.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
"additionalMargin": "0.000000"
},
{
"id": "75ef78d0-be2e-296f-6d24-d06566650c0c",
"authorised": 1,
"trade": "Automatic Gates",
"description": "asdfasdfasdfasfd",
"materialUnit": "ea",
"materialQuantity": "13.00",
"materialCost": "32.00",
"materialTotal": "416.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "13.00",
"labourCost": "4.00",
"labourTotal": "52.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
"additionalMargin": "0.000000"
}
]
}
],
"filterTags": [],
"createdAt": "2016-12-01 09:03:58",
"createdBy": "Paul Brandis",
"updatedAt": "2016-12-01 09:04:02",
"updatedBy": "Paul Brandis",
"version": 1480547042
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Filter Tags
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/estimates-snapshot/vitae/relationships/filterTags" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimates-snapshot/vitae/relationships/filterTags"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List Unlocked Estimates
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/estimates" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimates"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Unlocked Estimate
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/estimates/14" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimates/14"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "estimate",
"id": "9d91f5f6-4529-c3cb-f0a4-8186df946faf",
"attributes": {
"jobId": "b6d87e29-98e5-3f8d-4a3e-eaa15ca0d212",
"label": "Estimate",
"description": "Estimate",
"estimateStatus": "Pending",
"isVariation": 0,
"estimateType": "Authorised Works",
"totalIncludingTax": 78292.5,
"assignedId": "453948d0-5dcb-3b1a-628e-60635f7b03e5",
"estimateCategories": [
{
"id": "7faaf2e8-101e-3444-19de-1635b402b2ff",
"type": "preliminary",
"label": "Preliminaries",
"description": null,
"materialMargin": "0.000000",
"labourMargin": "0.000000",
"estimateItems": [
{
"id": "96358720-76d8-4898-7cad-18bf8a4737a9",
"authorised": 0,
"trade": null,
"description": "Supervison",
"materialUnit": "ea",
"materialQuantity": "0.00",
"materialCost": "0.00",
"materialTotal": "0.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "23.00",
"labourCost": "23.00",
"labourTotal": "529.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
},
{
"id": "075fadcb-6161-e717-ed53-da60cc0dee08",
"authorised": 0,
"trade": null,
"description": "Waste Management",
"materialUnit": "ea",
"materialQuantity": "0.00",
"materialCost": "0.00",
"materialTotal": "0.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "231.00",
"labourCost": "23.00",
"labourTotal": "5313.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
}
]
},
{
"id": "bc628fa9-3082-227f-8ba8-ae64a82c328f",
"type": "category",
"label": "Bedroom",
"description": null,
"materialMargin": "0.000000",
"labourMargin": "0.000000",
"estimateItems": [
{
"id": "fc0cd926-bc46-8f44-2b8c-ae28c114597e",
"authorised": 0,
"trade": "Floor Covers",
"description": "asdfadsfadsfasdf",
"materialUnit": "ea",
"materialQuantity": "132.00",
"materialCost": "34.00",
"materialTotal": "4488.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "232.00",
"labourCost": "23.00",
"labourTotal": "5336.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
},
{
"id": "f6561ad4-2957-db56-ad7e-eece7cf27daf",
"authorised": 0,
"trade": "Roof Tiling",
"description": "asfdasdfasdfasdf",
"materialUnit": "ea",
"materialQuantity": "4.00",
"materialCost": "4.00",
"materialTotal": "16.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "14.00",
"labourCost": "3434.00",
"labourTotal": "48076.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
},
{
"id": "d7fcb71b-ed41-9f9e-0b87-55ca8ef2a677",
"authorised": 0,
"trade": "Roof Tiling",
"description": "asfasdfasdfasdf",
"materialUnit": "ea",
"materialQuantity": "41.00",
"materialCost": "34.00",
"materialTotal": "1394.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "41.00",
"labourCost": "23.00",
"labourTotal": "943.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
},
{
"id": "e12c7bb0-7ae3-8ddb-e68a-a19e2416bd6a",
"authorised": 0,
"trade": "Roof Tiling",
"description": "asfdadsfasdfasdfasd",
"materialUnit": "ea",
"materialQuantity": "14.00",
"materialCost": "34.00",
"materialTotal": "476.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "14.00",
"labourCost": "23.00",
"labourTotal": "322.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
}
]
},
{
"id": "d1d5ceea-5702-2dd2-4cd0-6fe41ce18654",
"type": "category",
"label": "Kitchen",
"description": null,
"materialMargin": "0.000000",
"labourMargin": "0.000000",
"estimateItems": [
{
"id": "224fa004-294c-d156-6d9b-cfe634cc275a",
"authorised": 0,
"trade": "Automatic Gates",
"description": "asdfdsfdsfdsaf",
"materialUnit": "ea",
"materialQuantity": "331.00",
"materialCost": "4.00",
"materialTotal": "1324.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "14.00",
"labourCost": "3.00",
"labourTotal": "42.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
},
{
"id": "885e4176-acda-aad5-6716-21045088894c",
"authorised": 0,
"trade": "Automatic Gates",
"description": "asdfasdfasdf",
"materialUnit": "ea",
"materialQuantity": "31.00",
"materialCost": "34.00",
"materialTotal": "1054.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "41.00",
"labourCost": "34.00",
"labourTotal": "1394.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
},
{
"id": "75ef78d0-be2e-296f-6d24-d06566650c0c",
"authorised": 0,
"trade": "Automatic Gates",
"description": "asdfasdfasdfasfd",
"materialUnit": "ea",
"materialQuantity": "13.00",
"materialCost": "32.00",
"materialTotal": "416.00",
"materialMarkup": "0.000000",
"materialMarkupTotal": "0.00",
"labourUnit": "ea",
"labourQuantity": "13.00",
"labourCost": "4.00",
"labourTotal": "52.00",
"labourMarkup": "0.000000",
"labourMarkupTotal": "0.00",
"tax": "0.10",
"materialMargin": "0.000000",
"labourMargin": "0.000000"
}
]
}
],
"filterTags": [],
"createdAt": "2016-12-01 09:03:58",
"createdBy": "Paul Brandis",
"updatedAt": "2016-12-01 09:04:02",
"updatedBy": "Paul Brandis",
"version": 1480547042
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Estimate
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/estimates" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimates"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Estimate
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/estimates/14" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimates/14"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete Estimate
requires authentication
Example request:
curl --request DELETE \
"https://www.primeeco.tech/api.prime/v2/estimates/14" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimates/14"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Filter Tags
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/estimates/14/relationships/filterTags" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimates/14/relationships/filterTags"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
EstimateCategory
Estimate CategoryTypes |
---|
category |
preliminary |
insurance |
areaUnit |
---|
m |
cm |
mm |
ft |
List Estimate Categories
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/estimate-categories" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-categories"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Estimate Category
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/estimate-categories/14" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-categories/14"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Estimate Category
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/estimate-categories" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-categories"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Estimate Category
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/estimate-categories/14" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-categories/14"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete Estimate Category
requires authentication
Example request:
curl --request DELETE \
"https://www.primeeco.tech/api.prime/v2/estimate-categories/14" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-categories/14"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Filter Tags
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/estimate-categories/14/relationships/filterTags" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-categories/14/relationships/filterTags"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
EstimateItem
Estimate Item Type |
---|
Prime Costs |
Provisional Sum |
List Estimate Items
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/estimate-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Estimate Item
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/estimate-items/41" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-items/41"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Estimate Item
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/estimate-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Estimate Item
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/estimate-items/41" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-items/41"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete Estimate Item
requires authentication
Example request:
curl --request DELETE \
"https://www.primeeco.tech/api.prime/v2/estimate-items/41" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/estimate-items/41"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Feedback Item
List Feedback Items
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/feedback-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Feedback Item
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/feedback-items/ipsam" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-items/ipsam"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "feedback-item",
"id": "42ba137d-fe18-11ee-8e31-0a002700000b",
"attributes": {
"jobId": "9018792c-bf58-4621-93e0-77097b5d0f08",
"feedbackItemTypeId": "42c9ff6e-fe18-11ee-8e31-0a002700000b",
"feedbackItemStatusId": "42df206a-fe18-11ee-8e31-0a002700000b",
"feedbackItemSubmissionTypeId": null,
"description": "This is my complaint",
"shortDescription": "This is my complaint",
"loggedById": "cf285faf-4b32-4959-a896-5297eacc0bcf",
"loggedByName": "360 Personnel",
"assignedId": null,
"linkedContactId": null,
"linkedContactName": null,
"incidentAt": "2022-05-13 02:04:47",
"resolvedAt": "",
"notes": "tresting",
"hasCost": 0,
"costTotal": null,
"notifiedTypeId": null,
"notifiedById": null,
"notified": 0,
"notifiedAt": "",
"targetResolutionDate": "2023-09-19",
"nextReviewDate": "2023-09-20",
"createdAt": "2023-05-08 14:57:01",
"createdBy": "Ian Johns",
"updatedAt": "2023-11-08 14:49:22",
"updatedBy": "Ian Johns",
"createdDurationMilliseconds": 159676580,
"updatedDurationMilliseconds": 158552580,
"version": 1699418962
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Feedback Item
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/feedback-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Feedback Item
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/feedback-items/cum" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-items/cum"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Feedback Item Status
List Feedback Item Statuses
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/feedback-item-statuses" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-item-statuses"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Feedback Item Status
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/feedback-item-statuses/eos" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-item-statuses/eos"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "feedback-item-status",
"id": "42df543f-fe18-11ee-8e31-0a002700000b",
"attributes": {
"name": "closed",
"label": "Closed",
"isClosedStatus": true,
"version": 0
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Feedback Item Submission Type
List Feedback Item Submission Types
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/feedback-item-submission-types" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-item-submission-types"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Feedback Item Submission Type
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/feedback-item-submission-types/repudiandae" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-item-submission-types/repudiandae"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "feedback-item-submission-type",
"id": "42ec8fd7-fe18-11ee-8e31-0a002700000b",
"attributes": {
"name": "on-site",
"label": "On Site",
"active": 1,
"version": 0
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Feedback Item Type
List Feedback Item Types
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/feedback-item-types" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-item-types"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Feedback Item Type
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/feedback-item-types/aperiam" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/feedback-item-types/aperiam"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "feedback-item-type",
"id": "42c9ff6e-fe18-11ee-8e31-0a002700000b",
"attributes": {
"name": "complaint",
"label": "Complaint",
"active": 1,
"version": 0
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
FilterTag
List FilterTags
requires authentication
Get FilterTag
requires authentication
FilterType
List FilterTypes
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/filter-types" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/filter-types"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get FilterType
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/filter-types/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/filter-types/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Job
Job Type |
---|
Assessment |
Design |
Desktop Assessment |
Direct Works |
Do and Charge |
Fast Track |
Job |
Liability Quote |
Makesafe |
Quick Repair |
Quote |
Quote and Report |
Rectification |
Report Only |
Restoration |
Scope and Repair |
Scope and Report |
Specialist |
Straight to Builder |
List Jobs
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/jobs" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Job
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/jobs/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "job",
"id": "a9a3e778-14d3-3434-0690-27bf0099a5ec",
"attributes": {
"jobNumber": "DC0000009",
"clientReference": "TVOZPV1D",
"additionalReference": "123",
"description": "Rerum rem consequuntur ut maxime. In architecto labore odit temporibus voluptas officiis in voluptas. Sunt aut nulla similique non voluptate at.",
"interestedParties": null,
"divisionId": "30f895a2-9f57-d025-edf0-5b9e95659648",
"perilId": "12e4d7f0-0d6e-060e-ffdb-58f6de311313",
"catastropheCodeId": "b1451eb0-3c6d-5e64-f23e-5b99d909900f",
"jobType": "Quote Override",
"workflowId": "5f516fc3-0674-e658-89b4-2a49f9854dd1",
"statusId": "0fe19d75-177e-5445-c04d-a75d2ff3f4a5",
"address": {
"addressLine1": "1 Test Street",
"suburb": "Spring Hill",
"state": "QLD",
"country": "Australia",
"postcode": "4000"
},
"customerId": "36546c2d-2b2f-860e-a356-f996986423a3",
"clientId": "544853af-742d-5144-9d0f-4ee0adaf8f50",
"assignedId": "948a65ff-145e-1e92-a66e-b2578df51dcf",
"excessAmount": "200.00",
"caseManagerId": null,
"supervisorId": null,
"primaryContactId": "36546c2d-2b2f-860e-a356-f996986423a3",
"notes": null,
"authorisedTotalExcludingTax": 1000,
"authorisedTotalIncludingTax": 1100,
"authorisedTotalExcludingTaxExcludingMargin": 800,
"authorisedTotalExcludingTaxExcludingMarginExcludingMarkup": 750,
"createdAt": "2016-11-19 19:37:20",
"filterTags": [
"Big Job",
"Building"
],
"region": "Western Sydney",
"incidentDate": "2016-11-10",
"allocatedDate": "2016-11-19 19:37:20",
"brokerReference": null,
"strataReference": null,
"adjusterReference": null,
"primeUrl": "https://primeeco.tech/prime/job/view/CBE",
"createdBy": "Paul Miller",
"updatedAt": "2019-01-25 23:39:03",
"updatedBy": "Adam Brown",
"version": 1548423543
}
},
"included": [ // example: include=additionalFields&fields=reserveItemSumInsuredTotal,reserveItemOutstandingReserveTotal
{
"type": "additionalFields",
"id": "13e9701c-9df1-4729-9b79-0ca82dabdd6a",
"attributes": {
"version": 1721692517,
"reserveItemSumInsuredTotal": "10000.00",
"reserveItemOutstandingReserveTotal": "12617.67"
}
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Job Reserve Item Transactions
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/jobs/1/reserve-transactions" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs/1/reserve-transactions"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
[
{
"id": "518c03a7-f29c-4411-8dca-9559c16b89cb",
"attributes": {
"jobId": "e2ae1c76-a30c-4e81-9707-00dfa7aa353c",
"reserveCategoryId": "1ff9f165-0288-4848-8816-178ef90996a0",
"reserveCategoryLabel": "Strata - Section 4 - Fidelity Guarantee",
"reserveItemId": "43410300-25b2-46fe-a863-2ddc9bd09c86",
"actionAt": "2024-05-13 17:52:15",
"actionBy": "Paul Brandis",
"actionById": "6ae240d6-1a0f-44ba-a6c3-8b070be48555",
"actionLabel": "Initial Reserve",
"adjustmentTotal": null,
"initialReserveTotal": "800.00",
"excessTotal": 0,
"currentReserveTotal": 800,
"paidPaymentsTotal": 0,
"outstandingReserveTotal": 800
}
},
{
"id": "7a6ed9f6-ba77-43b4-bcaf-227b77e701d9",
"attributes": {
"jobId": "e2ae1c76-a30c-4e81-9707-00dfa7aa353c",
"reserveCategoryId": "41e67e0b-6d78-424d-9a0a-4161d6d6fd9b",
"reserveCategoryLabel": "Strata - Section 6 - Machinery Breakdown",
"reserveItemId": "a53cf04f-0ca9-43d1-a6d2-5d4495ea9b8b",
"actionAt": "2024-05-13 17:52:16",
"actionBy": "Lisa Zhang",
"actionById": "6ae240d6-1a0f-44ba-a6c3-8b070be48555",
"actionLabel": "Reserve Update",
"adjustmentTotal": 5000,
"initialReserveTotal": null,
"excessTotal": null,
"currentReserveTotal": 5800,
"paidPaymentsTotal": 0,
"outstandingReserveTotal": 5800
}
}
]
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Job
requires authentication
New customer can be created at the same time.
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/jobs" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Job
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/jobs/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Job Status
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/jobs/1/relationships/status" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs/1/relationships/status"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Job Custom Fields
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/jobs/1/relationships/jobCustomFields" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
--data "{
\"attributes\": \"{\\\"4db7e75f-c408-2aee-40d2-760049ad0fc5\\\": \\\"17 years\\\",\\\"39bb21ef-c389-f7ac-6252-dc37fe1dbee0\\\": \\\"c282b12d-3082-11ea-a53f-080027f092e2\\\",\\\"3e51ea12-53a5-21ed-da05-bcede1a769da\\\": [\\\"c282be35-3082-11ea-a53f-080027f092e2\\\",\\\"c282bea0-3082-11ea-a53f-080027f092e2\\\",\\\"c282bf0d-3082-11ea-a53f-080027f092e2\\\"]}\"
}"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs/1/relationships/jobCustomFields"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
let body = {
"attributes": "{\"4db7e75f-c408-2aee-40d2-760049ad0fc5\": \"17 years\",\"39bb21ef-c389-f7ac-6252-dc37fe1dbee0\": \"c282b12d-3082-11ea-a53f-080027f092e2\",\"3e51ea12-53a5-21ed-da05-bcede1a769da\": [\"c282be35-3082-11ea-a53f-080027f092e2\",\"c282bea0-3082-11ea-a53f-080027f092e2\",\"c282bf0d-3082-11ea-a53f-080027f092e2\"]}"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Job Milestone Items
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/jobs/1/relationships/milestoneItems" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
--data "{
\"attributes\": \"{\\\"4db7e75f-c408-2aee-40d2-760049ad0fc5\\\": \\\"2024-01-01\\\",\\\"39bb21ef-c389-f7ac-6252-dc37fe1dbee0\\\": \\\"2024-02-02\\\"}\"
}"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs/1/relationships/milestoneItems"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
let body = {
"attributes": "{\"4db7e75f-c408-2aee-40d2-760049ad0fc5\": \"2024-01-01\",\"39bb21ef-c389-f7ac-6252-dc37fe1dbee0\": \"2024-02-02\"}"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Filter Tags
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/jobs/1/relationships/filterTags" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs/1/relationships/filterTags"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sync Job to Easybuild
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/jobs/1/sync-to-easybuild" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/jobs/1/sync-to-easybuild"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List Upstream Jobs
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/upstream-jobs" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/upstream-jobs"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Upstream Job
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/upstream-jobs/necessitatibus" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/upstream-jobs/necessitatibus"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Job Contact Relationship
List ContactRelationships
requires authentication
jobId
fitler is required. For example: {{apipath}}/contact-relationships?q='jobId'.eq('568167ca-665f-eee1-debc-0a2d97f3853f')
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/contact-relationships" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-relationships"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get ContactRelationship
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/contact-relationships/4" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-relationships/4"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "contact-relationship",
"id": "e6636799-5838-11ee-819a-00fff7b445c2",
"attributes": {
"jobId": "568167ca-665f-eee1-debc-0a2d97f3853f",
"contactId": "500c899f-24d3-014c-a826-215a973af10f",
"contactName": "RACQ Insurance",
"contactRelationshipTypeId": "5276d87c-748f-4eeb-02fd-9c2356566b3f",
"contactRelationshipTypeName": "Policy Owner",
"version": 1480433183
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create ContactRelationship
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/contact-relationships" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-relationships"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update ContactRelationship
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/contact-relationships/4" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-relationships/4"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete ContactRelationship
requires authentication
Example request:
curl --request DELETE \
"https://www.primeeco.tech/api.prime/v2/contact-relationships/4" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/contact-relationships/4"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
JobCustomField
List JobCustomFields
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/job-custom-fields" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-custom-fields"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get JobCustomField
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/job-custom-fields/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-custom-fields/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Job Expense Invoice
Job Expense Invoice Status |
---|
Approved |
Cancelled |
New |
Paid |
Sent |
Approved Status |
---|
Pending |
Approved |
Not Approved |
Disputed |
Under Review |
List Job Expense Invoices
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/job-expense-invoices" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-expense-invoices"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Job Expense Invoice
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/job-expense-invoices/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-expense-invoices/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "jobExpenseInvoice",
"id": "04610e69-4a1b-f8ed-5857-57e62c009bbb",
"attributes": {
"jobId": "61863af9-ba2e-b98a-5dc1-f384fa5a7a05",
"invoiceNumber": "LIVE001",
"jobExpenseInvoiceStatus": "Sent",
"jobExpenseInvoiceType": "Equipment Hire",
"description": "sdf dfsdaf sd",
"amount": "2345.0000",
"tax": "0.1000",
"taxTotal": "213.1818",
"incurredDate": "2017-08-16",
"dueDate": "2017-08-24",
"accountNumber": "1-1110",
"itemCode": "560",
"assignedToId": "8d149e6c-68a3-55f1-fedc-a8c7083aad04",
"attachmentId": "35486bec-a7fd-4447-8418-727b5a1ea001",
"approvalStatus": "Disputed",
"approvalNote": null,
"approvedBy": "Tooly McToolface",
"approvedAt": "2017-08-21 18:56:36",
"createdAt": "2017-08-16 12:11:05",
"createdBy": "Paul Smith",
"updatedAt": "2017-08-21 18:56:36",
"updatedBy": "Paul Smith",
"isSynced": true,
"version": 1503305796
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Job Expense Invoice
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/job-expense-invoices" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-expense-invoices"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Job Expense Invoice
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/job-expense-invoices/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-expense-invoices/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Job Expense Invoice Status
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/job-expense-invoices/1/relationships/jobExpenseInvoiceStatus" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-expense-invoices/1/relationships/jobExpenseInvoiceStatus"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Job History
List Job History
requires authentication
Examples:
- get job history items for a given job 'badfa407-4045-366b-95e5-5dc7e8e3a412'
{{apipath}}/histories?q='jobId'.eq('badfa407-4045-366b-95e5-5dc7e8e3a412')
- get history items of a certain history action '873aedab-41cc-11ef-bd3e-00fff7b445c2' for all jobs since '2023-10-20 14:00:00'
{{apipath}}/histories?q='historyActionId'.eq('873aedab-41cc-11ef-bd3e-00fff7b445c2'),'createdAt'.gt('2023-10-20 14:00:00')
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/histories" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/histories"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Job History Action
List History Actions
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/history-actions" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/history-actions"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get History Action
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/history-actions/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/history-actions/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
JobLink
List JobLinks
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/job-links" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-links"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get JobLink
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/job-links/4" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-links/4"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create JobLink
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/job-links" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-links"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update JobLink
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/job-links/4" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-links/4"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete Job Link
requires authentication
Example request:
curl --request DELETE \
"https://www.primeeco.tech/api.prime/v2/job-links/4" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/job-links/4"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Job Status
List Job Statuses
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/statuses" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/statuses"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Job Status
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/statuses/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/statuses/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "status",
"id": "a3315b6c-cb34-2378-ecb4-339252c9b36d",
"attributes": {
"name": "Appointment Required",
"description": "appointment required",
"statusType": "Open",
"version": 0
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Licence
Licence Status |
---|
Active |
Pending |
Incomplete |
Obsolete |
Licence Types |
---|
Licence |
Insurance |
Contract |
Health & Safety |
CM3 |
WWC |
List Licences
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/licences" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/licences"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Licence
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/licences/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/licences/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Licence
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/licences" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/licences"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Licence
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/licences/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/licences/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Milestone
List Milestones
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/milestones" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/milestones"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Milestone
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/milestones/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/milestones/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "milestones",
"id": "64518b78-9b67-11eb-96f7-34c93d5aba49",
"attributes": {
"label": "Job Received from Client",
"description": "Job Received from Client",
"fieldType": "datetime",
"allowNotes": 1,
"visible": 1,
"version": 1545144245
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
MilestoneItem
Milestone Types |
---|
boolean |
datetime |
date |
time |
List MilestoneItems
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/milestone-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/milestone-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get MilestoneItem
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/milestone-items/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/milestone-items/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update MilestoneItem
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/milestone-items/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/milestone-items/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Notification
Notification Channel |
---|
note |
sms |
Notification Type |
---|
Internal |
Customer |
Client |
Internal Email |
Customer Contact |
Client Contact |
Contractor |
Contractor Contact |
List Notifications
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/notifications" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/notifications"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Notification
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/notifications/0018dbaf-4ee9-42b3-a085-d840ed8f0fa6" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/notifications/0018dbaf-4ee9-42b3-a085-d840ed8f0fa6"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "notification",
"id": "76548781-b999-42ec-a27b-b80109958a8c",
"attributes": {
"jobId": "17cf4834-1c45-0cd1-9dc0-91d9098f1812",
"notificationChannel": "note",
"notificationType": "Client",
"notificationTemplateId": "c31ab7e5-3082-11ea-a53f-080027f092e2",
"data": {
"note": "test test"
},
"createdAt": "2020-01-06 23:57:04",
"createdBy": "Titus Raynor"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Job Notification
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/notifications" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/notifications"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Peril
List Perils
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/perils" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/perils"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Peril
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/perils/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/perils/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Peril
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/perils" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/perils"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Peril
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/perils/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/perils/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PowerBI
We have a PowerBI connector. Please contact us to find out more.
List Schema
requires authentication
Available Power BI Types are string = Text.Type, integer = Int64.Type, number = type number, date = Date.Type, datetime = DateTime.Type
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/powerbi/schema" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/powerbi/schema"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reminder
Reminder Status |
---|
New |
Completed |
Cancelled |
Reminder Priority |
---|
Critical |
Normal |
Low |
List Reminders
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/reminders" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reminders"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Reminder
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/reminders/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reminders/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Reminder
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/reminders" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reminders"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Reminder
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/reminders/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reminders/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
ReminderTemplate
List ReminderTemplates
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/reminder-templates" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reminder-templates"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get ReminderTemplate
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/reminder-templates/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reminder-templates/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "reminderTemplate",
"id": "f647eb74-3b48-11ea-ab87-080027f092e2",
"attributes": {
"reminderPriority": "Normal",
"duePeriod": 2880,
"title": "Call Back Client",
"description": "Return call to client to respond to query",
"version": 1483066542
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
ReserveCategory
List ReserveCategories
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/reserve-categories" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reserve-categories"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get ReserveCategory
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/reserve-categories/13" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reserve-categories/13"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "reserveCategory",
"id": "e5c370b3-3b48-11ea-ab87-080027f092e2",
"attributes": {
"label": "Reserve Category Label",
"reserveCategoryTypeLabel": "Type",
"tagLabels": [
"My Tag"
],
"active": 1,
"updatedAt": "2024-01-01 14:00:00",
"updatedBy": "User Name"
"version": 1533345093
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
ReserveItem
List ReserveItems
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/reserve-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reserve-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get ReserveItem
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/reserve-items/20" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/reserve-items/20"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "reserveItem",
"id": "e5c370b3-3b48-11ea-ab87-080027f092e2",
"attributes": {
"jobId": "f1365f81-a343-4d02-95bf-b35c49d7260d",
"reserveCategoryId": "94b6e854-e8b0-45e8-a970-9b6d8763ed6b",
"reserveItemStatusLabel": "Active",
"sumInsuredTotal": "1000.00",
"initialReserveTotal": "2000.00",
"currentReserveTotal": "3000.00",
"currentReserveNetTotal": "3000.00",
"authorisedTotal": "3000.00",
"paidPaymentsTotal": "6000.00",
"outstandingReserveTotal": "3000.00",
"updatedAt": "2024-01-01 14:00:00",
"updatedBy": "User name",
"version": 1533345093
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Schedule
Job Schedule
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/schedules/job/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedules/job/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Schedule
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/schedules/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedules/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "schedule",
"id": "d179bb8f-86bc-11ef-8841-0a002700000b",
"attributes": {
"jobId": "acbc97f2-1a5e-4975-b862-9034c42270d2",
"label": "Works Schedule",
"description": null,
"scheduleType": "Works",
"attachmentId": null,
"encodedLinkToken": null,
"scheduleItems": [
{
"id": "d188aad7-86bc-11ef-8841-0a002700000b",
"label": "DCT83DCT0001087",
"description": "In Progress",
"objectType": "WorkOrder",
"objectId": "2d49a5aa-4cad-488b-b5ad-4f8b45661dca",
"start": "2022-11-22",
"end": "2022-11-24",
"startTime": "08:00:00",
"endTime": "13:30:39",
"assignedId": "184159dd-ee1d-4d68-826f-65fbb4f34796",
"visible": 1,
"linksFrom": [
"d188abe8-86bc-11ef-8841-0a002700000b"
],
"linksTo": [],
"version": 1728615418
},
{
"id": "d188abe8-86bc-11ef-8841-0a002700000b",
"label": "Meeting with supervisor",
"description": "undefined",
"objectType": null,
"objectId": null,
"start": "2022-11-18",
"end": "2022-11-19",
"startTime": null,
"endTime": null,
"assignedId": null,
"visible": 1,
"linksFrom": [],
"linksTo": [
"d188aad7-86bc-11ef-8841-0a002700000b"
],
"version": 1728615418
}
],
"createdAt": "2022-07-01 09:16:48",
"createdBy": "Paul Grant",
"updatedAt": "2022-11-18 12:46:05",
"updatedBy": "Paul Grant",
"version": 1668775565
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Schedule
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/schedules" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedules"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Schedule
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/schedules/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedules/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Job Schedule Items
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/schedule-items/job/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedule-items/job/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Schedule Item
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/schedule-items/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedule-items/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "scheduleItem",
"id": "d188ace7-86bc-11ef-8841-0a002700000b",
"attributes": {
"jobId": "e2ae1c76-a30c-4e81-9707-00dfa7aa353c",
"scheduleId": "d179bc93-86bc-11ef-8841-0a002700000b",
"label": "DCT85DCT0001087",
"description": "In Progress",
"objectType": "WorkOrder",
"objectId": "2d49a5aa-4cad-488b-b5ad-4f8b45661dca",
"start": "2023-05-18",
"end": "2023-05-20",
"startTime": null,
"endTime": null,
"assignedId": "184159dd-ee1d-4d68-826f-65fbb4f34796",
"visible": 1,
"linksFrom": [],
"linksTo": [
"d188ade4-86bc-11ef-8841-0a002700000b",
"d188aee0-86bc-11ef-8841-0a002700000b"
],
"version": 1684475746
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Schedule Item
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/schedule-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedule-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Schedule Item
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/schedule-items/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedule-items/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete Schedule Item
requires authentication
Delete schedule item and all schedule item links relate to this item.
Example request:
curl --request DELETE \
"https://www.primeeco.tech/api.prime/v2/schedule-items/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedule-items/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Schedule Item Link
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/schedule-item-links" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedule-item-links"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete Schedule Item Link
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/schedule-item-links/deleteLink" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/schedule-item-links/deleteLink"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
SiteForm
status |
---|
Not Started |
In Progress |
Awaiting Approval |
Completed |
Cancelled |
List Site Forms
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/site-forms" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/site-forms"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Site Form
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/site-forms/soluta" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/site-forms/soluta"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "siteForm",
"id": "9aa70d4d-5ba4-11ef-a0eb-00fff7b445c2",
"attributes": {
"number": "AJ64--CF00178",
"label": "AJ64--CF00178",
"jobId": "5db33a72-d7c3-de49-77ac-c96f1564c81c",
"objectId": "5db33a72-d7c3-de49-77ac-c96f1564c81c",
"objectType": "Job",
"template": "Inspection Form",
"status": "In Progress",
"attachmentId": "4c5d5cec-527a-4cd7-9240-d0a1e6d0f198",
"notes": "test",
"assignedContact": null,
"assignedUser": "Andrew Smith",
"approvedBy": "Mike Doe",
"approvedAt": "2024-08-17T02:41:44.000000Z",
"items": [
{
"id": "61737eed-5ba0-11ef-a0eb-00fff7b445c2",
"customFieldId": "92564a62-cc7d-4f99-8cd8-66482f45329c",
"customFieldType": "attachments",
"customFieldLabel": "Property Photos",
"value": [
"https://test.s3.ap-southeast-2.amazonaws.com/company/1723861677848_image_20240713190514.jpg?uuid=66bf1bc2-36e1-4fee-b931-bde53eeee027&type=original&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJWI2PN62XOXJO5DQ%2F20240817%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240817T023539Z&X-Amz-SignedHeaders=host&X-Amz-Expires=604800&X-Amz-Signature=1842ae4c83e8045854c8c36e2e51c131885fd54d7bf4276d472754dabf58c6a4"
]
},
{
"id": "61738006-5ba0-11ef-a0eb-00fff7b445c2",
"customFieldId": "45ff79b4-e5fd-4a6e-a772-e44a9ae79150",
"customFieldType": "signature",
"customFieldLabel": "Customer Signature",
"value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXoAAABkCAYAAACIC/vPAAAAAXNSR0IArs4c6QAADxZJREFUeF7tnfevBUUZhl+wdxE7dgyKYhdsqGAvsSWo0R/UaFCIJgaBRP8B/UEsCUGMBI0xgVhixW4EsUTEDkoT7FEUpalY0X3IfDiue+/ds3dmz+6e"
},
{
"id": "6173826f-5ba0-11ef-a0eb-00fff7b445c2",
"customFieldId": "1af67280-e3ab-2b8a-aff9-eb55bfd7c048",
"customFieldType": "select",
"customFieldLabel": "Construction Type",
"value": "Weatherboard"
},
{
"id": "61738492-5ba0-11ef-a0eb-00fff7b445c2",
"customFieldId": "005d3e30-7439-036c-7318-76d87d6c06f2",
"customFieldType": "text",
"customFieldLabel": "Age of Property",
"value": "12"
},
{
"id": "617387b6-5ba0-11ef-a0eb-00fff7b445c2",
"customFieldId": "85ff0a75-fbe7-a0e8-731e-d9ca7ca9bbe1",
"customFieldType": "multiselect",
"customFieldLabel": "Types of Hazards",
"value": [
"Asbestos",
"Lead Paint"
]
},
{
"id": "617388be-5ba0-11ef-a0eb-00fff7b445c2",
"customFieldId": "e06a5dcb-a901-f686-f20f-14088480ab54",
"customFieldType": "select",
"customFieldLabel": "Previous Related Claims",
"value": "Yes"
},
{
"id": "617389ce-5ba0-11ef-a0eb-00fff7b445c2",
"customFieldId": "d548f8e6-041b-df25-0461-e6c5ca7f1478",
"customFieldType": "multitext",
"customFieldLabel": "Details of Previous Claims",
"value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis turpis at est pulvinar malesuada. Nullam lorem massa, dictum quis ipsum vel, rhoncus convallis nisl. Praesent sit amet nunc justo. Sed lacinia mattis diam a rutrum. Sed tincidunt, tellus ut aliquet cursus, eros lorem convallis enim, eu tempus mauris ligula at risus."
},
{
"id": "61738ad6-5ba0-11ef-a0eb-00fff7b445c2",
"customFieldId": "162a195f-0c40-0f41-9f0a-fcfe748e4e8c",
"customFieldType": "message",
"customFieldLabel": "Instructions if Site Access Restricted",
"value": "STOP: Check with WHS Adviser to determine whether traffic control is required prior to site attendance by trades/suppliers"
},
{
"id": "61738ce1-5ba0-11ef-a0eb-00fff7b445c2",
"customFieldId": "573e94b1-00b6-4053-888d-de5770e48eb1",
"customFieldType": "date",
"customFieldLabel": "My Date",
"value": "2024-08-24",
"timezone": "Australia/Brisbane"
}
],
"version": 1723861683
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Status History
List Status History
requires authentication
objectType | Description |
---|---|
Job | Job |
Appointment | Appointment |
Estimate | Unlocked Estimate |
EstimateSnapshot | Locked Estimate |
Allocation | Allocation |
WorkOrder | Work Order |
AccountsPayableInvoice | Accounts Payable Invoice |
AccountsReceivableInvoice | Accounts Receivable Invoice |
JobExpenseInvoice | Job Expense Invoice |
Examples:
- get all types of status history for a given job
{{apipath}}/status-histories?q='jobId'.eq('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx')
- get all Appointment type status history for all jobs since '2023-10-20 14:00:00'
{{apipath}}/status-histories?q='objectType'.eq('Appointment'),'createdAt'.gt('2023-10-20 14:00:00')
- get all Estimate type status history for a given estimate
{{apipath}}/status-histories?q='objectType'.eq('Estimate'),'objectId'.eq('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx')
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/status-histories" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/status-histories"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
SyncExternal
Create GenericPayload
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/sync-external/generic-payload" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/sync-external/generic-payload"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Timesheet
Approved Status |
---|
Pending |
Approved |
Not Approved |
Disputed |
Under Review |
List Timesheets
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/timesheets" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/timesheets"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Timesheet
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/timesheets/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/timesheets/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "timesheet",
"id": "4d668b49-ea4c-4c7d-a629-f0772fc866c8",
"attributes": {
"jobId": "b40652f8-72f0-4b1e-93b2-d0730a8fa592",
"timesheetRoleId": "aaac102f-69f0-11ec-81d3-34c93d5aba49",
"timesheetActivityId": "aab2eef6-69f0-11ec-81d3-34c93d5aba49",
"userId": "54a8d8ea-7d57-632e-58b3-6af88b7cd7f7",
"afterhours": true,
"notes": "notes1",
"rate": "11.00",
"total": -13.75,
"unpaidBreak": 120,
"paidBreak": 45,
"timezone": "Australia/Brisbane",
"jobExpenseInvoiceId": "9b962763-2ebe-4ef2-85f8-5d238e8a7bb6",
"accountsPayableInvoiceId": null,
"commencedAt": "2022-01-03 07:50:00",
"completedAt": "2022-01-03 08:35:00",
"approvalStatusId": "Approved",
"approvalNote": "approval note",
"approvedById": "453948d0-5dcb-3b1a-628e-60635f7b03e5",
"approvedAt": "2022-01-04 13:02:36",
"createdAt": "2022-01-02 21:47:57",
"createdBy": "Test User",
"updatedAt": "2022-01-02 21:47:57",
"updatedBy": "Test User",
"version": 1641124077
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Timesheet
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/timesheets" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/timesheets"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Timesheet
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/timesheets/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/timesheets/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
TimesheetActivity
List TimesheetActivities
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/timesheet-activities" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/timesheet-activities"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get TimesheetActivity
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/timesheet-activities/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/timesheet-activities/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "timesheetActivity",
"id": "aab2eef6-69f0-11ec-81d3-34c93d5aba49",
"attributes": {
"label": "Site Inspection",
"description": "Site Inspection",
"visible": 1,
"version": 1495290988
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
TimesheetRole
List TimesheetRoles
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/timesheet-roles" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/timesheet-roles"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get TimesheetRole
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/timesheet-roles/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/timesheet-roles/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "timesheetRole",
"id": "aaabfccd-69f0-11ec-81d3-34c93d5aba49",
"attributes": {
"label": "General Trade",
"description": "General Trade",
"rate": "60.00",
"afterhoursRate": "80.00",
"sellRate": "60.00",
"afterhoursSellRate": "80.00",
"visible": 1,
"version": 1568366642
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
TodoItem
List TodoItems
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/todo-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/todo-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get TodoItem
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/todo-items/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/todo-items/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "todoItem",
"id": "f48b2d0c-7a05-11ea-8468-08002732ed09",
"attributes": {
"jobId": "be2db686-a487-4b96-9e17-c69d6cec22ae",
"todoType": "Reminder",
"userId": "994f753a-0db5-7521-0dfd-a969d27deed2",
"due": "2019-02-03 15:22:48",
"completed": null,
"label": "Arrange Site Inspection",
"description": "Book appointment to attend site to complete assessment/quote",
"createdAt": "2019-02-01 01:22:58",
"createdBy": "Nike Smith",
"updatedAt": "2019-02-01 01:22:58",
"updatedBy": "Nike Smith",
"version": 1548948178
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Trade
List Trades
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/trades" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/trades"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Trade
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/trades/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/trades/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "trade",
"id": "59d47247-6ee4-11ec-81d3-34c93d5aba49",
"attributes": {
"label": "Fencing",
"description": "Fencing"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Unit
List Units
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/units" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/units"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Unit
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/units/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/units/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "unit",
"id": "59dd7d8f-6ee4-11ec-81d3-34c93d5aba49",
"attributes": {
"label": "m2",
"description": "Square Metre"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User
List Users
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/users" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/users"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get User
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/users/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/users/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "user",
"id": "fe202e7d-52aa-916c-77b8-dc878e84886b",
"attributes": {
"firstName": "Adella",
"lastName": "Graham",
"fullName": "Adella Graham",
"status": "active",
"email": "user3@example.com",
"timezone": "Australia/Brisbane",
"contactId": "6cca58ce-050e-d673-4dc1-7b571f3df51b",
"version": 1479512238
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
WHS Item
WHS Item Status (Prime Default) |
---|
New |
Under Investigation |
Mitigation Completed |
Repairs Completed |
Cancelled |
List WHS Items Status
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/whs-item-statuses" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-item-statuses"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get WHS Item Status
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/whs-item-statuses/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-item-statuses/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "whs-item-status",
"id": "32863739-85ed-11ef-9479-0a002700000b",
"attributes": {
"name": "new_whs_status",
"label": "New WHS Status",
"description": null,
"active": 1,
"companyId": "32f92994-d077-11ee-b25d-0a002700000b",
"updatedAt": "2021-09-20 13:22:02",
"updatedBy": "Paul Grant",
"version": 1632144122
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create WHS Item Status
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/whs-item-statuses" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-item-statuses"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update WHS Item Status
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/whs-item-statuses/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-item-statuses/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List WHS Item Types
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/whs-item-types" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-item-types"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get WHS Item Type
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/whs-item-types/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-item-types/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "whs-item-type",
"id": "32753bc6-85ed-11ef-9479-0a002700000b",
"attributes": {
"name": "accident",
"label": "Accident",
"description": null,
"active": 1,
"companyId": "32f92994-d077-11ee-b25d-0a002700000b", (If companyId is null, that is Prime default WHS item type)
"updatedAt": "2024-10-09 04:13:20",
"updatedBy": "Paul Grant",
"version": 1728447200
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create WHS Item Type
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/whs-item-types" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-item-types"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update WHS Item Type
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/whs-item-types/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-item-types/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List WHS Items
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/whs-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get WHS Item
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/whs-items/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-items/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "whs-item",
"id": "94fed30b-4ac9-4877-896a-fbc04e4b9d01",
"attributes": {
"jobId": "2ac76583-99c9-453a-aee6-7c50b12c8b0f",
"whsItemTypeId": "3274f6af-85ed-11ef-9479-0a002700000b",
"whsItemTypeLabel": "Hazard",
"whsItemStatusId": "32862b2f-85ed-11ef-9479-0a002700000b",
"whsItemStatusLabel": "New",
"label": "DCT120-WHS01038",
"description": "incident",
"loggedById": "6ae240d6-1a0f-44ba-a6c3-8b070be48555",
"loggedByName": "Paul Grant",
"linkedContactId": null,
"linkedContactName": null,
"nearMiss": 0,
"incidentDate": "2024-10-09 01:13:11",
"mitigatedDate": "2024-10-08 15:11:45",
"resolvedDate": "",
"costTotal": "0.00",
"attachmentIds": [
"24c3ce2f-7910-4eef-a64b-01fc1d67a54d"
],
"allocationIds": [
"7e7bac7b-0366-4cb6-968c-964c1c72fdf3"
],
"filterTags": [],
"createdAt": "2024-10-08 04:10:19",
"createdBy": "Paul Grant",
"updatedAt": "2024-10-08 05:11:51",
"updatedBy": "Paul Grant",
"version": 1728364311
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create WHS Item
requires authentication
Example request:
curl --request POST \
"https://www.primeeco.tech/api.prime/v2/whs-items" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-items"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update WHS Item
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/whs-items/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-items/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Filter Tags
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/whs-items/1/relationships/filterTags" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/whs-items/1/relationships/filterTags"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Work Order
Work Order Status |
---|
Draft |
Locked |
In Progress |
Completed |
Cancelled |
List Work Orders
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/work-orders" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/work-orders"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Work Order
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/work-orders/3" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/work-orders/3"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "workOrder",
"id": "bf90d214-cbb9-58e8-b3dc-bb9d7624b12e",
"attributes": {
"jobId": "b6d87e29-98e5-3f8d-4a3e-eaa15ca0d212",
"allocationId": "2285e1cd-3c0b-11ea-81c5-02784156a6b6",
"attachmentId": "2ea48a0a-0797-40d5-a4ba-dee4203cb20b",
"linkedAttachmentIds": [
"2ea48a0a-0797-40d5-a4ba-dee4203cb20b",
"9ee79df3-bcac-4ff2-49f8-3cff82031362"
],
"label": "WO00001",
"description": "work order description",
"workOrderStatus": "Draft",
"assignedId": "8702e32d-67e9-142c-dcb9-1435390ab18a",
"start": "2018-12-12",
"end": "2019-01-20",
"startTime": null,
"endTime": null,
"includesTax": 1,
"tax": "0.00",
"sellTaxTotal": "0.00",
"costTaxTotal": "0.00",
"materialCostTotal": "6850.80",
"labourCostTotal": "5973.00",
"materialSellTotal": "1914.00",
"labourSellTotal": "103.40",
"sellTotal": 2017.4,
"costTotal": 12823.8,
"workOrderItems": [
{
"id": "9ed88642-881a-6ffd-f537-b693b67be563",
"trade": "Automatic Gates",
"description": "asdfdsfdsfdsaf",
"materialQuantity": null,
"materialUnit": "ea",
"labourQuantity": null,
"labourUnit": "ea",
"categoryLabel": "Kitchen",
"materialCostTotal": "1456.40",
"materialSellTotal": "1456.40",
"labourCostTotal": "46.20",
"labourSellTotal": "46.20",
"start": null,
"end": null,
"includesTax": true,
"includesMaterial": true,
"includesLabour": true,
"tax": "0.00",
"version": 1480547175
},
{
"id": "52a6a219-aa66-a260-bdb6-4ca9e7efe359",
"trade": "Automatic Gates",
"description": "asdfasdfasdfasfd",
"materialQuantity": null,
"materialUnit": null,
"labourQuantity": null,
"labourUnit": null,
"categoryLabel": "Kitchen",
"materialCostTotal": "457.60",
"materialSellTotal": "457.60",
"labourCostTotal": "57.20",
"labourSellTotal": "57.20",
"start": null,
"end": null,
"includesTax": true,
"includesMaterial": true,
"includesLabour": true,
"tax": "0.00",
"version": 1480547175
}
],
"filterTags": [],
"createdAt": "2018-12-01 09:06:15",
"createdBy": "Paul Grant",
"updatedAt": "2018-12-01 09:07:16",
"updatedBy": "Paul Grant",
"version": 1480547236
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Work Order
requires authentication
Example request:
curl --request PUT \
"https://www.primeeco.tech/api.prime/v2/work-orders/3" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/work-orders/3"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Filter Tags
requires authentication
Example request:
curl --request PATCH \
"https://www.primeeco.tech/api.prime/v2/work-orders/3/relationships/filterTags" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json" \
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/work-orders/3/relationships/filterTags"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List Upstream Work Orders
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/upstream-work-orders" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/upstream-work-orders"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Upstream Work Order
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/upstream-work-orders/et" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/upstream-work-orders/et"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Workflow
List Workflows
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/workflows" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/workflows"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Workflow
requires authentication
Example request:
curl --request GET \
--get "https://www.primeeco.tech/api.prime/v2/workflows/1" \
--header "Authorization: Bearer {access_token}" \
--header "Accept: application/vnd.api.v2+json" \
--header "Content-Type: application/json"
const url = new URL(
"https://www.primeeco.tech/api.prime/v2/workflows/1"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Accept": "application/vnd.api.v2+json",
"Content-Type": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"type": "workflow",
"id": "6f12b3c2-d842-e958-865b-ca5804e90d06",
"attributes": {
"name": "Desktop Quote",
"description": "Desktop Quote",
"active": 1,
"version": 1488709490
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.