{ "info": { "_postman_id": "47841f54-ce4a-434d-a25a-491b40ea0270", "name": "Coleta XML", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Buscar empresas", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{host}}/empresas", "host": [ "{{host}}" ], "path": [ "empresas" ] } }, "response": [] }, { "name": "Autorizar empresas", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"cnpjs\": [\n\t\t\"10858094000198\"\n\t]\n}" }, "url": { "raw": "{{host}}/empresas/autorizar", "host": [ "{{host}}" ], "path": [ "empresas", "autorizar" ] } }, "response": [] }, { "name": "Buscar documentos", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{host}}/documentos/{{cnpj}}?data_inicial=2019-03-03&data_final=2019-04-02&status=101&grupos[0][modelo]=55&grupos[0][participacao]=1&grupos[1][modelo]=65", "host": [ "{{host}}" ], "path": [ "documentos", "{{cnpj}}" ], "query": [ { "key": "data_inicial", "value": "2019-03-03" }, { "key": "data_final", "value": "2019-04-02" }, { "key": "status", "value": "101" }, { "key": "grupos[0][modelo]", "value": "55" }, { "key": "grupos[0][participacao]", "value": "1" }, { "key": "grupos[1][modelo]", "value": "65" } ] } }, "response": [] }, { "name": "Buscar documentos novos", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{host}}/documentos/{{cnpj}}/novos?status=100&grupos[0][modelo]=55&grupos[0][participacao]=0&grupos[1][modelo]=65", "host": [ "{{host}}" ], "path": [ "documentos", "{{cnpj}}", "novos" ], "query": [ { "key": "status", "value": "100" }, { "key": "grupos[0][modelo]", "value": "55" }, { "key": "grupos[0][participacao]", "value": "0" }, { "key": "grupos[1][modelo]", "value": "65" } ] } }, "response": [] }, { "name": "Marcar documentos enviados", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"chaves\": [\n\t\t\"43191200428307000511570510001555681001555688\"\n\t]\n}" }, "url": { "raw": "{{host}}/documentos/{{cnpj}}/marcar", "host": [ "{{host}}" ], "path": [ "documentos", "{{cnpj}}", "marcar" ] } }, "response": [] }, { "name": "Adicionar documentos", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "xml", "type": "file", "src": [] } ] }, "url": { "raw": "{{host}}/documentos/{{cnpj}}", "host": [ "{{host}}" ], "path": [ "documentos", "{{cnpj}}" ] } }, "response": [] }, { "name": "Manifestar documento", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n\t\"evento\": \"210200\",\n\t\"justificativa\": \"teste teste teste\"\n}" }, "url": { "raw": "{{host}}/documentos/{{cnpj}}/43190390950114000195550020000033981008620797", "host": [ "{{host}}" ], "path": [ "documentos", "{{cnpj}}", "43190390950114000195550020000033981008620797" ] } }, "response": [] } ], "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "99999999999999999999999999", "type": "string" }, { "key": "tokenType", "value": "Bearer", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "id": "f9215655-683d-446a-9958-0cb540d52254", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "e7a3327b-4b6f-4b89-b800-6f2b502698bf", "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "id": "2c5bb831-7a3c-426d-a684-b8db3921746c", "key": "host", "value": "https://coletaxml.com.br/api/v1", "type": "string" }, { "id": "61ee6fd3-e54b-4444-8024-c395a3fcf9e6", "key": "cnpj", "value": "10858094000198", "type": "string" } ], "protocolProfileBehavior": {} }