{"id":1979,"date":"2023-12-18T17:50:56","date_gmt":"2023-12-18T17:50:56","guid":{"rendered":"https:\/\/developers.maplink.global\/error-messages-toll\/"},"modified":"2024-02-21T17:26:24","modified_gmt":"2024-02-21T17:26:24","slug":"error-messages-toll","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/es\/error-messages-toll\/","title":{"rendered":"Error messages &#8211; Toll"},"content":{"rendered":"\n<p>La siguiente tabla muestra todos los mensajes de error que puede devolver la API en el body de la respuesta:<\/p>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>C\u00f3digo de error<\/strong><\/td><td><strong>Mensaje<\/strong><\/td><td><strong>Descripci\u00f3n<\/strong><\/td><\/tr><tr><td><code>VALIDATION_FAILED ou VALIDATION_ERROR<\/code><\/td><td><code>{ message: \"\", errors: [ ] }<\/code><\/td><td>Errores de validaci\u00f3n simples, la array <code>errors<\/code> contiene el mensaje detallado para cada campo que contiene un valor no v\u00e1lido.<\/td><\/tr><tr><td><code>MESSAGE_FORMAT_ERROR<\/code><\/td><td>&#8211;<\/td><td>El json de la solicitud tiene errores y no ha podido ser procesada.<\/td><\/tr><tr><td><code>Validation failed<\/code><\/td><td><code>toll.vehicleType does not have a valid value<\/code><\/td><td>El valor en <code>vehicleType<\/code> no es compatible.<br\/>Los valores posibles son:<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\">Tabla de posibles mensajes de error devueltos por la API<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>La siguiente tabla muestra todos los mensajes de error que puede devolver la API en el body de la respuesta: C\u00f3digo de error Mensaje Descripci\u00f3n VALIDATION_FAILED ou VALIDATION_ERROR { message: \u00ab\u00bb, errors: [ ] } Errores de validaci\u00f3n simples, la array errors contiene el mensaje detallado para cada campo que contiene un valor no v\u00e1lido. [&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":[149],"tags":[],"class_list":["post-1979","post","type-post","status-publish","format-standard","hentry","category-toll-es"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts\/1979","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=1979"}],"version-history":[{"count":3,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts\/1979\/revisions"}],"predecessor-version":[{"id":2138,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts\/1979\/revisions\/2138"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/media?parent=1979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/categories?post=1979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/tags?post=1979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}