{"id":2233,"date":"2023-12-20T20:37:43","date_gmt":"2023-12-20T20:37:43","guid":{"rendered":"https:\/\/developers.maplink.global\/creacion-de-solicitudes-para-la-freight-api\/"},"modified":"2025-08-12T20:48:39","modified_gmt":"2025-08-12T20:48:39","slug":"creacion-de-solicitudes-para-la-freight-api","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/es\/creacion-de-solicitudes-para-la-freight-api\/","title":{"rendered":"Creaci\u00f3n de solicitudes para la Freight API"},"content":{"rendered":"\n<p>Antes de comenzar a utilizar la API, deber\u00e1 <a href=\"https:\/\/developers.maplink.global\/es\/como-se-genera-el-token-para-la-autenticacion\/\" data-type=\"post\" data-id=\"999\">obtener el <em>token de autenticaci\u00f3n<\/em><\/a>. <\/p>\n\n\n\n<p>Se requerir\u00e1n las siguientes <em>headers<\/em>, donde la palabra <strong><em>token <\/em><\/strong>debe sustituirse por el token obtenido en el proceso de autenticaci\u00f3n:<\/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>En el <em>body <\/em>se enviar\u00e1n todos los par\u00e1metros para calcular el flete m\u00ednimo de la ruta.<\/p>\n\n\n\n<p>La Freight API puede utilizarse de 3 formas distintas:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Endpoint independiente<\/strong><\/h2>\n\n\n\n<p>Recomendado para usuarios que utilizan servicios de enrutamiento de terceros.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.maplink.global\/freight\/v1\/calculations\">https:\/\/api.maplink.global\/freight\/v1\/calculations<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark><\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Trip API + Freight API<\/strong><\/h2>\n\n\n\n<p>La Freight API puede utilizarse junto con la <a href=\"https:\/\/developers.maplink.global\/es\/creacion-de-solicitudes-para-la-api-trip\/\" data-type=\"post\" data-id=\"1074\">Trip API<\/a>, tanto de forma sincr\u00f3nica como asincr\u00f3nica. La informaci\u00f3n necesaria para calcular el flete se a\u00f1adir\u00e1 en la solicitud a la Trip API<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.maplink.global\/trip\/v2\/calculations\">https:\/\/api.maplink.global\/trip\/v2\/calculations<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark><\/strong><br>Trip sincr\u00f3nica<br><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/trip\/v1\/problems\">https:\/\/api.maplink.global\/trip\/v1\/problems<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark><\/strong><br>Trip as\u00edncrona <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Antes de comenzar a utilizar la API, deber\u00e1 obtener el token de autenticaci\u00f3n. Se requerir\u00e1n las siguientes headers, donde la palabra token debe sustituirse por el token obtenido en el proceso de autenticaci\u00f3n: En el body se enviar\u00e1n todos los par\u00e1metros para calcular el flete m\u00ednimo de la ruta. La Freight API puede utilizarse de [&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":[153],"tags":[],"class_list":["post-2233","post","type-post","status-publish","format-standard","hentry","category-freight-es"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts\/2233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/comments?post=2233"}],"version-history":[{"count":5,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts\/2233\/revisions"}],"predecessor-version":[{"id":3531,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts\/2233\/revisions\/3531"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/media?parent=2233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/categories?post=2233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/tags?post=2233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}