{
	"info": {
		"_postman_id": "07d50d42-fd0c-4c65-bd7e-13672ee52fea",
		"name": "wattio",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "29124678"
	},
	"item": [
		{
			"name": "Api",
			"item": [
				{
					"name": "partner",
					"item": [
						{
							"name": "create",
							"protocolProfileBehavior": {
								"disabledSystemHeaders": {
									"content-type": true
								}
							},
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "Content-Type",
										"value": "text/plain",
										"type": "text",
										"disabled": true
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"name\": \"Carlos Maia\",\n    \"cnpj_cpf\": \"627.862.230-08\",\n    \"email\": \"carlos.maia@email.com\",\n    \"phone\": \"+5535997265830\"\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/partner",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"partner"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve one",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/partner/1369/",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"partner",
										"1369",
										""
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve one by cnpj or uc",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/partner/search?uc=2075211530",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"partner",
										"search"
									],
									"query": [
										{
											"key": "uc",
											"value": "2075211530"
										},
										{
											"key": "cnpj",
											"value": "33.649.608/0001-09",
											"disabled": true
										},
										{
											"key": "cpf",
											"value": "123.456.789-00",
											"disabled": true
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve energy received",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/partner/energy/1498/",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"partner",
										"energy",
										"1498",
										""
									]
								}
							},
							"response": []
						},
						{
							"name": "update partner data",
							"request": {
								"method": "PUT",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"partner_id\": 2777,\n    \"phone\": \"(81)1111-2520\",\n    \"email\": \"exemplo@email.com.br\",\n    \"cep\": \"37500123\",\n    \"complement\": \"apt 3\",\n    \"number\": \"123\"\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/partner/update_data",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"partner",
										"update_data"
									]
								}
							},
							"response": []
						},
						{
							"name": "update partner_relation",
							"request": {
								"method": "PUT",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"partner_id\": 2356,\n    \"socio_id\":657,\n    \"relation_type\": \"socio\"\n}"
								},
								"url": {
									"raw": "{{host}}/api/partner/update_partner_relation",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"partner",
										"update_partner_relation"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve cnae by cnpj",
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"cnpj\": \"03.512.840/0001-21\"\n}"
								},
								"url": {
									"raw": "{{host}}/api/partner/cnae",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"partner",
										"cnae"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve qualification",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/partner/qualification/123",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"partner",
										"qualification",
										"123"
									]
								}
							},
							"response": []
						}
					],
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"type": "text/javascript",
								"exec": [
									""
								]
							}
						},
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									""
								]
							}
						}
					]
				},
				{
					"name": "consumer unit",
					"item": [
						{
							"name": "create",
							"protocolProfileBehavior": {
								"disabledSystemHeaders": {
									"content-type": true
								}
							},
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "Content-Type",
										"value": "text/plain",
										"type": "text",
										"disabled": true
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"name\": \"Giulia Fabiano\",\n    \"alias\": \"Giulia\",\n    \"full_name\": \"Giulia Fabiano Jezzro\",\n    \"partner_id\": 129,\n    \"cep\": \"68915-970\",\n    \"complement\": \"casa\",\n    \"number\": \"1\",\n    \"street_name\": \"Rua 2\",\n    \"district\": \"distrito 2\"\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/consumer_unit",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"consumer_unit"
									]
								}
							},
							"response": []
						},
						{
							"name": "approve",
							"request": {
								"method": "POST",
								"header": [],
								"url": {
									"raw": "{{host}}/api/consumer_unit/approve/3",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"consumer_unit",
										"approve",
										"3"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/v1/consumer_units?per_page=20&page_number=1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"v1",
										"consumer_units"
									],
									"query": [
										{
											"key": "per_page",
											"value": "20"
										},
										{
											"key": "page_number",
											"value": "1"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all (old)",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/consumer_units",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"consumer_units"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve one",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/consumer_unit/93",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"consumer_unit",
										"93"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve cnpj_cpf from partner by code",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/consumer_unit/code/2023624205",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"consumer_unit",
										"code",
										"2023624205"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve uc by partner's cnpj_cpf",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/consumer_unit/cnpj_cpf/2022190724",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"consumer_unit",
										"cnpj_cpf",
										"2022190724"
									]
								}
							},
							"response": []
						},
						{
							"name": "update",
							"protocolProfileBehavior": {
								"disabledSystemHeaders": {
									"content-type": true
								}
							},
							"request": {
								"method": "PUT",
								"header": [
									{
										"key": "Content-Type",
										"value": "text/plain",
										"type": "text",
										"disabled": true
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"consumer_unit_id\": 129,\n    \"name\": \"Giulia Fabiano\",\n    \"alias\": \"Giulia\",\n    \"full_name\": \"Giulia Fabiano Jezzro\",\n    \"partner_id\": 1234,\n    \"complement\": \"casa\",\n    \"number\": \"1\",\n    \"street_name\": \"Rua 2\",\n    \"district\": \"distrito 2\"\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/consumer_unit/update",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"consumer_unit",
										"update"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "proposal",
					"item": [
						{
							"name": "create",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"partner_id\": 3352,\n    \"consumer_unit_id\": 1699,\n    \"media_consumo_mensal\": 1234,\n    \"tarifa_sem_tributos\": 0.745,\n    \"tarifa_com_tributos\": 0.345,\n    \"connection\": 1\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/proposal",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"proposal"
									]
								}
							},
							"response": []
						},
						{
							"name": "create from document",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "formdata",
									"formdata": [
										{
											"key": "document",
											"type": "file",
											"src": "/home/joao_para/Downloads/conta-completa-2090375246 (1).pdf"
										}
									]
								},
								"url": {
									"raw": "{{host}}/api/proposal/document",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"proposal",
										"document"
									]
								}
							},
							"response": []
						},
						{
							"name": "approve",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/proposal/26/approve",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"proposal",
										"26",
										"approve"
									]
								}
							},
							"response": []
						},
						{
							"name": "generate contract",
							"request": {
								"method": "POST",
								"header": [],
								"url": {
									"raw": "{{host}}/api/proposal/1/generate_contract",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"proposal",
										"1",
										"generate_contract"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/v1/proposals?per_page=20&page_number=1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"v1",
										"proposals"
									],
									"query": [
										{
											"key": "per_page",
											"value": "20"
										},
										{
											"key": "page_number",
											"value": "1"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve one",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/proposals/1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"proposals",
										"1"
									]
								}
							},
							"response": []
						},
						{
							"name": "POST consumo referência",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"proposal_id\": 238,\n    \"consumo_referencia\" : 433,\n    \"usina_id\": 2\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/proposal/consumo_referencia",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"proposal",
										"consumo_referencia"
									]
								}
							},
							"response": []
						},
						{
							"name": "Update consumo referência",
							"request": {
								"method": "PUT",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"proposal_id\": 238,\n    \"consumo_referencia\" : 433\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/proposal/update_consumo_referencia",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"proposal",
										"update_consumo_referencia"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "bill",
					"item": [
						{
							"name": "retrieve all (old)",
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/all-bills",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"all-bills"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/v1/bills?per_page=20&page_number=1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"v1",
										"bills"
									],
									"query": [
										{
											"key": "per_page",
											"value": "20"
										},
										{
											"key": "page_number",
											"value": "1"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "WEBHOOK",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"id\":1,\n    \"name\":\"CONTA/C4348\",\n    \"bill_type\":\"cliente\",\n    \"consumer_unit\":\"3010674280\",\n    \"consume\":1567\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": ""
								}
							},
							"response": []
						},
						{
							"name": "retrieve one",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/bills/1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"bills",
										"1"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "contract",
					"item": [
						{
							"name": "create",
							"protocolProfileBehavior": {
								"disabledSystemHeaders": {
									"content-type": true
								}
							},
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"name\": \"Contrato 01\",\n    \"partner_id\": 110\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/contract",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contract"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all (old)",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/contracts",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contracts"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/v1/contracts?per_page=20&page_number=1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"v1",
										"contracts"
									],
									"query": [
										{
											"key": "per_page",
											"value": "20"
										},
										{
											"key": "page_number",
											"value": "1"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve one",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/contracts/1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contracts",
										"1"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve_url_signature",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/contract/url_signature/1590",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contract",
										"url_signature",
										"1590"
									]
								}
							},
							"response": []
						},
						{
							"name": "update",
							"request": {
								"method": "PUT",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"contract_id\": 435,\n    \"new_energy_value\": 2000\n}"
								},
								"url": {
									"raw": "{{host}}/api/contract/update/",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contract",
										"update",
										""
									]
								}
							},
							"response": []
						},
						{
							"name": "cancel",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"contract_id\": 573,\n    \"reason_to_cancel\": 1\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/contract/cancel/",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contract",
										"cancel",
										""
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve cancel reason",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/contract/retrieve_cancel_reason",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contract",
										"retrieve_cancel_reason"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve signed contract",
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"partner_id\": 1220,\n    \"contract_id\": 1572\n}"
								},
								"url": {
									"raw": "{{host}}/api/contract/partner_signature",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contract",
										"partner_signature"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve signed agreement",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/contract/check_signature/1220/1234",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contract",
										"check_signature",
										"1220",
										"1234"
									]
								}
							},
							"response": []
						},
						{
							"name": "Active contract",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"contract_id\": 136\n}",
									"options": {
										"raw": {
											"language": "text"
										}
									}
								},
								"url": {
									"raw": "{{host}}/api/contract/active/",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"contract",
										"active",
										""
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "invoice",
					"item": [
						{
							"name": "retrieve all",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/v1/invoices?per_page=20&page_number=1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"v1",
										"invoices"
									],
									"query": [
										{
											"key": "per_page",
											"value": "20"
										},
										{
											"key": "page_number",
											"value": "1"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve one",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/invoice/2",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"invoice",
										"2"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve by partner id",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/invoice/by-partner/42",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"invoice",
										"by-partner",
										"42"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve by uc id",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/invoice/by-uc/23",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"invoice",
										"by-uc",
										"23"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all by uc id",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/invoices/by-uc/123",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"invoices",
										"by-uc",
										"123"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve by period (old)",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/invoice/by-period/?mm=03&yyyy=2023",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"invoice",
										"by-period",
										""
									],
									"query": [
										{
											"key": "mm",
											"value": "03"
										},
										{
											"key": "yyyy",
											"value": "2023"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve by period",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/v1/invoice/by-period/?mm=03&yyyy=2023&per_page=20&page_number=1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"v1",
										"invoice",
										"by-period",
										""
									],
									"query": [
										{
											"key": "mm",
											"value": "03"
										},
										{
											"key": "yyyy",
											"value": "2023"
										},
										{
											"key": "per_page",
											"value": "20"
										},
										{
											"key": "page_number",
											"value": "1"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve ones boleto",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/invoice/boleto/1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"invoice",
										"boleto",
										"1"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all pending by uc id",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/invoices/by-uc/pending/1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"invoices",
										"by-uc",
										"pending",
										"1"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "cooperativa",
					"item": [
						{
							"name": "retrieve all",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/cooperativas",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"cooperativas"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve one by id",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/cooperativa/1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"cooperativa",
										"1"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "address",
					"item": [
						{
							"name": "validate service for cep",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/address/cep/14340000",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"address",
										"cep",
										"14340000"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "bank",
					"item": [
						{
							"name": "retrieve registred banks",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/banks",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"banks"
									]
								}
							},
							"response": []
						},
						{
							"name": "register bank account",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"partner_id\": 2777,\n    \"bank_code_id\":44,\n    \"bank_agency\":1,\n    \"bank_agency_digit\":1,\n    \"bank_account_number\":1,\n    \"bank_account_number_digit\":1\n}"
								},
								"url": {
									"raw": "{{host}}/api/bank_account",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"bank_account"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "distributors",
					"item": [
						{
							"name": "retrieve registred distributors",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/distributors",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"distributors"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "crm_lead",
					"item": [
						{
							"name": "create crm_lead",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"name\":\"Oportunidade 1\",\n    \"partner_id\": 3224,\n    \"email_from\": \"example@email.com\",\n    \"expected_revenue\": 100,\n    \"phone\":\"3511111111\"\n}"
								},
								"url": {
									"raw": "{{host}}/api/crm_lead",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"crm_lead"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/v1/crm_leads?per_page=20&page_number=1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"v1",
										"crm_leads"
									],
									"query": [
										{
											"key": "per_page",
											"value": "20"
										},
										{
											"key": "page_number",
											"value": "1"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "gd_model",
					"item": [
						{
							"name": "retrieve report by uc and period",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/report/invoice/6384221/2023/01",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"report",
										"invoice",
										"6384221",
										"2023",
										"01"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve report by id and period",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/report/by-id/invoice/1234/2023/01",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"report",
										"by-id",
										"invoice",
										"1234",
										"2023",
										"01"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "region",
					"item": [
						{
							"name": "retrieve city by ID or name",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/region/city/São Paulo",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"region",
										"city",
										"São Paulo"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all in state",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/region/states/cities/95",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"region",
										"states",
										"cities",
										"95"
									]
								}
							},
							"response": []
						},
						{
							"name": "retrieve all states",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/region/states",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"region",
										"states"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "user",
					"item": [
						{
							"name": "Retrieve a specific user by ID or email",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/user/search/1",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"user",
										"search",
										"1"
									]
								}
							},
							"response": []
						},
						{
							"name": "Retrieve a specific user by selling code",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{host}}/api/user/search/code/0123",
									"host": [
										"{{host}}"
									],
									"path": [
										"api",
										"user",
										"search",
										"code",
										"0123"
									]
								}
							},
							"response": []
						}
					]
				}
			]
		},
		{
			"name": "auth",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"var res = pm.response.json();",
							"if (res.data && res.data.accessToken) {",
							"    pm.collectionVariables.set(\"accessToken\", res.data.accessToken);",
							"}else{",
							"    pm.collectionVariables.set(\"accessToken\", '');",
							"}"
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"protocolProfileBehavior": {
				"disabledSystemHeaders": {}
			},
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"user\": \"admin\",\n    \"password\": \"admin\"\n}",
					"options": {
						"raw": {
							"language": "text"
						}
					}
				},
				"url": {
					"raw": "{{host}}/api/auth",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"auth"
					]
				}
			},
			"response": []
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "value",
				"value": "{{accessToken}}",
				"type": "string"
			},
			{
				"key": "key",
				"value": "accessToken",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "host",
			"value": "",
			"type": "string"
		},
		{
			"key": "accessToken",
			"value": "",
			"type": "string"
		}
	]
}