{"info":{"_postman_id":"1ed018ce-fe41-4af2-9709-2f62930f6225","name":"API Emergency Stop","description":"<html><head></head><body><p>This API makes available the emergency stop service.</p>\n<p>It can:</p>\n<ul>\n<li><p>Send commands to vehicles by 3 different types of identifiers, as batch.</p>\n</li>\n<li><p>Query batch status.</p>\n</li>\n<li><p>Query vehicle status.</p>\n</li>\n</ul>\n<p><strong>Authentication:</strong> All endpoints require (except login):</p>\n<ul>\n<li><p><code>Authorization: Bearer</code> — Waypoint user session token (obtained by the login endpoint)</p>\n</li>\n<li><p><code>id-client:</code> — ID of the client the vehicles belong to</p>\n</li>\n<li><p><code>x-api-key:</code> — API key assigned to the client</p>\n</li>\n</ul>\n<p><strong>Endpoints resume:</strong></p>\n<ul>\n<li><p><a href=\"https://api.waypoint.cl/\">https://api.waypoint.cl/</a>parada-emergencia/vehicles</p>\n<ul>\n<li><p>Request Type: POST</p>\n</li>\n<li><p>Security: yes</p>\n<ul>\n<li><p>id-client (<code>int</code> from authorized client)</p>\n</li>\n<li><p>Bearer token (from user obtained through login)</p>\n</li>\n<li><p>api-key (given to the client)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><a href=\"https://api.waypoint.cl/\">https://api.waypoint.cl/</a>parada-emergencia/vehicles-status</p>\n<ul>\n<li><p>Request Type: POST</p>\n</li>\n<li><p>Security: yes</p>\n<ul>\n<li><p>id-client (<code>int</code> from authorized client)</p>\n</li>\n<li><p>Bearer token (from user obtained through login)</p>\n</li>\n<li><p>api-key (given to the client)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><a href=\"https://api.waypoint.cl/\">https://api.waypoint.cl/</a>parada-emergencia/batch-status</p>\n<ul>\n<li><p>Request Type: GET</p>\n</li>\n<li><p>Security: yes</p>\n<ul>\n<li><p>id-client (<code>int</code> from authorized client)</p>\n</li>\n<li><p>Bearer token (from user obtained through login)</p>\n</li>\n<li><p>api-key (given to the client)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"50892995","collectionId":"1ed018ce-fe41-4af2-9709-2f62930f6225","publishedId":"2sBXigKYVe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-07-15T13:41:46.000Z"},"item":[{"name":"Login","id":"830b2ef5-e012-427c-9b61-7c95483f2afc","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": \"{{user}}\",\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/auth/login","description":"<p>Retrieves the Waypoint user session token. The returned token must be used as the value of the <code>Authorization</code> header (with the <code>Bearer</code> prefix) in all other endpoints.</p>\n<p>Credentials are declared in the body.</p>\n<h2 id=\"responses\">Responses:</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Request processed successfully. The AccessToken is returned in the body.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>An error has occurred due to missing or incorrect parameters.</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><strong>Response example code 200:</strong></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{    \"AccessToken\": \"eyJraWQiOiJEREhzTFdYUURUOGpBYSt4...\"}\n\n</code></pre>\n<ul>\n<li><strong>Example of a 400 code response due to missing parameters or user not found:</strong></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{    \"error\": {}}\n\n</code></pre>\n<ul>\n<li><strong>Example of a 400 code response for incorrect password:</strong></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{    \"error\": \"Invalid password for user USER\"}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["auth","login"],"host":["api","waypoint","cl"],"query":[],"variable":[]}},"response":[{"id":"3c9e7cac-82b3-437e-babf-247685b7facd","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user\": \"user1\",\n    \"password\": \"password1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"AccessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\"\n}"}],"_postman_id":"830b2ef5-e012-427c-9b61-7c95483f2afc"},{"name":"LOCK/UNLOCK  Vehicles","id":"44cbed04-3280-4c36-aa86-11153c2f746e","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"LOCK\",\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles","description":"<p>Sends an <strong>emergency stop activation (LOCK)</strong> or <strong>deactivation (UNLOCK)</strong> command for one or more vehicles, identified by 3 possible options: plate, VIN, or internal_code. It returns a batch id needed for the batch_status endpoint in order to track the status of the commands. It also return a list of vehicles that failed validation at some point.</p>\n<p><strong>Body fields:</strong></p>\n<ul>\n<li><p><code>action</code>: <code>LOCK</code> (stop) or <code>UNLOCK</code> (resume)</p>\n</li>\n<li><p><code>id_type</code>: <code>PLATE</code> (license plate), <code>INTERNAL_CODE</code> (internal name), <code>VIN</code> (chassis number)</p>\n</li>\n<li><p><code>vehicles</code>: array of identifiers matching the chosen <code>id_type</code></p>\n</li>\n</ul>\n<p>The <code>response</code> examples show the variants by <code>id_type</code> and the possible status codes.</p>\n<h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header</strong></th>\n<th><strong>¿Required?</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>x-api-key</code></td>\n<td>Always</td>\n<td>String</td>\n<td>API key</td>\n</tr>\n<tr>\n<td><code>id-client</code></td>\n<td>Always</td>\n<td>Integer</td>\n<td>ID from authorized client</td>\n</tr>\n<tr>\n<td><code>Authorization</code></td>\n<td>Always</td>\n<td>String</td>\n<td><code>Bearer</code> from user</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"body\">Body</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Param</strong></th>\n<th><strong>¿Required?</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>action</code></td>\n<td>Always</td>\n<td>String</td>\n<td>Action LOCK or UNLOCK</td>\n</tr>\n<tr>\n<td><code>id_type</code></td>\n<td>Always</td>\n<td>String</td>\n<td>Identifier type for Vehicle. Can be PLATE, VIN or INTERNAL_CODE</td>\n</tr>\n<tr>\n<td><code>vehicles</code></td>\n<td>Always</td>\n<td>Array</td>\n<td>Vehicles array that will recieve the action, identified by the corresponding <code>id_type</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>202</td>\n<td>Returns<code>batch_id</code> and <code>failures</code>. If all vehicles fail, <code>batch_id</code> will be empty</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Missing/empty body</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Invalid <code>action</code> or <code>id_type</code> or empty <code>vehicles</code> array</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Missing Authorization header</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User has no access to <code>id-client</code></td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal server error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Fields</th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>batch_id</code></td>\n<td>String representing the LOCK/UNLOCK request for the vehicles array. Can be used to query the status of the request in the <code>batch-status</code> endpoint.</td>\n</tr>\n<tr>\n<td><code>failures</code></td>\n<td>Array that contains vehicles that failed to create the LOCK/UNLOCK request.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["parada-emergencia","vehicles"],"host":["api","waypoint","cl"],"query":[],"variable":[]}},"response":[{"id":"2fab0e9b-9532-4db6-96fa-b1de5d9094ce","name":"202 Accepted — LOCK by PLATE (all resolved)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"LOCK\",\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch_id\": \"aae37fb3-5da0-440d-af58-0d7b74972419\",\n  \"failures\": []\n}"},{"id":"fcaccd08-885d-42e4-8448-e905db195ee1","name":"202 Accepted — LOCK by PLATE (with failures)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"LOCK\",\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch_id\": \"aae37fb3-5da0-440d-af58-0d7b74972419\",\n  \"failures\": [\n    {\n      \"vehicle\": \"EFGH34\",\n      \"reason\": \"VEHICLE_NOT_FOUND_IN_SYSTEM\"\n    }\n  ]\n}"},{"id":"55162b70-e34c-409c-8e41-5605e771d583","name":"202 Accepted — LOCK by INTERNAL_CODE","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"LOCK\",\n  \"id_type\": \"INTERNAL_CODE\",\n  \"vehicles\": [\n    \"CAMION-01\",\n    \"CAMION-02\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch_id\": \"aae37fb3-5da0-440d-af58-0d7b74972419\",\n  \"failures\": []\n}"},{"id":"c47ab5fa-553e-423b-9e39-beac422d13ab","name":"202 Accepted — LOCK by VIN","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"LOCK\",\n  \"id_type\": \"VIN\",\n  \"vehicles\": [\n    \"9BWZZZ377VT004251\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch_id\": \"aae37fb3-5da0-440d-af58-0d7b74972419\",\n  \"failures\": []\n}"},{"id":"2107427f-8ce8-4496-aabb-b0e5f7bc60c9","name":"202 Accepted — UNLOCK by PLATE","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"UNLOCK\",\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch_id\": \"aae37fb3-5da0-440d-af58-0d7b74972419\",\n  \"failures\": []\n}"},{"id":"0b322b7a-f7ba-4506-9f8e-ec780cbc3fda","name":"202 Accepted — UNLOCK by INTERNAL_CODE","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"UNLOCK\",\n  \"id_type\": \"INTERNAL_CODE\",\n  \"vehicles\": [\n    \"CAMION-01\",\n    \"CAMION-02\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch_id\": \"aae37fb3-5da0-440d-af58-0d7b74972419\",\n  \"failures\": []\n}"},{"id":"d6bd07d9-a254-4c35-a259-4c1ad612e487","name":"202 Accepted — UNLOCK by VIN","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"UNLOCK\",\n  \"id_type\": \"VIN\",\n  \"vehicles\": [\n    \"9BWZZZ377VT004251\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch_id\": \"aae37fb3-5da0-440d-af58-0d7b74972419\",\n  \"failures\": []\n}"},{"id":"c6cab955-b4f1-407b-8963-8e2574bcf9a9","name":"400 Bad Request — invalid body","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"LOCKED\",\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"action must be LOCK or UNLOCK\"\n}"},{"id":"62b71a8c-a1ff-4ca1-b2cd-e14889be885b","name":"401 Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"LOCK\",\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Authorization header required\"\n}"},{"id":"83003082-cc14-4ddb-bd24-21ae42bcf7f8","name":"403 Forbidden — no access to client","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"LOCK\",\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"You do not have access to the specified client\"\n}"}],"_postman_id":"44cbed04-3280-4c36-aa86-11153c2f746e"},{"name":"Query vehicles status","id":"9024ca83-1bf1-4055-9a76-eff14aec2472","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles-status","description":"<p>Queries the last emergency stop status for one or more vehicles.</p>\n<p><strong>Body fields:</strong></p>\n<ul>\n<li><p><code>id_type</code>: <code>PLATE</code> (license plate), <code>INTERNAL_CODE</code> (internal name), <code>VIN</code> (chassis number)</p>\n</li>\n<li><p><code>vehicles</code>: array of identifiers</p>\n</li>\n</ul>\n<p>Vehicles not found in the system are returned in <code>not_found</code>.</p>\n<h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header</strong></th>\n<th><strong>¿Required?</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>x-api-key</code></td>\n<td>Always</td>\n<td>String</td>\n<td>API key</td>\n</tr>\n<tr>\n<td><code>id-client</code></td>\n<td>Always</td>\n<td>Integer</td>\n<td>ID from authorized client</td>\n</tr>\n<tr>\n<td><code>Authorization</code></td>\n<td>Always</td>\n<td>String</td>\n<td><code>Bearer</code> from user</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"body\">Body</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Param</strong></th>\n<th><strong>¿Required?</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id_type</code></td>\n<td>Always</td>\n<td>String</td>\n<td>Identifier type for Vehicle. Can be PLATE, VIN or INTERNAL_CODE</td>\n</tr>\n<tr>\n<td><code>vehicles</code></td>\n<td>Always</td>\n<td>Array</td>\n<td>Vehicles array that will recieve the action, identified by the corresponding <code>id_type</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Returns an array with the <code>data</code> of the vehicles queried. Also a <code>not_found</code> array with vehicles with no information.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Missing/empty body</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Invalid <code>action</code> or <code>id_type</code> or empty <code>vehicles</code> array</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Missing Authorization header</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User has no access to <code>id-client</code></td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal server error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Fields</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data</code></td>\n<td>Array with the data of vehicles queried.</td>\n</tr>\n<tr>\n<td><code>not_found</code></td>\n<td>Array that contains vehicles that were not found.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"data-field-description\">Data field description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Fields</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>vehicle</code></td>\n<td>Has descriptive information of the vehicle</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>Type of command of the last request</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>Status of the last command requested</td>\n</tr>\n<tr>\n<td><code>requested_at</code></td>\n<td>Epoch of the request creation</td>\n</tr>\n<tr>\n<td><code>sent_at</code></td>\n<td>Epoch of the request being sent to the device</td>\n</tr>\n<tr>\n<td><code>cancelled_at</code></td>\n<td>Epoch of the request being cancelled (if that's the case)</td>\n</tr>\n<tr>\n<td><code>executed_at</code></td>\n<td>Epoch of the execution of the command</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["parada-emergencia","vehicles-status"],"host":["api","waypoint","cl"],"query":[],"variable":[]}},"response":[{"id":"ee9f6410-22f2-4d44-aa38-63844094e3a0","name":"200 OK — by PLATE","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles-status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"vehicle\": {\n        \"id\": 4095,\n        \"id_legacy\": 4094,\n        \"plate\": \"ABCD12\",\n        \"vin\": null,\n        \"internal_code\": \"PGTIZ2 F130\"\n      },\n      \"type\": \"LOCK\",\n      \"status\": \"EXECUTED\",\n      \"requested_at\": 1744913141667,\n      \"sent_at\": 1744913141667,\n      \"cancelled_at\": 0,\n      \"executed_at\": 1744913141667\n    }\n  ],\n  \"not_found\": [\n    \"EFGH34\",\n    \"...\"\n  ]\n}"},{"id":"20163c72-0fb3-4a42-8acd-fa6d176111b3","name":"200 OK — by VIN","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id_type\": \"VIN\",\n  \"vehicles\": [\n    \"9BWZZZ377VT004251\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles-status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"vehicle\": {\n        \"id\": 4095,\n        \"id_legacy\": 4094,\n        \"plate\": \"ABCD12\",\n        \"vin\": null,\n        \"internal_code\": \"PGTIZ2 F130\"\n      },\n      \"type\": \"LOCK\",\n      \"status\": \"EXECUTED\",\n      \"requested_at\": 1744913141667,\n      \"sent_at\": 1744913141667,\n      \"cancelled_at\": 0,\n      \"executed_at\": 1744913141667\n    }\n  ],\n  \"not_found\": [\n    \"EFGH34\"\n  ]\n}"},{"id":"6f5d2e26-e037-4089-985e-bb77bca803de","name":"200 OK — by INTERNAL_CODE","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id_type\": \"INTERNAL_CODE\",\n  \"vehicles\": [\n    \"CAMION-01\",\n    \"CAMION-02\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles-status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"vehicle\": {\n        \"id\": 4095,\n        \"id_legacy\": 4094,\n        \"plate\": \"ABCD12\",\n        \"vin\": null,\n        \"internal_code\": \"PGTIZ2 F130\"\n      },\n      \"type\": \"LOCK\",\n      \"status\": \"EXECUTED\",\n      \"requested_at\": 1744913141667,\n      \"sent_at\": 1744913141667,\n      \"cancelled_at\": 0,\n      \"executed_at\": 1744913141667\n    }\n  ],\n  \"not_found\": [\n    \"EFGH34\"\n  ]\n}"},{"id":"3dec8cae-1153-43a3-97d6-1f5f0467a85b","name":"200 OK — No vehicles found","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles-status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [],\n  \"not_found\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}"},{"id":"03f8b43f-7e89-48cd-b34e-e068fda20bf9","name":"400 Bad Request — invalid body","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles-status"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"id_type must be INTERNAL_CODE, PLATE or VIN\"\n}"},{"id":"659bdff5-4a69-4ca5-ab8f-167500928ab8","name":"401 Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles-status"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Authorization header required\"\n}"},{"id":"29f745b8-57ba-4a2d-b190-c447d1088ec0","name":"403 Forbidden — no access to client","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id_type\": \"PLATE\",\n  \"vehicles\": [\n    \"ABCD12\",\n    \"EFGH34\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.waypoint.cl/parada-emergencia/vehicles-status"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"You do not have access to the specified client\"\n}"}],"_postman_id":"9024ca83-1bf1-4055-9a76-eff14aec2472"},{"name":"Query batch status","id":"3048f0f8-da7c-4a2d-aae1-18513f02ecc9","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"}],"url":"https://api.waypoint.cl/parada-emergencia/batch-status?batch_id={{batch_id}}","description":"<p>Queries the processing status of a batch previously submitted via <code>POST /vehicles</code>.</p>\n<p>Use the <code>batch_id</code> returned in the 202 response from the <code>vehicles</code> endpoint.</p>\n<p><strong>Query params:</strong></p>\n<ul>\n<li><code>batch_id</code> (required): batch UUID</li>\n</ul>\n<h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header</strong></th>\n<th><strong>¿Required?</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>x-api-key</code></td>\n<td>Always</td>\n<td>String</td>\n<td>API key</td>\n</tr>\n<tr>\n<td><code>id-client</code></td>\n<td>Always</td>\n<td>Integer</td>\n<td>ID from authorized client</td>\n</tr>\n<tr>\n<td><code>Authorization</code></td>\n<td>Always</td>\n<td>String</td>\n<td><code>Bearer</code> from user</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"query-params\">Query Params</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Param</strong></th>\n<th><strong>¿Required?</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>batch_id</code></td>\n<td>Always</td>\n<td>String</td>\n<td>UUID returned by POST /vehicles</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Returns the overall status of the batch, and also an <code>requests</code> array with the specifics of each vehicle that was processed.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Parameter batch_id required</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authorization header required</td>\n</tr>\n<tr>\n<td>403</td>\n<td>You do not have access to the specified client</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal server error</td>\n</tr>\n<tr>\n<td>502</td>\n<td>Error fetching batch status / Error fetching vehicle data</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Fields</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>batch_id</code></td>\n<td>Batch UUID</td>\n</tr>\n<tr>\n<td><code>batch_status</code></td>\n<td>Overall status of the batch. Can be COMPLETED (all requests where executed), IN_PROGRESS (at least on request is not completed), CANCELED (all requests failed at some point), FAILED (none in progress and more than half failed), and PARTIALLY_COMPLETED (none in progress and less than half failed)</td>\n</tr>\n<tr>\n<td><code>requests</code></td>\n<td>Array of the requests data</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"requests-field-description\">Requests field description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Fields</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Vehicle id</td>\n</tr>\n<tr>\n<td><code>plate</code></td>\n<td>Plate of the vehicle</td>\n</tr>\n<tr>\n<td><code>vin</code></td>\n<td>Chassis of the vehicle</td>\n</tr>\n<tr>\n<td><code>internal_code</code></td>\n<td>Internal code of the vehicle</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>Status of the vehicle request</td>\n</tr>\n<tr>\n<td><code>command_type</code></td>\n<td>Command sent to the vehicle device</td>\n</tr>\n<tr>\n<td><code>platform</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>cancelled_at</code></td>\n<td>Epoch of the request being cancelled (if that's the case)</td>\n</tr>\n<tr>\n<td><code>executed_at</code></td>\n<td>Epoch of the execution of the command</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["parada-emergencia","batch-status"],"host":["api","waypoint","cl"],"query":[{"description":{"content":"<p>UUID returned by POST /vehicles in the batch_id field</p>\n","type":"text/plain"},"key":"batch_id","value":"{{batch_id}}"}],"variable":[]}},"response":[{"id":"178362fa-c516-4421-a52d-2cf943833517","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://api.waypoint.cl/parada-emergencia/batch-status?batch_id={{batch_id}}","protocol":"https","host":["api","waypoint","cl"],"path":["parada-emergencia","batch-status"],"query":[{"key":"batch_id","value":"{{batch_id}}","description":"UUID returned by POST /vehicles in the batch_id field"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch_id\": \"aae37fb3-5da0-440d-af58-0d7b74972419\",\n  \"batch_status\": \"IN_PROGRESS\",\n  \"requests\": [\n    {\n      \"id\": 101,\n      \"plate\": \"ABCD12\",\n      \"vin\": \"KS918KA7129LN\",\n      \"internal_code\": null,\n      \"status\": \"EXECUTED\",\n      \"command_type\": \"LOCK\",\n      \"platform\": \"ANDROID\",\n      \"requested_at\": 1743090000000,\n      \"executed_at\": 1743090005000,\n      \"cancelled_at\": 0\n    },\n    {\n      \"id\": 102,\n      \"plate\": \"EFGH34\",\n      \"vin\": null,\n      \"internal_code\": \"F130 EFGH34\",\n      \"status\": \"CREATED\",\n      \"command_type\": \"LOCK\",\n      \"platform\": \"ANDROID\",\n      \"requested_at\": 1743090000000,\n      \"executed_at\": 0,\n      \"cancelled_at\": 0\n    }\n  ]\n}"},{"id":"549490c5-bdff-46f4-9fc6-c8287824bbb6","name":"400 Bad Request — missing batch_id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://api.waypoint.cl/parada-emergencia/batch-status?batch_id={{batch_id}}","protocol":"https","host":["api","waypoint","cl"],"path":["parada-emergencia","batch-status"],"query":[{"key":"batch_id","value":"{{batch_id}}","description":"UUID returned by POST /vehicles in the batch_id field"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Parameter batch_id required\"\n}"},{"id":"acec866f-9881-471a-8952-624ac39eb299","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://api.waypoint.cl/parada-emergencia/batch-status?batch_id={{batch_id}}","protocol":"https","host":["api","waypoint","cl"],"path":["parada-emergencia","batch-status"],"query":[{"key":"batch_id","value":"{{batch_id}}","description":"UUID returned by POST /vehicles in the batch_id field"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Authorization header required\"\n}"},{"id":"fd91bd2e-fa60-4969-b4ff-a5aa8245f333","name":"403 Forbidden — no access to client","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://api.waypoint.cl/parada-emergencia/batch-status?batch_id={{batch_id}}","protocol":"https","host":["api","waypoint","cl"],"path":["parada-emergencia","batch-status"],"query":[{"key":"batch_id","value":"{{batch_id}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"You do not have access to the specified client\"\n}"},{"id":"7a9fd708-464e-40bc-af3d-d54d9a867099","name":"502 Bad Gateway — backend unavailable","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"id-client","value":"{{id-client}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://api.waypoint.cl/parada-emergencia/batch-status?batch_id={{batch_id}}","protocol":"https","host":["api","waypoint","cl"],"path":["parada-emergencia","batch-status"],"query":[{"key":"batch_id","value":"{{batch_id}}","description":"UUID returned by POST /vehicles in the batch_id field"}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Error fetching batch status\"\n}"}],"_postman_id":"3048f0f8-da7c-4a2d-aae1-18513f02ecc9"}]}