{"id":2573,"date":"2024-09-18T16:53:00","date_gmt":"2024-09-18T16:53:00","guid":{"rendered":"https:\/\/developers.maplink.global\/status-codes-trip\/"},"modified":"2024-02-29T17:11:56","modified_gmt":"2024-02-29T17:11:56","slug":"status-codes-trip","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/status-codes-trip\/","title":{"rendered":"Status Codes &#8211; Trip"},"content":{"rendered":"\n<p>Below is the table with the <em>status codes<\/em> for each endpoint available on the Trip API:<\/p>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Code<\/strong><\/td><td><strong>Method<\/strong><\/td><td><strong>Endpoint<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>201<\/td><td>POST<\/td><td><a href=\"https:\/\/api.maplink.global\/trip\/v1\/problems\">https:\/\/api.maplink.global\/trip\/v1\/problems<br\/><br\/><\/a><a href=\"https:\/\/api.maplink.global\/trip\/v2\/calculations\">https:\/\/api.maplink.global\/trip\/v2\/calculations<\/a><\/td><td>Request Created<\/td><\/tr><tr><td>400<\/td><td>POST<\/td><td><a href=\"https:\/\/api.maplink.global\/trip\/v1\/problems\">https:\/\/api.maplink.global\/trip\/v1\/problems<br\/><br\/><\/a><a href=\"https:\/\/api.maplink.global\/trip\/v2\/calculations\">https:\/\/api.maplink.global\/trip\/v2\/calculations<\/a><\/td><td><code>Error: Bad Request<\/code>  (missing parameters, incomplete sending or request with errors)<\/td><\/tr><tr><td>500<\/td><td>POST<\/td><td><a href=\"https:\/\/api.maplink.global\/trip\/v1\/problems\">https:\/\/api.maplink.global\/trip\/v1\/problems<br\/><br\/><\/a><a href=\"https:\/\/api.maplink.global\/trip\/v2\/calculations\">https:\/\/api.maplink.global\/trip\/v2\/calculations<\/a><\/td><td><code>An Internal Server Error occurred<\/code>  (internal error in processing the requisition)<\/td><\/tr><tr><td>200<\/td><td>GET<\/td><td><a href=\"https:\/\/api.maplink.global\/trip\/v1\/solutions\/%7B%7BtripId%7D%7D\">https:\/\/api.maplink.global\/trip\/v1\/solutions\/{<strong>{tripId}}<\/strong><\/a><\/td><td><code>OK<\/code>  (solution found to a problem ID)<\/td><\/tr><tr><td>404<\/td><td>GET<\/td><td><a href=\"https:\/\/api.maplink.global\/trip\/v1\/solutions\/%7B%7BtripId%7D%7D\">https:\/\/api.maplink.global\/trip\/v1\/solutions\/{<strong>{tripId}}<\/strong><\/a><\/td><td><code>NOT FOUND<\/code>  (not found due to incorrect ID or processing not completed)<\/td><\/tr><tr><td>500<\/td><td>GET<\/td><td><a href=\"https:\/\/api.maplink.global\/trip\/v1\/solutions\/%7B%7BtripId%7D%7D\">https:\/\/api.maplink.global\/trip\/v1\/solutions\/{<strong>{tripId}}<\/strong><\/a><\/td><td><code>An Internal Server Error occurred<\/code>  (internal error in processing the requisition)<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Table with all possible statuses returned by each endpoint<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Below is the table with the status codes for each endpoint available on the Trip API: Code Method Endpoint Description 201 POST https:\/\/api.maplink.global\/trip\/v1\/problems https:\/\/api.maplink.global\/trip\/v2\/calculations Request Created 400 POST https:\/\/api.maplink.global\/trip\/v1\/problems https:\/\/api.maplink.global\/trip\/v2\/calculations Error: Bad Request (missing parameters, incomplete sending or request with errors) 500 POST https:\/\/api.maplink.global\/trip\/v1\/problems https:\/\/api.maplink.global\/trip\/v2\/calculations An Internal Server Error occurred (internal error in processing the [&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":[161],"tags":[],"class_list":["post-2573","post","type-post","status-publish","format-standard","hentry","category-trip-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2573","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=2573"}],"version-history":[{"count":1,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2573\/revisions"}],"predecessor-version":[{"id":2574,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2573\/revisions\/2574"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}