{"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":"cb32e624-6dc8-411f-aea8-17fea228a5bf","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":"c125b4e6-6122-4ccf-a965-3245997ab70e","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":"cb32e624-6dc8-411f-aea8-17fea228a5bf"},{"name":"LOCK/UNLOCK  Vehicles","id":"8256289c-6a8d-4126-b118-21d740d16ed9","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":"1c54155e-d48c-4078-8ef6-861a5534ffe8","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":"1109acb8-99bb-49f1-a695-0c5f63b439ab","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":"78ec7ea4-ee56-423d-bfb6-3aa0dbe5a720","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":"f4d17384-6d08-4b76-bdeb-b2bd6de5cd47","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":"4013159e-6c59-440b-943f-217690093cde","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":"118e5ffa-f508-46d4-98d2-8a0073a24c1a","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":"5e60dfc7-36fb-4274-a30d-202b70803dff","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":"4dfad64a-2503-4593-849d-db9b3f66e071","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":"848fd539-62a0-43e3-985a-1fb01345b86e","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":"358fb44c-0e64-42d3-91b8-b9e82cc4e31e","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":"8256289c-6a8d-4126-b118-21d740d16ed9"},{"name":"Query vehicles status","id":"71e9549b-8546-4317-8b9f-6264fe174bf9","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":"a87fbcd9-bc4c-4323-af65-bf5d61ad24f6","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":"0a57e35a-f09d-4f77-b3f3-384a1e5c5400","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":"09987c2d-6d67-4023-8313-4e22809e511c","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":"0f6d58f8-c86b-4da6-9fea-a9dbec8df2ff","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":"6329df4b-3352-4963-b149-d21f0368038e","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":"25a0bd80-1b8b-4735-928e-44d7a0032fcb","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":"3f49d7f0-d328-4c4e-be70-e743641bf6f8","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":"71e9549b-8546-4317-8b9f-6264fe174bf9"},{"name":"Query batch status","id":"63b617a0-4cb6-4436-9ef8-d038176c6bb6","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":"aa2e2aeb-4e17-4e45-9ee8-824aded8a327","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":"26a269b3-4e6e-4f3c-89ac-e14a1a99b753","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":"3de2d12f-112e-4cae-897b-f6b009738af6","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":"961cafaf-2fc2-45d9-89d7-bedf8fc398c6","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":"d79abc31-b42d-4e2f-9474-ac8d3c2c8597","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":"63b617a0-4cb6-4436-9ef8-d038176c6bb6"}]}