Fleet setup

Orders

Order management

Fetch a list of Orders

GET
https://demo.traccar.org/api/orders

Without params, it returns a list of Orders the user has access to

Parameters

allbooleanquery

Can only be used by admins or managers to fetch all entities

userIdintegerquery

Standard users can use this only with their own userId

excludeAttributesbooleanquery

Skip returning the attributes map

limitintegerquery

Limit the number of returned results

offsetintegerquery

Offset for pagination

keywordstringquery

Search keyword filter

Response

OK

Response fields application/json
Show child attributes
idinteger<int64>

Unique order identifier

uniqueIdstring

External order identifier used by clients

descriptionstring

Additional details about the order assignment

fromAddressstring

Pickup location address

toAddressstring

Destination address

attributesobject

Custom order attributes

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Create an Order

POST
https://demo.traccar.org/api/orders

Body

application/json
idinteger<int64>

Unique order identifier

uniqueIdstring

External order identifier used by clients

descriptionstring

Additional details about the order assignment

fromAddressstring

Pickup location address

toAddressstring

Destination address

attributesobject

Custom order attributes

Response

200OKOrder

OK

Response fields application/json
idinteger<int64>

Unique order identifier

uniqueIdstring

External order identifier used by clients

descriptionstring

Additional details about the order assignment

fromAddressstring

Pickup location address

toAddressstring

Destination address

attributesobject

Custom order attributes

400Bad Request

Bad request

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Fetch an Order

GET
https://demo.traccar.org/api/orders/{id}

Parameters

idintegerrequiredpath

Response

200OKOrder

OK

Response fields application/json
idinteger<int64>

Unique order identifier

uniqueIdstring

External order identifier used by clients

descriptionstring

Additional details about the order assignment

fromAddressstring

Pickup location address

toAddressstring

Destination address

attributesobject

Custom order attributes

401Unauthorized

Unauthorized

404Not Found

Not found

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Update an Order

PUT
https://demo.traccar.org/api/orders/{id}

Body

application/json
idinteger<int64>

Unique order identifier

uniqueIdstring

External order identifier used by clients

descriptionstring

Additional details about the order assignment

fromAddressstring

Pickup location address

toAddressstring

Destination address

attributesobject

Custom order attributes

Parameters

idintegerrequiredpath

Response

200OKOrder

OK

Response fields application/json
idinteger<int64>

Unique order identifier

uniqueIdstring

External order identifier used by clients

descriptionstring

Additional details about the order assignment

fromAddressstring

Pickup location address

toAddressstring

Destination address

attributesobject

Custom order attributes

400Bad Request

Bad request

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Delete an Order

DELETE
https://demo.traccar.org/api/orders/{id}

Parameters

idintegerrequiredpath

Response

204No Content

No Content

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)