{"info":{"_postman_id":"08d49cc6-b872-435a-a9de-aa7f6222da6d","name":"V2 Gobrax Public Drivers API","description":"<html><head></head><body><h3 id=\"authentication\">Authentication</h3>\n<p>All authenticated requests are verified by API key present in <em>Authentication</em> header. Client needs to inform the key provided by Gobrax as follows:</p>\n<blockquote>\n<p>Authorization: Bearer YOUR-KEY</p>\n</blockquote>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"27100945","collectionId":"08d49cc6-b872-435a-a9de-aa7f6222da6d","publishedId":"2s93eU4FGG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-05-02T22:47:46.000Z"},"item":[{"name":"Get Driver","id":"369f2128-9130-46fe-981e-ae02da322381","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/:id","description":"<h3 id=\"get-driver\">Get Driver</h3>\n<p>Retrieves a driver by its id. The driver must belong to the customer identified by the API key.</p>\n<p>The following data is available:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Identification of the driver on our systems. Use it to get or delete the driver.</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the driver.</td>\n</tr>\n<tr>\n<td>driverDocument</td>\n<td>string</td>\n<td>CPF of the driver.</td>\n</tr>\n<tr>\n<td>companyName</td>\n<td>string</td>\n<td>Name of the company (customer) the driver belongs to.</td>\n</tr>\n<tr>\n<td>companyDocument</td>\n<td>string</td>\n<td>Document (CNPJ) of the company the driver belongs to.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>E-mail of the driver.</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>Phone number of the driver.</td>\n</tr>\n<tr>\n<td>birthDate</td>\n<td>string</td>\n<td>Birth date of the driver.</td>\n</tr>\n<tr>\n<td>observation</td>\n<td>string</td>\n<td>Free text note about the driver.</td>\n</tr>\n<tr>\n<td>canLink</td>\n<td>boolean</td>\n<td>Indicates whether the driver can be linked to a vehicle.</td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>integer</td>\n<td>Identification of the customer the driver belongs to.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","port":"8889","path":["api","v2","drivers",":id"],"host":["gateway-v3","gobrax","com","br"],"query":[],"variable":[{"id":"db078d95-b0fb-4472-8168-b374981dfc80","description":{"content":"<p>(required) Identification of the driver on our systems (the id returned when the driver was created).</p>\n","type":"text/plain"},"type":"any","value":"98765","key":"id"}]}},"response":[{"id":"43839be6-8b3a-4374-abf7-43de1775db42","name":"OK - Driver successfully retrieved","originalRequest":{"method":"GET","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/98765"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 98765,\n    \"driverDocument\": \"11144477735\",\n    \"companyName\": \"Example Transport Ltda\",\n    \"companyDocument\": \"11222333000181\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true,\n    \"name\": \"John Doe\",\n    \"customerId\": 1234\n}"},{"id":"0b56a028-78b9-4c5b-a441-7723c7af7283","name":"Bad Request - Failed to get driver due invalid id","originalRequest":{"method":"GET","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/abc"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid driver ID\"\n}"},{"id":"1e7d008e-68fa-4c19-a621-58b42b469d0d","name":"Unauthorized - Missing or invalid API key","originalRequest":{"method":"GET","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/98765"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized\"\n}"},{"id":"118f6598-22fd-4649-a8ce-32313d8d7c8c","name":"Unauthorized - API not enabled","originalRequest":{"method":"GET","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/98765"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"api not enabled\"\n}"},{"id":"f09f4267-27d2-4e50-b886-38e202b54d15","name":"Internal Server Error - Drivers API not enabled for the customer","originalRequest":{"method":"GET","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/98765"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"data\": {\n        \"code\": 9,\n        \"description\": \"Erro não esperado\"\n    }\n}"},{"id":"d28981e3-8dc6-4151-ad81-603922437e62","name":"Not Found - Failed to get driver due missing driver","originalRequest":{"method":"GET","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/99999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Driver not found\"\n}"},{"id":"c9c72ef0-739e-49fa-bf22-0c860793179b","name":"Not Found - Failed to get driver from another customer","originalRequest":{"method":"GET","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/12345"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Operation not allowed to this driver\"\n}"}],"_postman_id":"369f2128-9130-46fe-981e-ae02da322381"},{"name":"Create Driver","id":"fce202fc-97af-4081-b6d6-803d02cd4cd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"driverDocument\": \"11144477735\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers","description":"<h3 id=\"create-driver\">Create Driver</h3>\n<p>Creates a driver for the customer identified by the API key. The returned id must be used to get or delete the driver.</p>\n<p>The following fields are accepted in the request body:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td><strong>(required)</strong> Name of the driver.</td>\n</tr>\n<tr>\n<td>driverDocument</td>\n<td>string</td>\n<td><strong>(required)</strong> Valid CPF of the driver. Inform only numbers.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>(optional) Valid e-mail of the driver. Must not be in use by another driver of the same customer.</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td><strong>(required)</strong> Phone number of the driver (at least 8 digits). Must not be in use by another driver of the same customer.</td>\n</tr>\n<tr>\n<td>birthDate</td>\n<td>string</td>\n<td>(optional) Birth date of the driver.</td>\n</tr>\n<tr>\n<td>observation</td>\n<td>string</td>\n<td>(optional) Free text note about the driver.</td>\n</tr>\n<tr>\n<td>canLink</td>\n<td>boolean</td>\n<td>(optional) Indicates whether the driver can be linked to a vehicle. Default: <em>false</em>.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The customer and the company data are taken from the API key and should not be sent in the body.</p>\n<p>The response returns the created driver:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Identification of the driver on our systems. Use it to get or delete the driver.</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the driver.</td>\n</tr>\n<tr>\n<td>driverDocument</td>\n<td>string</td>\n<td>CPF of the driver.</td>\n</tr>\n<tr>\n<td>companyName</td>\n<td>string</td>\n<td>Name of the company (customer) the driver belongs to.</td>\n</tr>\n<tr>\n<td>companyDocument</td>\n<td>string</td>\n<td>Document (CNPJ) of the company the driver belongs to.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>E-mail of the driver.</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>Phone number of the driver.</td>\n</tr>\n<tr>\n<td>birthDate</td>\n<td>string</td>\n<td>Birth date of the driver.</td>\n</tr>\n<tr>\n<td>observation</td>\n<td>string</td>\n<td>Free text note about the driver.</td>\n</tr>\n<tr>\n<td>canLink</td>\n<td>boolean</td>\n<td>Indicates whether the driver can be linked to a vehicle.</td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>integer</td>\n<td>Not filled on this operation.</td>\n</tr>\n</tbody>\n</table>\n</div><p>If the driver can not be created, the API responds with status <strong>500</strong> and the reason after the prefix <em>Failed to create driver :</em> (e.g. <em>name is required</em>, <em>driverDocument is required</em>, <em>driverDocument is invalid</em>, <em>email is invalid</em>, <em>phone is not a valid brazilian phone number</em>, <em>motorista já cadastrado</em>, <em>motorista ja cadastrado em outra empresa</em>, or the e-mail or phone is already in use or the phone is invalid).</p>\n","urlObject":{"protocol":"https","port":"8889","path":["api","v2","drivers"],"host":["gateway-v3","gobrax","com","br"],"query":[],"variable":[]}},"response":[{"id":"e9085014-b0b9-4831-abf8-cac391e9bbbc","name":"OK - Driver successfully created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"driverDocument\": \"11144477735\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 98765,\n    \"driverDocument\": \"11144477735\",\n    \"companyName\": \"Example Transport Ltda\",\n    \"companyDocument\": \"11222333000181\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true,\n    \"name\": \"John Doe\",\n    \"customerId\": 0\n}"},{"id":"a0a04301-82c0-48ef-b51c-77af5694fc2d","name":"Bad Request - Failed to create driver due invalid request body","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"canLink\": \"yes\"\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid request\"\n}"},{"id":"7c273922-411e-4f5b-b06e-1b7d9675e0e0","name":"Unauthorized - Missing or invalid API key","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"driverDocument\": \"11144477735\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized\"\n}"},{"id":"01bee5bb-68b6-4ece-b5ce-e4a8b16b5704","name":"Unauthorized - API not enabled","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"driverDocument\": \"11144477735\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"api not enabled\"\n}"},{"id":"0cc8b5e1-115d-4d87-8d45-6acbdd81bd2a","name":"Internal Server Error - Drivers API not enabled for the customer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"driverDocument\": \"11144477735\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"data\": {\n        \"code\": 9,\n        \"description\": \"Erro não esperado\"\n    }\n}"},{"id":"b4934a7a-9a23-4e14-85fa-ba8a39cb1a4f","name":"Internal Server Error - Failed to create driver due invalid driver document","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"driverDocument\": \"11144477700\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Failed to create driver : driverDocument is invalid\"\n}"},{"id":"dffa3891-56b3-410c-b3e8-cc053509f3fd","name":"Internal Server Error - Failed to create driver due driver already registered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"driverDocument\": \"11144477735\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Failed to create driver : motorista já cadastrado\"\n}"},{"id":"037397d5-20cd-4a85-9146-548646a57b03","name":"Internal Server Error - Failed to create driver due driver registered in another company","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"driverDocument\": \"11144477735\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Failed to create driver : motorista ja cadastrado em outra empresa\"\n}"},{"id":"1cc78fdf-c33d-4f13-abeb-5028ebecf386","name":"Internal Server Error - Failed to create driver due e-mail already in use","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Doe\",\n    \"driverDocument\": \"11144477735\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+5511900000000\",\n    \"birthDate\": \"1990-01-01\",\n    \"observation\": \"Night shift\",\n    \"canLink\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Failed to create driver : rpc error: code = Unknown desc = email: Email already exists\"\n}"}],"_postman_id":"fce202fc-97af-4081-b6d6-803d02cd4cd0"},{"name":"Delete Driver","id":"2c907c56-2efe-46b0-9806-989c190e570d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/:id","description":"<h3 id=\"delete-driver\">Delete Driver</h3>\n<p>Deletes a driver by its id. The driver must belong to the customer identified by the API key.</p>\n<p>If the driver is currently linked to a vehicle, the link is ended within a few minutes.</p>\n<p>On success the API responds with:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message</td>\n<td>string</td>\n<td><em>Driver deleted successfully</em></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","port":"8889","path":["api","v2","drivers",":id"],"host":["gateway-v3","gobrax","com","br"],"query":[],"variable":[{"id":"02de0d21-467f-4b7d-9b41-f58a7c547c40","description":{"content":"<p>(required) Identification of the driver on our systems (the id returned when the driver was created).</p>\n","type":"text/plain"},"type":"any","value":"98765","key":"id"}]}},"response":[{"id":"010bcc85-bfe1-4806-858f-3d9daa92ded4","name":"OK - Driver successfully deleted","originalRequest":{"method":"DELETE","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/98765"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Driver deleted successfully\"\n}"},{"id":"e1d174b1-6039-47e6-9d1d-208f48665dbb","name":"Bad Request - Failed to delete driver due invalid id","originalRequest":{"method":"DELETE","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/abc"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid driver ID\"\n}"},{"id":"2b2015d5-104a-4ee4-8d63-33d368eb7632","name":"Unauthorized - Missing or invalid API key","originalRequest":{"method":"DELETE","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/98765"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized\"\n}"},{"id":"988c0a3b-78bd-4680-b0a6-4be17ebdec8a","name":"Unauthorized - API not enabled","originalRequest":{"method":"DELETE","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/98765"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"api not enabled\"\n}"},{"id":"6b525e18-ea64-499c-898c-9d0dd51936eb","name":"Internal Server Error - Drivers API not enabled for the customer","originalRequest":{"method":"DELETE","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/98765"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"data\": {\n        \"code\": 9,\n        \"description\": \"Erro não esperado\"\n    }\n}"},{"id":"ed6d8e0c-5e2e-4b9e-af5e-529acbb47b1c","name":"Not Found - Failed to delete driver due missing driver","originalRequest":{"method":"DELETE","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/99999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Driver not found\"\n}"},{"id":"298a42a9-9625-469e-a11c-2a2192054ea8","name":"Not Found - Failed to delete driver from another customer","originalRequest":{"method":"DELETE","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/12345"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Operation not allowed to this driver\"\n}"},{"id":"86449ac5-9791-444a-a9a4-66e7099bbc35","name":"Internal Server Error - Failed to delete driver","originalRequest":{"method":"DELETE","header":[],"url":"https://gateway-v3.gobrax.com.br:8889/api/v2/drivers/98765"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Failed to delete driver\"\n}"}],"_postman_id":"2c907c56-2efe-46b0-9806-989c190e570d"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"130aa84c-5b38-4fdc-ae27-2810d8bd262b","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"c0191248-2002-42fd-8f21-5243caf0f1bb","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"driverId","value":"0"},{"key":"token","value":""}]}