{"id":2640,"date":"2023-12-18T17:50:56","date_gmt":"2023-12-18T17:50:56","guid":{"rendered":"https:\/\/developers.maplink.global\/error-messages-toll\/"},"modified":"2024-03-01T13:49:18","modified_gmt":"2024-03-01T13:49:18","slug":"error-messages-toll","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/error-messages-toll\/","title":{"rendered":"Error messages &#8211; Toll"},"content":{"rendered":"\n<p>The following table shows all the error messages that can be returned by the API in the response body:<\/p>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Error code<\/strong><\/td><td><strong>Message<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>VALIDATION_FAILED ou VALIDATION_ERROR<\/code><\/td><td><code>{ message: \"\", errors: [ ] }<\/code><\/td><td>Simple validation errors, the array <code>errors<\/code> contains the detailed message for each field containing an invalid value.<\/td><\/tr><tr><td><code>MESSAGE_FORMAT_ERROR<\/code><\/td><td>&#8211;<\/td><td>The request json has errors and could not be processed.<\/td><\/tr><tr><td><code>Validation failed<\/code><\/td><td><code>toll.vehicleType does not have a valid value<\/code><\/td><td>Value at <code>vehicleType<\/code> is not supported.<br\/>The possible values are:<br\/><code>MOTORCYCLE<br\/>CAR<br\/>CAR_WITH_THREE_SIMPLE_AXLES<br\/>CAR_WITH_FOUR_SIMPLE_AXLES<br\/>BUS_WITH_TWO_DOUBLE_AXLES<br\/>BUS_WITH_THREE_DOUBLE_AXLES<br\/>BUS_WITH_FOUR_DOUBLE_AXLES<br\/>BUS_WITH_FIVE_DOUBLE_AXLES<br\/>TRUCK_WITH_NINE_DOUBLE_AXLES<br\/>TRUCK_WITH_TWO_SINGLE_AXIS<br\/>TRUCK_WITH_TWO_DOUBLE_AXLES<br\/>TRUCK_WITH_THREE_DOUBLE_AXLES<br\/>TRUCK_WITH_FOUR_DOUBLE_AXLES<br\/>TRUCK_WITH_FIVE_DOUBLE_AXLES<br\/>TRUCK_WITH_SIX_DOUBLE_AXLES<br\/>TRUCK_WITH_SEVEN_DOUBLE_AXLES<br\/>TRUCK_WITH_EIGHT_DOUBLE_AXLES<br\/>TRUCK_WITH_TEN_DOUBLE_AXLES<\/code><\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Table of possible error messages returned by the API<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The following table shows all the error messages that can be returned by the API in the response body: Error code Message Description VALIDATION_FAILED ou VALIDATION_ERROR { message: &#8220;&#8221;, errors: [ ] } Simple validation errors, the array errors contains the detailed message for each field containing an invalid value. MESSAGE_FORMAT_ERROR &#8211; The request json [&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":[163],"tags":[],"class_list":["post-2640","post","type-post","status-publish","format-standard","hentry","category-toll-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2640","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=2640"}],"version-history":[{"count":1,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2640\/revisions"}],"predecessor-version":[{"id":2641,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2640\/revisions\/2641"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}