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
allbooleanqueryCan only be used by admins or managers to fetch all entities
userIdintegerqueryStandard users can use this only with their own userId
excludeAttributesbooleanquerySkip returning the attributes map
limitintegerqueryLimit the number of returned results
offsetintegerqueryOffset for pagination
keywordstringquerySearch keyword filter
Response
OK
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
uniqueIdstringExternal order identifier used by clients
descriptionstringAdditional details about the order assignment
fromAddressstringPickup location address
toAddressstringDestination address
attributesobjectCustom order attributes
Response
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Fetch an Order
GET
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Update an Order
PUT
Body
application/json
idinteger<int64>Unique order identifier
uniqueIdstringExternal order identifier used by clients
descriptionstringAdditional details about the order assignment
fromAddressstringPickup location address
toAddressstringDestination address
attributesobjectCustom order attributes
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Delete an Order
DELETE
Parameters
idintegerrequiredpathResponse
204No Content
No Content
401Unauthorized
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)