649 lines
No EOL
38 KiB
JSON
649 lines
No EOL
38 KiB
JSON
{
|
|
"info": {
|
|
"name": "Serviço TecnoSpeed - Payloads do Worker",
|
|
"description": "Exemplos completos de todos os payloads esperados pelo `main.py` do Worker no RabbitMQ. ATENÇÃO: Essas requisições são modelos do JSON interno. Seu back-end deve encapsula-las com `hmac` e enviá-las ao RabbitMQ.",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "NFe (Nota Fiscal Eletrônica)",
|
|
"item": [
|
|
{
|
|
"name": "1. Cadastrar NFe",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"nfe\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"post\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"nfe\": {\n \"emitente\": {\n \"cpfCnpj\": \"12345678000123\"\n },\n \"destinatario\": {\n \"cpfCnpj\": \"98765432000198\",\n \"razaoSocial\": \"Cliente Destino LTDA\"\n },\n \"itens\": [\n {\n \"codigo\": \"123\",\n \"descricao\": \"Produto Teste\",\n \"valorUnitario\": 100.0,\n \"quantidade\": 1\n }\n ]\n }\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **nfe** usando o método **post**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/nfe/post",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"nfe",
|
|
"post"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "2. Consultar Resumo NFe",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"nfe\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"get\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"id\": \"ID_DA_NFE_AQUI\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **nfe** usando o método **get**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/nfe/get",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"nfe",
|
|
"get"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "3. Baixar PDF NFe",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"nfe\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"download\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"id\": \"ID_DA_NFE_AQUI\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **nfe** usando o método **download**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/nfe/download",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"nfe",
|
|
"download"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "4. Baixar XML NFe",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"nfe\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"download_xml\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"id\": \"ID_DA_NFE_AQUI\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **nfe** usando o método **download_xml**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/nfe/download_xml",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"nfe",
|
|
"download_xml"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "5. Cancelar NFe",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"nfe\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"cancelar\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"id\": \"ID_DA_NFE_AQUI\",\n \"justificativa\": \"Cancelamento a pedido do integrador\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **nfe** usando o método **cancelar**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/nfe/cancelar",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"nfe",
|
|
"cancelar"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "NFSe (Nota Fiscal de Serviço)",
|
|
"item": [
|
|
{
|
|
"name": "1. Cadastrar NFSe",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"nfse\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"post\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"idIntegracao\": \"INTEGRACAO-NFSE-101\",\n \"prestador\": {\n \"cpfCnpj\": \"12345678000123\"\n },\n \"tomador\": {\n \"cpfCnpj\": \"98765432000198\",\n \"razaoSocial\": \"Jo\\u00e3o Silva\",\n \"endereco\": {\n \"logradouro\": \"Rua Teste\",\n \"numero\": \"123\",\n \"codigoCidade\": \"4106902\"\n }\n },\n \"servico\": {\n \"codigo\": \"1.01\",\n \"valor\": 1500.5,\n \"discriminacao\": \"Servi\\u00e7os prestados de TI\"\n }\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **nfse** usando o método **post**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/nfse/post",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"nfse",
|
|
"post"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "2. Consultar/Listar NFSe",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"nfse\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"get\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"id\": \"ID_DA_NFSE_AQUI\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **nfse** usando o método **get**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/nfse/get",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"nfse",
|
|
"get"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "3. Cancelar NFSe",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"nfse\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"cancelar\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"id\": \"ID_DA_NFSE_AQUI\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **nfse** usando o método **cancelar**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/nfse/cancelar",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"nfse",
|
|
"cancelar"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Empresa",
|
|
"item": [
|
|
{
|
|
"name": "1. Cadastrar Empresa",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"empresa\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"post\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"json\": {\n \"cpfCnpj\": \"12345678000123\",\n \"razaoSocial\": \"Nome da Sua Empresa LTDA\",\n \"nomeFantasia\": \"Nome Fantasia\",\n \"inscricaoMunicipal\": \"123456\",\n \"endereco\": {\n \"logradouro\": \"Rua Exemplo\",\n \"numero\": \"100\",\n \"codigoCidade\": \"4106902\",\n \"uf\": \"PR\",\n \"cep\": \"80000000\"\n }\n },\n \"info\": {\n \"ativo\": \"true\"\n }\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **empresa** usando o método **post**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/empresa/post",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"empresa",
|
|
"post"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "2. Consultar Empresa",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"empresa\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"get\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"cnpj\": \"12345678000123\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **empresa** usando o método **get**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/empresa/get",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"empresa",
|
|
"get"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Certificado Digital",
|
|
"item": [
|
|
{
|
|
"name": "1. Cadastrar Certificado",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"certificado_digital\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"post\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"arquivo\": {\n \"filename\": \"certificado.pfx\",\n \"content\": \"BASE64_CONTEUDO_DO_ARQUIVO\"\n },\n \"senha\": \"SenhaDoCertificadoAqui\",\n \"data_expiracao\": \"2025-12-31\",\n \"id_empresa\": 105,\n \"id_usuario\": 10\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **certificado_digital** usando o método **post**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/certificado_digital/post",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"certificado_digital",
|
|
"post"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "2. Consultar Certificado",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"certificado_digital\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"get\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"id\": \"ID_DO_CERTIFICADO\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **certificado_digital** usando o método **get**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/certificado_digital/get",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"certificado_digital",
|
|
"get"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "3. Atualizar Certificado",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"certificado_digital\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"put\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"id\": \"ID_DO_CERTIFICADO\",\n \"arquivo\": {\n \"filename\": \"novo_certificado.pfx\",\n \"content\": \"NEW_BASE64_CONTEUDO_DO_ARQUIVO\"\n },\n \"senha\": \"NovaSenhaDoCertificadoAqui\",\n \"data_expiracao\": \"2026-12-31\",\n \"id_empresa\": 105,\n \"id_usuario\": 10\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **certificado_digital** usando o método **put**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/certificado_digital/put",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"certificado_digital",
|
|
"put"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Serviços",
|
|
"item": [
|
|
{
|
|
"name": "1. Cadastrar Serviço",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"servico\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"post\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"json\": {\n \"codigo\": \"1.01\",\n \"idIntegracao\": \"SERV-01\",\n \"descricao\": \"An\\u00e1lise e desenvolvimento de sistemas\",\n \"aliquota\": 2.5\n },\n \"info\": {\n \"parametros_adicionais\": \"teste\"\n }\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **servico** usando o método **post**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/servico/post",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"servico",
|
|
"post"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "2. Buscar Serviço",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"servico\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"get\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"id\": \"ID_DO_SERVICO\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **servico** usando o método **get**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/servico/get",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"servico",
|
|
"get"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Tomador",
|
|
"item": [
|
|
{
|
|
"name": "1. Cadastrar Tomador",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"tomador\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"post\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"cpf_cnpj\": \"00000000000\",\n \"razaoSocial\": \"Tomador Teste SA\",\n \"email\": \"contato@teste.com\",\n \"endereco\": {\n \"logradouro\": \"Rua teste\",\n \"codigoCidade\": \"1234567\"\n }\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **tomador** usando o método **post**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/tomador/post",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"tomador",
|
|
"post"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "2. Buscar Tomador",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"tomador\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"get\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"cpf_cnpj\": \"00000000000\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **tomador** usando o método **get**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/tomador/get",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"tomador",
|
|
"get"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Relatórios",
|
|
"item": [
|
|
{
|
|
"name": "1. NFSe Emitidas",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"relatorios\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"nfse_emitidas\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"data_inicial\": \"01/01/2026\",\n \"data_final\": \"31/01/2026\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **relatorios** usando o método **nfse_emitidas**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/relatorios/nfse_emitidas",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"relatorios",
|
|
"nfse_emitidas"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "2. NFSe por CNPJ",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"relatorios\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"nfse_por_cnpj\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"cnpj\": \"12345678000123\",\n \"data_inicial\": \"01/01/2026\",\n \"data_final\": \"31/01/2026\"\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **relatorios** usando o método **nfse_por_cnpj**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/relatorios/nfse_por_cnpj",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"relatorios",
|
|
"nfse_por_cnpj"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Webhook Callbacks (Uso Interno do FastAPI)",
|
|
"item": [
|
|
{
|
|
"name": "1. Notificação Concluído",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"fila\": \"webhook_callback\",\n \"cliente\": \"IdentificadorDoCliente\",\n \"metodo\": \"concluido\",\n \"url_base\": \"https://api.sandbox.plugnotas.com.br\",\n \"config\": {\n \"api_key\": \"SUA_API_KEY\",\n \"user_postgres\": \"postgres\",\n \"pass_postgres\": \"postgres\",\n \"host_postgres\": \"localhost\",\n \"port_postgres\": \"5432\",\n \"database_postgres\": \"seu_banco\"\n },\n \"dados\": {\n \"documento\": \"nfe\",\n \"status\": \"CONCLUIDO\",\n \"id_nota\": \"ID_DA_NFE\",\n \"id_integracao\": \"SEU_SISTEMA_123\",\n \"cnpj\": \"12345678000123\",\n \"payload_plugnotas\": {\n \"id\": \"ID_DA_NFE\",\n \"status\": \"CONCLUIDO\",\n \"mensagem\": \"Autorizado o uso da NFe\"\n }\n }\n}"
|
|
},
|
|
"description": "Payload interno para a fila **webhook_callback** usando o método **concluido**.\n\n",
|
|
"url": {
|
|
"raw": "amqp://seu-rabbitmq/fila/webhook_callback/concluido",
|
|
"protocol": "amqp",
|
|
"host": [
|
|
"seu-rabbitmq"
|
|
],
|
|
"path": [
|
|
"fila",
|
|
"webhook_callback",
|
|
"concluido"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |