Service order statuses

Custom service order statuses ("In Progress", "Waiting for Parts", "Order Complete"...). Referenced by statusid on a service order; complete marks the statuses that mean the work is done.

The object#

FieldTypeDescription
idread-onlyintegerNolaPro id.
descriptionstring(50)The status name shown on the service order screen ("Waiting for Parts", "Order Complete").
sortorderintegerDisplay order in the status dropdown, low first.
entrydateread-onlystringWhen the status option was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
completebooleanThis status means the work is done. The order list treats an order carrying a complete status as finished.
externalidstring(100)Your own key. Scoped to your company.

Endpoints#

POST/orderstatusoptions/batch 207

Create many.

Requires scope orders:write.

Body array
FieldTypeDescription
idread-onlyintegerNolaPro id.
descriptionstring(50)The status name shown on the service order screen ("Waiting for Parts", "Order Complete").
sortorderintegerDisplay order in the status dropdown, low first.
entrydateread-onlystringWhen the status option was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
completebooleanThis status means the work is done. The order list treats an order carrying a complete status as finished.
externalidstring(100)Your own key. Scoped to your company.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/orderstatusoptions/batch' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '[
    {
        "description": "Example description",
        "sortorder": 1,
        "complete": false
    }
]'
GET/orderstatusoptions 200403

List service order statuses.

Requires scope orders:read.

Parameters
NameInTypeNotes
descriptionquerystringPartial match, case insensitive.
cancelquerystringDefaults to false. Pass true or any.
modifiedsincequerystringDelta polling.
externalidquerystringExact match on your own key.
When it fails
StatusCodeMeaning
403insufficient_scopeToken lacks read scope.
curl \
  'https://acme.nolapro.com/!/api/v2/orderstatusoptions' \
  -H 'Authorization: Bearer $NP_TOKEN'
POST/orderstatusoptions 201400

Create.

Requires scope orders:write.

Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
descriptionstring(50)The status name shown on the service order screen ("Waiting for Parts", "Order Complete").
sortorderintegerDisplay order in the status dropdown, low first.
entrydateread-onlystringWhen the status option was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
completebooleanThis status means the work is done. The order list treats an order carrying a complete status as finished.
externalidstring(100)Your own key. Scoped to your company.
When it fails
StatusCodeMeaning
400invalid_requestA required field was missing.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/orderstatusoptions' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "description": "Example description",
    "sortorder": 1,
    "complete": false
}'
Response 201
{
    "description": "Example description",
    "sortorder": 1,
    "complete": false
}
GET/orderstatusoptions/{id} 200404

Retrieve one record.

Requires scope orders:read.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl \
  'https://acme.nolapro.com/!/api/v2/orderstatusoptions/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "description": "Example description",
    "sortorder": 1,
    "complete": false
}
PATCH/orderstatusoptions/{id} 200404

Update.

Requires scope orders:write.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
descriptionstring(50)The status name shown on the service order screen ("Waiting for Parts", "Order Complete").
sortorderintegerDisplay order in the status dropdown, low first.
entrydateread-onlystringWhen the status option was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
completebooleanThis status means the work is done. The order list treats an order carrying a complete status as finished.
externalidstring(100)Your own key. Scoped to your company.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl -X PATCH \
  'https://acme.nolapro.com/!/api/v2/orderstatusoptions/104' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "description": "Example description",
    "sortorder": 1,
    "complete": false
}'
Response 200
{
    "description": "Example description",
    "sortorder": 1,
    "complete": false
}
DELETE/orderstatusoptions/{id} 200404

Cancel.

Requires scope orders:cancel.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl -X DELETE \
  'https://acme.nolapro.com/!/api/v2/orderstatusoptions/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "description": "Example description",
    "sortorder": 1,
    "complete": false
}