{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"b7af6431-6840-4691-87b9-8bb8dc0c96c6","name":"DSLite - Apis para Integração","description":"Descrição de uso das apis de integração com o sistema DSlite.\n\n# Ambiente de Homologação\n\n**As urls informadas nos exemplos é para serem utilizadas em homologação, tendo como url base https://api.master.dev.dslite.com.br/v1/.**\n\n**Em caso de produção considere https://api.dslite.com.br/v1/ como url base.**\n\n**O token informado nos exemplos é de um cadastro real, porém a quantidade de produtos disponíveis bem como seus valores são ficticios.**\n\n# Autenticação\nA autenticação é feita via token disponibilizado pelo sistema [DSlite](https://dslite.com.br).\n\nCada empresa possui um token único, e esse token é utilizado para determinar a mesma.\n\nO token precisa ser enviado no cabeçalho http. Ex:\n\n```\nGET /v1/ping HTTP/1.1\nHost: api.master.dev.dslite.com.br\nAccept: application/json\nToken: {{token}}\n```\n\n# Possíveis Erros\n\nErros específicos estão listados em seus devidos request, já os seguintes erros podem sem retornados em quaisquer consulta:\n\n* Token inválido\n\n    Caso o token enviado não exista no sistema.\n\n    Retorna um erro HTTP `401 Unauthorized` com o seguinte conteúdo:\n    ```json\n    {\n        \"error\": \"Token inválido.\"\n    }\n    ```\n\n\n* Empresa Inativa\n\n    Caso a empresa informada esteja com a situação inativa no DSlite.\n\n    Retorna um erro HTTP `401 Unauthorized` com o seguinte conteúdo:\n    ```json\n    {\n        \"error\": \"Empresa não esta ativa.\"\n    }\n    ```\n\n\n* Acesso Limitado\n\n    Caso a empresa informada esteja com pendências financeiras junto à DSlite.\n\n    Retorna um erro HTTP `401 Unauthorized` com o seguinte conteúdo:\n    ```json\n    {\n        \"error\": \"Empresa com acesso limitado.\"\n    }\n    ```\n\n\n* URL inválida\n\n    Caso o endpoint ou o recurso que esteja consultando não exista.\n    \n    \n    A mensagem de erro pode variar caso o recurso seja inválido, em caso da rota nao existir será a exemplificada abaixo.\n\n    Retorna um erro HTTP `404 Not Found` com o seguinte conteúdo:\n    ```json\n    {\n        \"error\": \"Rota não definida\"\n    }\n    ```\n\n\n* Paramêtro inválido\n\n    Caso algum parâmetro enviado na requisição seja inválido.\n\n    Retorna um erro HTTP `400 Bad Request` com o seguinte conteúdo:\n    ```json\n    {\n        \"error\": \"Requisição inválida, verifique os parâmetros.\"\n    }\n    ```\n\n\n* Método não suportado\n\n    Caso o método HTTP utilizado não seja permitido para o endpoint.\n\n    Retorna um erro HTTP `405 Method Not Allowed` com o seguinte conteúdo:\n    ```json\n    {\n        \"error\": \"Método precisa ser: GET\"\n    }\n    ```\n\n\n* Erro de servidor\n\n    Caso ocorra algum erro ao processar a requisição.\n\n    Retorna um erro HTTP `500 Internal Server Error` com o seguinte conteúdo:\n    ```json\n    {\n        \"error\": \"Erro ao processar solicitação.\"\n    }\n    ```","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"5316990","team":155424,"collectionId":"b7af6431-6840-4691-87b9-8bb8dc0c96c6","publishedId":"RWaRNkaA","public":true,"publicUrl":"https://documenter-api.postman.tech/view/5316990/RWaRNkaA","privateUrl":"https://go.postman.co/documentation/5316990-b7af6431-6840-4691-87b9-8bb8dc0c96c6","customColor":{"top-bar":"1439A6","right-sidebar":"F4F4F4","highlight":"F67702"},"documentationLayout":"classic-double-column","version":"8.10.0","publishDate":"2018-09-26T19:38:44.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"QAS","id":"28077b51-15ac-4fd9-8977-395dfcbbdb01","owner":"5316990","values":[{"key":"url","value":"https://api.master.dev.dslite.com.br","enabled":true},{"key":"token","value":"fee6fdc993063fefea8716331d03b55e","enabled":true},{"key":"sessionid","value":"75646de7d0fa0ac304c3978eb8b9b766","enabled":true},{"key":"fornecedorid","value":"2","enabled":true},{"key":"produtoid","value":"{produtoid}","enabled":true},{"key":"pedidoid","value":"1751","enabled":true},{"key":"produtoid_empresa","value":"{produtoid_empresa}","enabled":true},{"key":"itemid","value":"{itemid}","enabled":true},{"key":"transportadoraid","value":"{transportadoraid}","enabled":true},{"key":"cepDestino","value":"{cepDestino}","enabled":true},{"key":"token_fornecedor","value":"ee5f3fa7048250ea5101c8bc4ba97f95","enabled":true},{"key":"apikey_bling","value":"2258ed2e3530c5fa4b7c09fd6bf868e882e3779022a37e1cf482687bb782a66d5afe2abb","enabled":true},{"key":"idloja_bling","value":"203370543","enabled":true},{"key":"jobid","value":"0","enabled":true},{"key":"melhor_envio_url","value":"sandbox.melhorenvio.com.br","enabled":true},{"key":"melhor_envio_token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjRkZTg0NDcwNGQxZDRmMDJkMzhjM2VmZGE4YWNmZmZhNjRhMjEyODMwMDFiYmYzZWU1ZGZiZmE1MzA2ODMyZTkyMTEzZmNjODgwNDVhYWFlIn0","enabled":true},{"key":"izzo_url","value":"https://3.219.100.114:8443/B1iXcellerator/exec/ipo/vP.0010000101.in_HCSX/com.sap.b1i.vplatform.runtime/INB_HT_CALL_SYNC_XPT/INB_HT_CALL_SYNC_XPT.ipo/proc","enabled":true},{"key":"izzo_login","value":"b2lite","enabled":true},{"key":"izzo_senha","value":"72%04@ca","enabled":true},{"key":"marknet_url","value":"https://dslitepolo.marknet.com.br/api/rest/act","enabled":true},{"key":"jobs_url","value":"https://jobs.master.dev.dslite.com.br:4443","enabled":true,"type":"default"},{"key":"fornecedor_cnpj","value":"30953873000180","enabled":true,"type":"default"},{"key":"laquila_link","value":"drop30.laquila.com.br:8189/api_acom/acom/TTerceiros/Integracao/","enabled":true,"type":"default"},{"key":"laquila_base_token","value":"2DB9BD85-0043-46EE-AE56-66B2E780D83C","enabled":true,"type":"default"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/84fbf6b7e0030a3ab6b5b0f5ac0351749d92cbe1275e6f95e661fa180856acbb","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"QAS","value":"5316990-28077b51-15ac-4fd9-8977-395dfcbbdb01"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/RWaRNkaA"}