{
	"info": {
		"_postman_id": "3596a131-6b84-4f41-8087-21f4fe0f19bd",
		"name": "API Fastcommerce",
		"description": "Para testes da API do Fastcommerce\n\nDocumentação da API: [https://desenvolvedor.fastcommerce.net.br/api](https://desenvolvedor.fastcommerce.net.br/api)",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "1374808"
	},
	"item": [
		{
			"name": "Método ReportView",
			"item": [
				{
					"name": "(FC) Lista de relatórios e utilitários",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/x-www-form-urlencoded;"
							},
							{
								"key": "",
								"value": "",
								"type": "text",
								"disabled": true
							}
						],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "StoreName",
									"value": "{{StoreName}}",
									"type": "text"
								},
								{
									"key": "StoreID",
									"value": "{{StoreID}}",
									"type": "text"
								},
								{
									"key": "Username",
									"value": "{{Username}}",
									"type": "text"
								},
								{
									"key": "Password",
									"value": "{{Password}}",
									"type": "text"
								},
								{
									"key": "method",
									"value": "ReportView",
									"type": "text"
								},
								{
									"key": "ObjectID",
									"value": "423",
									"type": "text"
								},
								{
									"key": "FromRecord",
									"value": "1",
									"type": "text",
									"disabled": true
								},
								{
									"key": "ToRecord",
									"value": "10",
									"type": "text",
									"disabled": true
								},
								{
									"key": "Page",
									"value": "1",
									"type": "text",
									"disabled": true
								},
								{
									"key": "QtRecords",
									"value": "50",
									"type": "text",
									"disabled": true
								},
								{
									"key": "OutputFormat",
									"value": "5",
									"type": "text",
									"disabled": true
								}
							]
						},
						"url": {
							"raw": "https://www.fastcommerce.com.br/adm/APILogon.asp",
							"protocol": "https",
							"host": [
								"www",
								"fastcommerce",
								"com",
								"br"
							],
							"path": [
								"adm",
								"APILogon.asp"
							]
						},
						"description": "Exemplo de requisição do relatório \"(FC) Lista de relatórios e utilitários\"\n\nObjectID: 423\n\nRelaciona os relatórios e utilitários disponíveis para uso pelo site administrativo ou via API. Informa os parâmetros e o ObjectID. Pode-se filtrar por trecho do nome ou da descrição"
					},
					"response": []
				},
				{
					"name": "Dados da loja para consultas via API",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/x-www-form-urlencoded"
							}
						],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "StoreName",
									"value": "{{StoreName}}",
									"type": "text"
								},
								{
									"key": "StoreID",
									"value": "{{StoreID}}",
									"type": "text"
								},
								{
									"key": "Username",
									"value": "{{Username}}",
									"type": "text"
								},
								{
									"key": "Password",
									"value": "{{Password}}",
									"type": "text"
								},
								{
									"key": "method",
									"value": "ReportView",
									"type": "text"
								},
								{
									"key": "ObjectID",
									"value": "510",
									"type": "text"
								},
								{
									"key": "Par1",
									"value": "True",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://www.fastcommerce.com.br/adm/APILogon.asp",
							"protocol": "https",
							"host": [
								"www",
								"fastcommerce",
								"com",
								"br"
							],
							"path": [
								"adm",
								"APILogon.asp"
							]
						},
						"description": "Exemplo de requisição do relatório \"Dados da loja para consultas via API\"\n\nObjectID: 510\n\nVer parâmetros de cada relatório no relatório:\n\n(FC) Lista de relatórios e utilitários"
					},
					"response": []
				},
				{
					"name": "Lista de produtos para alterações via API",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/x-www-form-urlencoded"
							}
						],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "StoreName",
									"value": "{{StoreName}}",
									"type": "text"
								},
								{
									"key": "StoreID",
									"value": "{{StoreID}}",
									"type": "text"
								},
								{
									"key": "Username",
									"value": "{{Username}}",
									"type": "text"
								},
								{
									"key": "Password",
									"value": "{{Password}}",
									"type": "text"
								},
								{
									"key": "method",
									"value": "ReportView",
									"type": "text"
								},
								{
									"key": "ObjectID",
									"value": "425",
									"type": "text"
								},
								{
									"key": "FromRecord",
									"value": "1",
									"type": "text"
								},
								{
									"key": "ToRecord",
									"value": "10",
									"type": "text"
								},
								{
									"key": "Page",
									"value": "1",
									"type": "text",
									"disabled": true
								},
								{
									"key": "QtRecords",
									"value": "50",
									"type": "text",
									"disabled": true
								},
								{
									"key": "OutputFormat",
									"value": "5",
									"type": "text",
									"disabled": true
								}
							]
						},
						"url": {
							"raw": "https://www.fastcommerce.com.br/adm/APILogon.asp",
							"protocol": "https",
							"host": [
								"www",
								"fastcommerce",
								"com",
								"br"
							],
							"path": [
								"adm",
								"APILogon.asp"
							]
						},
						"description": "Exemplo de requisição do relatório \"Lista de produtos para alterações via API\"\n\nObjectID: 425\n\nVer parâmetros de cada relatório no relatório:\n\n(FC) Lista de relatórios e utilitários"
					},
					"response": []
				}
			],
			"description": "Exemplo de requisições de relatórios"
		},
		{
			"name": "Método UtilityExecute",
			"item": [
				{
					"name": "Alteração de preços de produtos (B2C)",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "StoreName",
									"value": "{{StoreName}}",
									"type": "text"
								},
								{
									"key": "StoreID",
									"value": "{{StoreID}}",
									"type": "text"
								},
								{
									"key": "Username",
									"value": "{{Username}}",
									"type": "text"
								},
								{
									"key": "Password",
									"value": "{{Password}}",
									"type": "text"
								},
								{
									"key": "method",
									"value": "UtilityExecute",
									"type": "text"
								},
								{
									"key": "ObjectID",
									"value": "167",
									"type": "text"
								},
								{
									"key": "Par1",
									"value": "1,1",
									"type": "text"
								},
								{
									"key": "Par2",
									"value": "1,1",
									"type": "text"
								},
								{
									"key": "Par3",
									"value": "Secadores",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://www.fastcommerce.com.br/adm/APILogon.asp",
							"protocol": "https",
							"host": [
								"www",
								"fastcommerce",
								"com",
								"br"
							],
							"path": [
								"adm",
								"APILogon.asp"
							]
						}
					},
					"response": []
				}
			],
			"description": "Exemplo de requisições de utilitários"
		},
		{
			"name": "Método ProductManagement",
			"item": [
				{
					"name": "Alteração de produtos",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/x-www-form-urlencoded"
							}
						],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "StoreName",
									"value": "{{StoreName}}",
									"type": "text"
								},
								{
									"key": "StoreID",
									"value": "{{StoreID}}",
									"type": "text"
								},
								{
									"key": "Username",
									"value": "{{Username}}",
									"type": "text"
								},
								{
									"key": "Password",
									"value": "{{Password}}",
									"type": "text"
								},
								{
									"key": "method",
									"value": "ProductManagement",
									"type": "text"
								},
								{
									"key": "XMLRecords",
									"value": "<Records>\n  <Record>\n    <Field Name=\"COMANDO\" Value=\"A\" />\n    <Field Name=\"IDPRODUTO\" Value=\"1744668\" />\n    <Field Name=\"Estoque\" Value=\"1+\" />\n  </Record>\n  <Record>\n    <Field Name=\"COMANDO\" Value=\"A\" />\n    <Field Name=\"IDPRODUTO\" Value=\"1744669\" />\n    <Field Name=\"Estoque\" Value=\"50\" />\n  </Record>\n</Records>",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://www.fastcommerce.com.br/adm/APILogon.asp",
							"protocol": "https",
							"host": [
								"www",
								"fastcommerce",
								"com",
								"br"
							],
							"path": [
								"adm",
								"APILogon.asp"
							]
						},
						"description": "Exemplo de requisição do método ProductManagement para alteração de produtos"
					},
					"response": []
				},
				{
					"name": "Inclusão de produtos",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/x-www-form-urlencoded"
							}
						],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "StoreName",
									"value": "{{StoreName}}",
									"type": "text"
								},
								{
									"key": "StoreID",
									"value": "{{StoreID}}",
									"type": "text"
								},
								{
									"key": "Username",
									"value": "{{Username}}",
									"type": "text"
								},
								{
									"key": "Password",
									"value": "{{Password}}",
									"type": "text"
								},
								{
									"key": "method",
									"value": "ProductManagement",
									"type": "text"
								},
								{
									"key": "XMLRecords",
									"value": "<Records>\n  <Record>\n    <Field Name=\"COMANDO\" Value=\"I\" />\n    <Field Name=\"IDCategoria\" Value=\"78260\" />\n    <Field Name=\"NomeCat\" Value=\"Secadores\" />\n    <Field Name=\"Estoque\" Value=\"10\" />\n    <Field Name=\"NomeProd\" Value=\"Nome do produto\" />\n    <Field Name=\"Preco\" Value=\"99.99\" />\n    <Field Name=\"CodProd\" Value=\"00001123\" />\n    <Field Name=\"CodBarrasProd\" Value=\"0987654321091\" />\n    <Field Name=\"Peso\" Value=\"100\" />\n    <Field Name=\"Descricao\" Value=\"Resenha curta do produto\" />\n    <Field Name=\"DescrLonga\" Value=\"Resenha completa do produto\" />\n    <Field Name=\"ImagemProd\" Value=\"ImagemPrincipal1.png\" />\n    <Field Name=\"ImagemDet\" Value=\"ImagemDetalhe1.png\" />\n    <Field Name=\"ImagemAmp\" Value=\"ImagemAmpliada1.png\" />\n  </Record>\n  <Record>\n    <Field Name=\"COMANDO\" Value=\"I\" />\n    <Field Name=\"IDCategoria\" Value=\"78260\" />\n    <Field Name=\"NomeCat\" Value=\"Secadores\" />\n    <Field Name=\"Estoque\" Value=\"50\" />\n    <Field Name=\"NomeProd\" Value=\"Nome do produto 2\" />\n    <Field Name=\"Preco\" Value=\"200.99\" />\n    <Field Name=\"CodProd\" Value=\"0001829\" />\n    <Field Name=\"CodBarrasProd\" Value=\"0987654321098\" />\n    <Field Name=\"Peso\" Value=\"100\" />\n    <Field Name=\"Descricao\" Value=\"Resenha curta do produto\" />\n    <Field Name=\"DescrLonga\" Value=\"Resenha completa do produto\" />\n    <Field Name=\"ImagemProd\" Value=\"ImagemPrincipal2.png\" />\n    <Field Name=\"ImagemDet\" Value=\"ImagemDetalhe2.png\" />\n    <Field Name=\"ImagemAmp\" Value=\"ImagemAmpliada2.png\" />\n  </Record>\n</Records>",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://www.fastcommerce.com.br/adm/APILogon.asp",
							"protocol": "https",
							"host": [
								"www",
								"fastcommerce",
								"com",
								"br"
							],
							"path": [
								"adm",
								"APILogon.asp"
							]
						},
						"description": "Exemplo de requisição do método ProductManagement para alteração de produtos"
					},
					"response": []
				},
				{
					"name": "Exclusão de produtos",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/x-www-form-urlencoded"
							}
						],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "StoreName",
									"value": "{{StoreName}}",
									"type": "text"
								},
								{
									"key": "StoreID",
									"value": "{{StoreID}}",
									"type": "text"
								},
								{
									"key": "Username",
									"value": "{{Username}}",
									"type": "text"
								},
								{
									"key": "Password",
									"value": "{{Password}}",
									"type": "text"
								},
								{
									"key": "method",
									"value": "ProductManagement",
									"type": "text"
								},
								{
									"key": "XMLRecords",
									"value": "<Records>\n  <Record>\n    <Field Name=\"COMANDO\" Value=\"E\" />\n    <Field Name=\"IDPRODUTO\" Value=\"111111\" />\n  </Record>\n  <Record>\n    <Field Name=\"COMANDO\" Value=\"E\" />\n    <Field Name=\"IDPRODUTO\" Value=\"222222\" />\n  </Record>\n</Records>",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://www.fastcommerce.com.br/adm/APILogon.asp",
							"protocol": "https",
							"host": [
								"www",
								"fastcommerce",
								"com",
								"br"
							],
							"path": [
								"adm",
								"APILogon.asp"
							]
						},
						"description": "Exemplo de requisição do método ProductManagement para alteração de produtos"
					},
					"response": []
				}
			],
			"description": "Método ProductManagement para gerenciamento de produtos (alteração, exclusão e inclusão)\n\nEndFragment"
		},
		{
			"name": "Método OrderUpdate",
			"item": [
				{
					"name": "Alteração de pedidos",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/x-www-form-urlencoded"
							}
						],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "StoreName",
									"value": "{{StoreName}}",
									"type": "text"
								},
								{
									"key": "StoreID",
									"value": "{{StoreID}}",
									"type": "text"
								},
								{
									"key": "Username",
									"value": "{{Username}}",
									"type": "text"
								},
								{
									"key": "Password",
									"value": "{{Password}}",
									"type": "text"
								},
								{
									"key": "method",
									"value": "OrderUpdate",
									"type": "text"
								},
								{
									"key": "XMLRecords",
									"value": "<Records>\n  <Record>\n    <Field Name=\"NumPedido\" Value=\"25613931\" />\n    <Field Name=\"ObsCurta\" Value=\"TESTE API\" />\n    <Field Name=\"Status\" Value=\"7\" />\n    <Field Name=\"ObjSedex\" Value=\"SX0000111\" />\n    <Field Name=\"NumNFe\" Value=\"38972894728947238973289473289472389473289478\" />\n    <Field Name=\"DataEntrega\" Value=\"11/04/2018\" />\n    <Field Name=\"ChangeFlagAPI\" Value=\"999\" />\n  </Record>\n  <Record>\n    <Field Name=\"NumPedido\" Value=\"25613930\" />\n    <Field Name=\"ObsCurta\" Value=\"CANCELEI\" />\n    <Field Name=\"Status\" Value=\"2\" />\n    <Field Name=\"ChangeFlagAPI\" Value=\"999\" />\n  </Record>\n</Records>",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://www.fastcommerce.com.br/adm/APILogon.asp",
							"protocol": "https",
							"host": [
								"www",
								"fastcommerce",
								"com",
								"br"
							],
							"path": [
								"adm",
								"APILogon.asp"
							]
						},
						"description": "Exemplo de requisição do método OrderUpdate para alteração de pedidos"
					},
					"response": []
				}
			],
			"description": "Método OrderUpdate para alterar pedidos"
		}
	]
}