{
	"info": {
		"_postman_id": "1a972aa5-0526-4244-9059-8411649ee85e",
		"name": "Rein Sistemas - API",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "491896"
	},
	"item": [
		{
			"name": "Pessoa",
			"item": [
				{
					"name": "Listar Pessoa",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/pessoa?termo=8316&page=1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"pessoa"
							],
							"query": [
								{
									"key": "termo",
									"value": "8316",
									"description": "O termo é usado para pesquisar o nome da pessoa"
								},
								{
									"key": "page",
									"value": "1",
									"description": "Número da página"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Listar Pessoa por ID",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/pessoa/1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"pessoa",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Cadastrar Pessoa",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"InscricaoEstadual\": \"\",\n    \"Nome\": \"Teste API 2223\",\n    \"RazaoSocial\": \"Teste API 2223\",\n    \"Cnpj\": \"32.111.774/0001-86\",\n    \"Observacao\": \"\",\n    \"ObservacaoFiscal\": \"\",\n    \"PerfilFornecedor\": \"\",\n    \"TipoPessoa\": \"j\",\n    \"TipoCliente\": [\n        {\n            \"Id\": 2,\n            \"Nome\": \"string\"\n        }\n    ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/pessoa",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"pessoa"
							]
						}
					},
					"response": []
				},
				{
					"name": "Atualizar Pessoa",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"CanalVendaId\": 0,\n    \"UsuarioTecnicoId\": 1,\n    \"CreditoDevolucao\": 0,\n    \"LimiteDeCredito\": 0,\n    \"Crt\": 0,\n    \"IndicadorInscricaoEstadual\": 0,\n    \"Cnae\": \"\",\n    \"Cnpj\": \"11.111.111/0000-11\",\n    \"DataCadastro\": \"\",\n    \"DataFundacao\": \"\",\n    \"DataUltimaModificacao\": \"\",\n    \"DocumentoEstrangeiro\": \"\",\n    \"InscricaoMunicipal\": \"\",\n    \"Suframa\": \"\",\n    \"InscricaoEstadual\": \"\",\n    \"Nome\": \"Teste API\",\n    \"RazaoSocial\": \"Teste API\",\n    \"Observacao\": \"\",\n    \"ObservacaoFiscal\": \"\",\n    \"PerfilFornecedor\": \"\",\n    \"PrazoLimiteCredito\": \"\",\n    \"TipoPessoa\": \"J\",\n    \"EmailFinanceiro\": \"\",\n    \"EmailFiscal\": \"\",\n    \"EmailMalaDireta\": \"\",\n    \"Fone\": \"\",\n    \"Whatsapp\": \"\",\n    \"Celular\": \"\",\n    \"Site\": \"\",\n    \"CadastroGeralEndereco\": [\n        {\n            \"Id\": 0,\n            \"Municipio\": \"Curitiba\",\n            \"Estado\": \"PR\",\n            \"PaisId\": 0,\n            \"Identificador\": \"\",\n            \"Logradouro\": \"Rua tal\",\n            \"Numero\": \"125\",\n            \"Bairro\": \"Centro\",\n            \"Complemento\": \"\",\n            \"Cep\": \"83602635\",\n            \"Principal\": true,\n            \"Entrega\": true,\n            \"Retirada\": true,\n            \"Cobranca\": true,\n            \"Observacao\": \"string\"\n        }\n    ],\n    \"CondicaoPagamentoBloqueado\": [],\n    \"TipoCliente\": [\n        {\n            \"Id\": 2,\n            \"Nome\": \"string\"\n        }\n    ],\n    \"UsoMercadoriaConstanteFiscal\": {\n        \"Id\": 0\n    },\n    \"TabelaPrecoPadrao\": 1\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/pessoa/8316",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"pessoa",
								"8316"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Usuário",
			"item": [
				{
					"name": "Listar Usuario",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/usuario?page=1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"usuario"
							],
							"query": [
								{
									"key": "termo",
									"value": "",
									"description": "O termo é usado para pesquisar o nome do usuário",
									"disabled": true
								},
								{
									"key": "page",
									"value": "1",
									"description": "Número da página"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Produto",
			"item": [
				{
					"name": "Atualizar Produto",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"ProdutoDescricao\": [\n    {\n        \"Id\":0,\n        \"Titulo\": \"string\",\n        \"Descricao\": \"string\",\n        \"Ordem\": 0,\n        \"Ativo\": 0,\n        \"CanalVendaId\": 0 //Informe o ID do canal de venda para vincular a descrição, ou deixe em branco para aplicar para todos os canais de venda.\n    }\n  ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/produto/6851",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"produto",
								"6851"
							]
						}
					},
					"response": []
				},
				{
					"name": "Cadastrar Produto",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"ProdutoCategoria\":[{\"CategoriaId\":\"0\"}],\n  \"ProdutoMarcaId\": 0,\n  \"ProdutoUnidadeId\": 0,\n  \"FiguraFiscalId\": 0,\n  \"Cest\": \"string\",\n  \"CodigoExcecaoTipi\": \"string\",\n  \"Origem\": \"string\",\n  \"BuscaSomentePorLeitor\": 0,\n  \"PesoCalculado\": 0,\n  \"QuantidadeNumerosDeSerie\": 0,\n  \"SituacaoVeiculo\": 0,\n  \"UsaNumeroDeSerie\": 0,\n  \"Comentario\": \"string\",\n  \"DataUltimaVerificacaoNcm\": \"string\",\n  \"Ncm\": \"string\",\n  \"NomeFiscal\": \"string\",\n  \"Nome\": \"string\",\n  \"Observacao\": \"string\",\n  \"ObservacaoFiscal\": \"string\",\n  \"ProdutoFracionado\": 0,\n  \"CodigoProduto\": \"string\",\n  \"TipoItem\": \"string\",\n  \"TipoProduto\": [\n    \"string\"\n  ],\n  \"UnidadeMedida\": \"string\",\n  \"UrlAmigavel\": \"string\",\n  \"ProdutoBaixaEstoque\": 0,\n  \"QuantidadeTributavel\": 0,\n  \"NumeroFCI\": \"string\",\n  \"CondicaoItem\": 0,\n  \"Kit\": 0,\n  \"Servico\": 0,\n  \"BaixaEstoque\": 0,\n  \"MostrarFaturar\": 0,\n  \"FiguraFiscalServicoId\": 0,\n  \"SkuGeral\": \"test-58\",\n  \"PrecoCustoDiferentePorVariacao\": true,\n  \"ProdutoGrade\": [\n    {\n      \"Id\": 0,\n      \"ProdutoId\": 0,\n      \"Tags\": \"string\",\n      \"PesoLiquido\": 0,\n      \"PesoBruto\": 0,\n      \"Largura\": 0,\n      \"Altura\": 0,\n      \"Comprimento\": 0,\n      \"Cubagem\": 0,\n      \"UsaPropriaCaixa\": 0,\n      \"PermiteEmpilhar\": 0,\n      \"Sku\": \"string\",\n      \"EstoqueMinimo\": 0,\n      \"CodigoBarras\": \"string\",\n      \"DataUltimaModificacao\": \"string\",\n      \"PermiteAvisar\": 0,\n      \"PesoCalculado\": 0,\n      \"OrdemExibicaoVariacao\": 0,\n      \"EstoqueMaximo\": 0,\n      \"Principal\": 0,\n      \"Ativo\":true,\n      \"TrocaTipoProduto\": 0,\n      \"UrlAmigavelGrade\": \"string\",\n      \"ProdutoImagem\": [\n        {\n          \"Id\":0,//Informar somente se existir a imagem cadastrada. Para novas imagens, remover o campo.\n          \"OrdemExibicao\": 1,\n          \"BinarioArquivo\": \"string\",//base64 da imagem\n          \"NomeArquivo\": \"teste.jpg\",\n          \"TipoArquivo\":\"images.jpeg\"\n        }\n      ],\n      \"ProdutoMargem\": [\n        {\n          \"TipoDesconto\": \"string\", //R$ ou %\n          \"TabelaPrecoId\": 0,\n          \"ValorDesconto\": 0,\n          \"PrecoComDesconto\": 0,\n          \"Margem\": 0,\n          \"UltimoCustoEmReal\": 0,\n          \"UltimoCustoEmDolar\": 0,\n          \"PenultimoCustoEmReal\": 0,\n          \"PenultimoCustoEmDolar\": 0\n        }\n      ]\n    }\n  ],\n  \"ProdutoDescricao\": [\n    {\n      \"Titulo\": \"string\",\n      \"Descricao\": \"string\",\n      \"Ordem\": 0,\n      \"Ativo\": 0,\n      \"CanalVendaId\": 0 //Informe o ID do canal de venda para vincular a descrição, ou deixe em branco para aplicar para todos os canais de venda.\n    }\n  ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/produto",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"produto"
							]
						}
					},
					"response": []
				},
				{
					"name": "Listar Produto",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/produto",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"produto"
							]
						}
					},
					"response": []
				},
				{
					"name": "Listar Produto por ID",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/produto/0",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"produto",
								"0"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Variacao",
			"item": [
				{
					"name": "Listar Variação",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/variacao?page=1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"variacao"
							],
							"query": [
								{
									"key": "termo",
									"value": "",
									"description": "O termo é usado para pesquisar o nome da variação",
									"disabled": true
								},
								{
									"key": "page",
									"value": "1",
									"description": "Número da página"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Cadastrar Variação",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"Nome\": \"string\",\n  \"Ordem\": 0,\n  \"ProdutoVariacaoFilho\": [\n    {\n      \"Valor\": \"string\",\n      \"Rgb\": \"string\",\n      \"tipo\": 0,\n      \"imagem\": [\n        {\n          \"NomeArquivo\": \"string\",\n          \"TipoArquivo\": \"string\",\n          \"BinarioArquivo\": \"string\"\n        }\n      ]\n    }\n  ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/variacao",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"variacao"
							]
						}
					},
					"response": []
				},
				{
					"name": "Atualizar Variação",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"ProdutoVariacaoFilho\": [\n    {\n      \"Valor\": \"string\",\n      \"Rgb\": \"string\",\n      \"tipo\": 0\n    }\n  ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/variacao/7",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"variacao",
								"7"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Categoria",
			"item": [
				{
					"name": "Listar Categoria",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/categoria",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"categoria"
							],
							"query": [
								{
									"key": "termo",
									"value": "CONEXÕES",
									"description": "O termo é usado para pesquisar o nome da categoria",
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Atualizar Categoria",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"Nome\": \"\",\n  \"Descricao\": \"\",\n  \"CategoriaPaiId\":0,\n  \"PalavraChave\": \"\",\n  \"imagemIconePrincipal\": [\n    {\n      \"NomeArquivo\": \"\",\n      \"TipoArquivo\": \"image/jpeg\",\n      \"BinarioArquivo\": \"\" //base64 do arquivo\n    }\n  ],\n  \"imagemIconeSecundario\": [\n    {\n      \"NomeArquivo\": \"\",\n      \"TipoArquivo\": \"image/jpeg\",\n      \"BinarioArquivo\": \"\" //base64 do arquivo\n    }\n  ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/categoria/10013",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"categoria",
								"10013"
							]
						}
					},
					"response": []
				},
				{
					"name": "Cadastrar Categoria",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"Nome\": \"Teste\",\n  \"Descricao\": \"tste\",\n  \"CategoriaPaiId\":0,\n  \"PalavraChave\": \"\",\n  \"imagemIconePrincipal\": [\n    {\n      \"NomeArquivo\": \"\",\n      \"TipoArquivo\": \"image/jpeg\",\n      \"BinarioArquivo\": \"\" //base64 do arquivo\n    }\n  ],\n  \"imagemIconeSecundario\": [\n    {\n      \"NomeArquivo\": \"\",\n      \"TipoArquivo\": \"image/jpeg\",\n      \"BinarioArquivo\": \"\" //base64 do arquivo\n    }\n  ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/categoria",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"categoria"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Marca",
			"item": [
				{
					"name": "Listar Marca",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/marca?termo=ASK&page=1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"marca"
							],
							"query": [
								{
									"key": "termo",
									"value": "ASK",
									"description": "O termo é usado para pesquisar o nome da marca"
								},
								{
									"key": "page",
									"value": "1",
									"description": "Número da pagina"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Cadastrar Marca",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"Nome\": \"string\",\n  \"Ordem\": 0,\n  \"imagem\": [\n    {\n      \"NomeArquivo\": \"string.jpg\",\n      \"TipoArquivo\": \"image/jpeg\",\n      \"BinarioArquivo\": \"\" //Base64 do conteúdo do arquivo\n    }\n  ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/marca",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"marca"
							]
						}
					},
					"response": []
				},
				{
					"name": "Atualizar Marca",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"Nome\": \"string FORD alt\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/marca/2",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"marca",
								"2"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Unidade",
			"item": [
				{
					"name": "Listar Unidade",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/unidade?page=1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"unidade"
							],
							"query": [
								{
									"key": "termo",
									"value": "BR",
									"description": "O termo é usado para pesquisar o nome da unidade",
									"disabled": true
								},
								{
									"key": "page",
									"value": "1",
									"description": "Número da página"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Atualizar Unidade",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"Nome\": \"string\",\n  \"Descricao\": \"string\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/unidade/1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"unidade",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Cadastrar Unidade",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"Nome\": \"string\",\n  \"Descricao\": \"string\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/unidade",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"unidade"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Figura Fiscal",
			"item": [
				{
					"name": "Listar Figura Fiscal",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/figura-fiscal?termo=7134090&page=1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"figura-fiscal"
							],
							"query": [
								{
									"key": "termo",
									"value": "7134090",
									"description": "O termo é usado para pesquisar o NCM"
								},
								{
									"key": "page",
									"value": "1",
									"description": "Número da página"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Tabela de Preço",
			"item": [
				{
					"name": "Listar Tabela de Preço",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/tabela-preco",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"tabela-preco"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Pedido",
			"item": [
				{
					"name": "Listar Pedido",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/pedido?DataMovInicial=12-12-2025&DataMovFinal=20-12-2025&TipoMovimento[]=1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"pedido"
							],
							"query": [
								{
									"key": "DataMovInicial",
									"value": "12-12-2025"
								},
								{
									"key": "DataMovFinal",
									"value": "20-12-2025"
								},
								{
									"key": "Finalizado",
									"value": "0",
									"description": "Exemplo: 0: movimentos pendentes. 1: movimentos finalizados",
									"disabled": true
								},
								{
									"key": "CodDestino",
									"value": "0",
									"description": "Filtrar pelo código da pessoa no Ctrl-E",
									"disabled": true
								},
								{
									"key": "CpfCnpj",
									"value": "0",
									"description": "Filtrar por CPF ou CNPJ",
									"disabled": true
								},
								{
									"key": "TipoMovimento[]",
									"value": "1",
									"description": "Filtrar por tipo de movimento. Valores possíveis: 1 - Compra 2, -Venda"
								},
								{
									"key": "TipoMovimento[]",
									"value": "4",
									"description": "Filtrar por tipo de movimento. Valores possíveis: 1 - Compra 2, -Venda",
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Listar Pedido por ID",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BaseUrl}}/api/v1/pedido/ 9582",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"pedido",
								" 9582"
							]
						}
					},
					"response": []
				},
				{
					"name": "Atualizar Pedido",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"CodOrigem\": 0,\n    \"CodDestino\": 0,\n    \"CodEmpresaServico\": 0,\n    \"CodVendedor\": 0,\n    \"CanalVendaId\": 0,\n    \"IndicadorPresenca\": 1,\n    \"CodNatureza\": \"5102\",\n    \"UsoMercadoria\": \"consumo\",\n    \"Produto\": [\n        {\n            \"IdProduto\": 0,\n            \"CodProduto\": 0,\n            \"CodTabelaPreco\": 1,\n            \"QtdProduto\": 1,\n            \"ValorUnitario\": 100\n        }\n    ],\n    \"Pagamento\": [\n        {\n            \"ParcelaId\": 0,\n            \"CodMeioPagamento\": 1,\n            \"ValorPagamento\": 100,\n            \"DataPagamento\": \"2025-11-14T15:03:09.907Z\"\n        }\n    ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/pedido/1",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"pedido",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Cadastrar Pedido",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Token",
								"value": "{{Token}}",
								"type": "text"
							},
							{
								"key": "Database",
								"value": "{{Database}}",
								"type": "text"
							},
							{
								"key": "Timestamp",
								"value": "{{Timestamp}}",
								"type": "text"
							},
							{
								"key": "ClientId",
								"value": "{{ClientId}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"CodOrigem\": 0,\n    \"CodDestino\": 0,\n    \"CodEmpresaServico\": 0,\n    \"CodVendedor\": 0,\n    \"CanalVendaId\": 0,\n    \"IndicadorPresenca\": 1,\n    \"CodNatureza\": \"5102\",\n    \"UsoMercadoria\": \"consumo\",\n    \"Produto\": [\n        {\n            \"IdProduto\": 0,\n            \"CodProduto\": 0,\n            \"CodTabelaPreco\": 1,\n            \"QtdProduto\": 1,\n            \"ValorUnitario\": 100\n        }\n    ],\n    \"Pagamento\": [\n        {\n            \"ParcelaId\": 0,\n            \"CodMeioPagamento\": 1,\n            \"ValorPagamento\": 100,\n            \"DataPagamento\": \"2025-11-14T15:03:09.907Z\"\n        }\n    ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BaseUrl}}/api/v1/pedido",
							"host": [
								"{{BaseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"pedido"
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					"const secretKey = pm.environment.get(\"ClientSecret\");",
					"const database = pm.environment.get(\"Database\");",
					"",
					"let fullUrl = pm.request.url.getPath();",
					"let endpoint = fullUrl;",
					"",
					"if (endpoint.includes('?')) {",
					"  endpoint = endpoint.split('?')[0];",
					"}",
					"",
					"const timestamp = Math.floor((Date.now() + 5 * 60 * 1000) / 1000).toString();",
					"",
					"const dataToSign = `${endpoint}.${database}.${timestamp}`;",
					"",
					"const signature = CryptoJS.HmacSHA256(dataToSign, secretKey).toString(CryptoJS.enc.Hex);",
					"",
					"pm.environment.set(\"Token\", signature);",
					"pm.environment.set(\"Timestamp\", timestamp);",
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	]
}