{"id":2842,"date":"2023-12-22T21:41:29","date_gmt":"2023-12-22T21:41:29","guid":{"rendered":"https:\/\/developers.maplink.global\/building-requests-for-the-tracking-api\/"},"modified":"2025-08-12T20:42:54","modified_gmt":"2025-08-12T20:42:54","slug":"building-requests-for-the-tracking-api","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/building-requests-for-the-tracking-api\/","title":{"rendered":"Building requests for the Tracking API"},"content":{"rendered":"\n<p>Before you can start using the API, you will need to <a href=\"https:\/\/developers.maplink.global\/en\/how-do-i-generate-the-token-for-authentication\/\" data-type=\"post\" data-id=\"999\">obtain the <em>authentication token<\/em><\/a>. <\/p>\n\n\n\n<p>The following <em>headers <\/em>will be required, where the word <strong><em>token <\/em><\/strong>must be replaced by the token obtained in the authentication process:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">--header 'Content-Type: application\/json' \\\n--header 'Authorization: Bearer token'<\/pre>\n\n\n\n<p>All the parameters for creating the order to be tracked will be sent in the <em>body <\/em>.<\/p>\n\n\n\n<p>The Tracking API has the following endpoints:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Manage orders<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.maplink.global\/tracking\/v1\/orders\">https:\/\/api.maplink.global\/tracking\/v1\/orders<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark> <br><\/strong>Used to send the order data. An ID and tracking link will be returned.<br><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/tracking\/v1\/orders\/%7B%7BtrackingId%7D%7D\">https:\/\/api.maplink.global\/tracking\/v1\/orders\/<strong>{{trackingId}}<\/strong><\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">GET<\/mark> <br><\/strong>Used to query an existing request by ID. The term <code>{{trackingId}}<\/code><strong> <\/strong>must be replaced by the ID of the order to be updated.<br><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/tracking\/v1\/orders\/%7B%7BtrackingId%7D%7D\">https:\/\/api.maplink.global\/tracking\/v1\/orders\/<strong>{{trackingId}}<\/strong><\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">DELETE<\/mark> <br><\/strong>Used to delete an existing request via the ID. The term <code>{{trackingId}}<\/code><strong> <\/strong>must be replaced by the ID of the order to be updated.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Updating orders<\/strong><\/h2>\n\n\n\n<p>The term <code>{{trackingId}}<\/code><strong> <\/strong> must be replaced by the ID of the order to be updated.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.maplink.global\/tracking\/v1\/orders\/%7B%7BtrackingId%7D%7D\/status\">https:\/\/api.maplink.global\/tracking\/v1\/orders\/<strong>{{trackingId}}<\/strong>\/status<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark> <br><\/strong>Used to update the order status via its ID.<br><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/tracking\/v1\/orders\/%7B%7BtrackingId%7D%7D\/driver\">https:\/\/api.maplink.global\/tracking\/v1\/orders\/<strong>{{trackingId}}<\/strong>\/driver<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark><\/strong><\/mark> <br><\/strong>Used to update the coordinates and driver data via the order ID.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Manage themes<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.maplink.global\/tracking\/v1\/themes\">https:\/\/api.maplink.global\/tracking\/v1\/themes<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark><\/strong><\/mark> <br><\/strong>Used to create a theme to customize the tracking page.<br><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/tracking\/v1\/themes\/%7B%7BtrackingTheme%7D%7D\">https:\/\/api.maplink.global\/tracking\/v1\/themes\/<strong>{{trackingTheme}}<\/strong><\/a><strong> <\/strong>&#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">GET<\/mark> <br><\/strong>Used to query a theme by its name. The term <code>{{trackingTheme}}<\/code><strong> <\/strong>must be replaced by the name of the topic to be consulted.<br><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/tracking\/v1\/themes\/%7B%7BtrackingTheme%7D%7D\">https:\/\/api.maplink.global\/tracking\/v1\/themes\/<strong>{{trackingTheme}}<\/strong><\/a><strong> <\/strong>&#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">PUT<\/mark> <br><\/strong>Used to update a theme by its name. The term <code>{{trackingTheme}}<\/code><strong> <\/strong>must be replaced by the name of the topic to be updated.<br><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/tracking\/v1\/themes\/%7B%7BtrackingTheme%7D%7D\">https:\/\/api.maplink.global\/tracking\/v1\/themes\/<strong>{{trackingTheme}}<\/strong><\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">DELETE<\/mark> <br><\/strong>Used to delete a theme by its name. The term <code>{{trackingTheme}}<\/code><strong> <\/strong>must be replaced by the name of the topic to be deleted.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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: All the parameters for creating the order to be tracked will be sent in the body . The Tracking [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[171],"tags":[],"class_list":["post-2842","post","type-post","status-publish","format-standard","hentry","category-tracking-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/comments?post=2842"}],"version-history":[{"count":2,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2842\/revisions"}],"predecessor-version":[{"id":3529,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2842\/revisions\/3529"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}