Skip to content

Passes REST API

All pass operations use the REST API at /api/v2.

For a guided walkthrough, see the Working with Passes guide.

MethodEndpointDescription
GET/api/v2/organisations/{orgId}/passes/{passKey}Retrieve a pass type by key
GET/api/v2/organisations/{orgId}/passes/{passKey}/{passId}Retrieve a specific pass
PUT/api/v2/organisations/{orgId}/passes/{passKey}/{passId}Update a pass
DELETE/api/v2/organisations/{orgId}/passes/{passKey}/{passId}Delete a pass
ParameterDescription
orgIdOrganisation UUID
passKeyThe pass type’s unique key (set when creating the pass type in the UI)
passIdThe individual pass’s ID
PropertyTypeRequiredDescription
attributesobjectYesKey-value pairs (e.g. driver name, vehicle rego)
urlstringYesURL for additional details
validityDateRangeNo{ begin, end } — validity period
PropertyTypeDescription
idstringPass identifier
attributesobjectKey-value attributes
validityobject{ begin, end } date range
urlstringAssociated URL
createdAtstringISO 8601 creation timestamp
modifiedAtstringISO 8601 last modified timestamp
{
"id": "0400102390",
"attributes": {
"Driver Name": "Mack",
"Rego": "XYZ 123"
},
"validity": {
"begin": "2024-01-01T00:00Z",
"end": "2024-12-01T00:00Z"
},
"url": "https://example.com/passes/0400102390",
"createdAt": "2023-09-11T23:31:50.69",
"modifiedAt": "2023-09-12T02:05:22.073"
}