Zones

States and provinces. Static reference data - no writes, no cancel flag, no external ids. Its identifier is zone_id, because that is what the column is called.

The object#

FieldTypeDescription
zone_idread-onlyintegerIdentifier.
zone_codestring(5)Short code.
zone_namestring(32)Full name.
zone_country_idintegerThe country this zone belongs to. Id only - countries is read-only reference data with no code sibling.

Endpoints#

GET/zones 200403

List zones.

Requires scope reference:read.

Parameters
NameInTypeNotes
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
403insufficient_scopeToken lacks zones:read.
curl \
  'https://acme.nolapro.com/!/api/v2/zones' \
  -H 'Authorization: Bearer $NP_TOKEN'
GET/zones/{id} 200404

Retrieve one record.

Requires scope reference:read.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl \
  'https://acme.nolapro.com/!/api/v2/zones/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "zone_id": 33,
    "zone_code": "OH",
    "zone_name": "Ohio",
    "zone_country_id": 223
}