{"info":{"_postman_id":"c9a87b3d-1aa5-4076-9d65-33c7305ac356","name":"API Controle de Pagamento-Azapfy","description":"<html><head></head><body><h1 id=\"azapfy-controle-de-pagamento-por-entregas\">Azapfy - Controle de Pagamento por Entregas</h1>\n<h2 id=\"introdução\">Introdução</h2>\n<p>A Azapfy é uma empresa inovadora que busca automatizar e otimizar a gestão de entrega e comprovação. Anteriormente, esses processos eram manuais, mas agora são realizados de forma automatizada, proporcionando alta performance e controle. Isso garante que os prestadores de serviço recebam pelo trabalho realizado no menor prazo e com o menor custo operacional, enquanto identificam em tempo real todas as etapas do processo.</p>\n<p>Neste desafio, foi desenvolvida uma API para o controle de pagamento pelas entregas realizadas. Também foi disponibilizada uma API para a consulta de notas fiscais, facilitando o cálculo de pagamento.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Azapfy - Controle de Pagamento por Entregas","slug":"azapfy-controle-de-pagamento-por-entregas"}],"owner":"31041446","collectionId":"c9a87b3d-1aa5-4076-9d65-33c7305ac356","publishedId":"2s9YXiYM3A","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-09T00:54:46.000Z"},"item":[{"name":"Controle de Pagamento","item":[{"name":"Agrupa notas por remetente","id":"e05b59b2-ef13-455a-923b-795447d6d475","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA?","description":"<p>Retorna todas as notas de um remetente específico.</p>\n","urlObject":{"protocol":"http","port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA"],"host":["localhost"],"query":[{"description":{"content":"<p>Agrupar as notas por remetente</p>\n","type":"text/plain"},"key":null,"value":null}],"variable":[]}},"response":[{"id":"15070430-5009-48a1-acb8-3eb4844cb031","name":"Agrupa notas por remetente","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA?","protocol":"http","host":["localhost"],"port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA"],"query":[{"key":"","value":null,"description":"Agrupar as notas por remetente"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.25"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Nov 2023 01:05:43 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"}],"cookie":[],"responseTime":null,"body":"{\n    \"notas_agrupadas\": [\n        {\n            \"chave\": \"55200344463156002128000905124\",\n            \"numero\": \"000905124\",\n            \"dest\": {\n                \"cod\": \"23439696000152\",\n                \"nome\": \"39505 - DROGARIA FARIA EAMP VALADARES LTDA - ME\"\n            },\n            \"cnpj_remete\": \"44463156002128\",\n            \"nome_remete\": \"SERVIMED COMERCIAL LTDA\",\n            \"nome_transp\": \"PH LOGISTICA LTDA\",\n            \"cnpj_transp\": \"12227730000109\",\n            \"status\": \"ABERTO\",\n            \"valor\": \"187.33\",\n            \"volumes\": \"3\",\n            \"dt_emis\": \"31/03/2020 13:00:05\"\n        },\n        {\n            \"chave\": \"55200344463156002128000905498\",\n            \"numero\": \"000905498\",\n            \"dest\": {\n                \"cod\": \"23439696000233\",\n                \"nome\": \"DROGARIA FARIA VALADARES LTDA\"\n            },\n            \"cnpj_remete\": \"44463156002128\",\n            \"nome_remete\": \"SERVIMED COMERCIAL LTDA\",\n            \"nome_transp\": \"PH LOGISTICA LTDA\",\n            \"cnpj_transp\": \"12227730000109\",\n            \"status\": \"COMPROVADO\",\n            \"valor\": \"136.16\",\n            \"volumes\": \"2\",\n            \"dt_emis\": \"30/03/2020 13:00:05\",\n            \"dt_entrega\": \"31/03/2020 15:00:05\"\n        },\n        {\n            \"chave\": \"55200344463156002128000906164\",\n            \"numero\": \"000906164\",\n            \"dest\": {\n                \"cod\": \"11486048000178\",\n                \"nome\": \"PEDRO MUSSOLINE DE CARVALHO NETO EIRELI ME\"\n            },\n            \"cnpj_remete\": \"44463156002128\",\n            \"nome_remete\": \"SERVIMED COMERCIAL LTDA\",\n            \"nome_transp\": \"PH LOGISTICA LTDA\",\n            \"cnpj_transp\": \"12227730000109\",\n            \"status\": \"COMPROVADO\",\n            \"valor\": \"156.08\",\n            \"volumes\": \"4\",\n            \"dt_emis\": \"31/03/2020 13:00:05\",\n            \"dt_entrega\": \"01/04/2020 15:00:05\"\n        }\n    ]\n}"}],"_postman_id":"e05b59b2-ef13-455a-923b-795447d6d475"},{"name":"Valor Total por remetente","id":"7de7f749-688e-4c27-a223-87fb26da8513","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA/calculateTotals?","description":"<p>Retorna o calculo do valor total das notas de um remetente específico.</p>\n","urlObject":{"protocol":"http","port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA","calculateTotals"],"host":["localhost"],"query":[{"description":{"content":"<p>Calcula o valor total das notas de um remetente específico \n● </p>\n","type":"text/plain"},"key":null,"value":null}],"variable":[]}},"response":[{"id":"e663ac22-3034-4660-85a1-418c9892967f","name":"Valor Total por remetente","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n\"valor_Total\": 479.57000000000005\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA/calculateTotals?","protocol":"http","host":["localhost"],"port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA","calculateTotals"],"query":[{"key":"","value":null,"description":"Calcula o valor total das notas de um remetente específico \n● "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.25"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Nov 2023 01:15:53 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"}],"cookie":[],"responseTime":null,"body":"{\n    \"valor_Total\": 479.57000000000005\n}"}],"_postman_id":"7de7f749-688e-4c27-a223-87fb26da8513"},{"name":"Valor pelo o que foi entregue","id":"00aba48c-0e22-4a6d-bd21-61de75f2dd00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA/calculateDelivered?","description":"<p>Retorna o calculo do valor que o remetente irá receber pelo que já foi entregue.</p>\n","urlObject":{"protocol":"http","port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA","calculateDelivered"],"host":["localhost"],"query":[{"description":{"content":"<p>Calcula o valor que o remetente irá receber pelo que já foi entregue</p>\n","type":"text/plain"},"key":null,"value":null}],"variable":[]}},"response":[{"id":"7fcb33f4-f082-43a0-9fa3-a4e0dd07262d","name":"Valor pelo o que foi entregue","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"valor_Total\": 292.24\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA/calculateDelivered?","protocol":"http","host":["localhost"],"port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA","calculateDelivered"],"query":[{"key":"","value":null,"description":"Calcula o valor que o remetente irá receber pelo que já foi entregue"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.25"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Nov 2023 01:17:38 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"}],"cookie":[],"responseTime":null,"body":"{\n    \"valor_Total\": 292.24\n}"}],"_postman_id":"00aba48c-0e22-4a6d-bd21-61de75f2dd00"},{"name":"Valor a receber-entrega pendente","id":"c231db00-4164-473e-a94c-bd6cad63e894","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA/calculateNotDelivered?&","description":"<p>Retorna o calculo do valor que o remetente irá receber pelo que ainda não foi entregue.</p>\n","urlObject":{"protocol":"http","port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA","calculateNotDelivered"],"host":["localhost"],"query":[{"key":null,"value":null},{"description":{"content":"<p>Calcula o valor que o remetente irá receber pelo que ainda não foi entregue</p>\n","type":"text/plain"},"key":null,"value":null}],"variable":[]}},"response":[{"id":"6980ac30-8afd-4144-bc5f-7bd0a2c54006","name":"Valor a receber-entrega pendente","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"valor_Total\": 187.33\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA/calculateNotDelivered?&","protocol":"http","host":["localhost"],"port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA","calculateNotDelivered"],"query":[{"key":null,"value":null},{"key":"","value":null,"description":"Calcula o valor que o remetente irá receber pelo que ainda não foi entregue"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.25"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Nov 2023 01:24:04 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"}],"cookie":[],"responseTime":null,"body":"{\n    \"valor_Total\": 187.33\n}"}],"_postman_id":"c231db00-4164-473e-a94c-bd6cad63e894"},{"name":"Valor não recebido -atraso na entrega","id":"1edde300-8ca9-4581-a8d2-591fd1361c52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA/calculateDelay?","description":"<p>Retorna quanto o remetente deixou de receber devido ao atraso na entrega.</p>\n","urlObject":{"protocol":"http","port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA","calculateDelay"],"host":["localhost"],"query":[{"description":{"content":"<p>Calcula quanto o remetente deixou de receber devido ao atraso na entrega</p>\n","type":"text/plain"},"key":null,"value":null}],"variable":[]}},"response":[{"id":"3d20fb24-3125-4d69-814f-c25ddc60310f","name":"Valor não recebido -atraso na entrega","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"valor_Total\": 0\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8989/notasRemetente/SERVIMED%20COMERCIAL%20LTDA/calculateDelay?","protocol":"http","host":["localhost"],"port":"8989","path":["notasRemetente","SERVIMED%20COMERCIAL%20LTDA","calculateDelay"],"query":[{"key":"","value":null,"description":"Calcula quanto o remetente deixou de receber devido ao atraso na entrega"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.25"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Nov 2023 01:25:48 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"}],"cookie":[],"responseTime":null,"body":"{\n    \"valor_Total\": 0\n}"}],"_postman_id":"1edde300-8ca9-4581-a8d2-591fd1361c52"}],"id":"c1ed2e53-a3f9-47a2-8809-841b062eb699","_postman_id":"c1ed2e53-a3f9-47a2-8809-841b062eb699","description":""}]}