Building requests for the Tracking API
Before you can start using the API, you will need to obtain the authentication token.
The following headers will be required, where the word token must be replaced by the token obtained in the authentication process:
--header 'Content-Type: application/json' \ --header 'Authorization: Bearer token'
All the parameters for creating the order to be tracked will be sent in the body .
The Tracking API has the following endpoints:
Manage orders
- https://api.maplink.global/tracking/v1/orders – POST
Used to send the order data. An ID and tracking link will be returned. - https://api.maplink.global/tracking/v1/orders/{{trackingId}} – GET
Used to query an existing request by ID. The term{{trackingId}}
must be replaced by the ID of the order to be updated. - https://api.maplink.global/tracking/v1/orders/{{trackingId}} – DELETE
Used to delete an existing request via the ID. The term{{trackingId}}
must be replaced by the ID of the order to be updated.
Updating orders
The term {{trackingId}}
must be replaced by the ID of the order to be updated.
- https://api.maplink.global/tracking/v1/orders/{{trackingId}}/status – POST
Used to update the order status via its ID. - https://api.maplink.global/tracking/v1/orders/{{trackingId}}/driver – POST
Used for the coordinates and driver data via the order ID.
Manage themes
- https://api.maplink.global/tracking/v1/themes – POST
Used to create a theme to customize the tracking page. - https://api.maplink.global/tracking/v1/themes/{{trackingTheme}} – GET
Used to query a theme by its name. The term{{trackingTheme}}
must be replaced by the name of the topic to be consulted. - https://api.maplink.global/tracking/v1/themes/{{trackingTheme}} – PUT
Used to update a theme by its name. The term{{trackingTheme}}
must be replaced by the name of the topic to be updated. - https://api.maplink.global/tracking/v1/themes/{{trackingTheme}} – DELETE
Used to delete a theme by its name. The term{{trackingTheme}}
must be replaced by the name of the topic to be deleted.