{
	"info": {
		"_postman_id": "d802d0f4-64fe-4f09-b6b4-51d9a4523f6b",
		"name": "Xledger GraphQL suppliers",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "12513583",
		"_collection_link": "https://winter-capsule-318580.postman.co/workspace/Zendesk~81e2f28b-3903-4602-9742-2f866356dd43/collection/12513583-d802d0f4-64fe-4f09-b6b4-51d9a4523f6b?action=share&source=collection_link&creator=12513583"
	},
	"item": [
		{
			"name": "Check Supplier Existence",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "{\r\nsuppliers(last: 10, filter: {code: \"enter supplier code here\"}) {\r\n  edges {\r\n    node {\r\n      code\r\n      description\r\n      dbId\r\n      }\r\n    }\r\n  }\r\n}",
						"variables": ""
					}
				},
				"url": {
					"raw": "{{url}}",
					"host": [
						"{{url}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "Update Supplier",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "mutation{\r\n  updateSuppliers(inputs: [{node: {\r\n    dbId: \"26468971\"\r\n    code: \"TESTCODE\"\r\n    description: \"Test descrition\"\r\n    payMethod: {description: \"Manual Payment\"}\r\n    bank: {code: \"BNP\"}\r\n    bankAccount: \"12345678\"\r\n    email: \"test@email.com\"\r\n    phone: \"07123123123\"\r\n    streetAddress: \"4th Floor, Tower Wharf, Cheese Ln\"\r\n    zipCode: \"BS2 0JJ\"\r\n    place: \"Bristol\"\r\n    country: {code: \"GB\"}\r\n    streetAddress2: \"4th Floor, Tower Wharf, Cheese Ln\"\r\n    zipCode2: \"BS2 0JJ\"\r\n    place2: \"Bristol\"\r\n    country2: {code: \"GB\"}\r\n  }}]) {\r\n    edges {\r\n      node {\r\n        dbId\r\n      }\r\n    }\r\n  }\r\n}\r\n",
						"variables": ""
					}
				},
				"url": {
					"raw": "{{url}}",
					"host": [
						"{{url}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "Create Supplier",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "mutation{\r\n  addSuppliers(inputs: [{node: {\r\n    code: \"TESTCODE2\"\r\n    description: \"Test descrition\"\r\n    payMethod: {description: \"Manual Payment\"}\r\n    bank: {code: \"BNP\"}\r\n    bankAccount: \"12345678\"\r\n    email: \"test@email.com\"\r\n    phone: \"07123123123\"\r\n    streetAddress: \"4th Floor, Tower Wharf, Cheese Ln\"\r\n    zipCode: \"BS2 0JJ\"\r\n    place: \"Bristol\"\r\n    country: {code: \"GB\"}\r\n    streetAddress2: \"4th Floor, Tower Wharf, Cheese Ln\"\r\n    zipCode2: \"BS2 0JJ\"\r\n    place2: \"Bristol\"\r\n    country2: {code: \"GB\"}\r\n  }}]) {\r\n    edges {\r\n      node {\r\n        dbId\r\n      }\r\n    }\r\n  }\r\n}\r\n",
						"variables": ""
					}
				},
				"url": {
					"raw": "{{url}}",
					"host": [
						"{{url}}"
					]
				}
			},
			"response": []
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "value",
				"value": "token your_token",
				"type": "string"
			},
			{
				"key": "key",
				"value": "Authorization",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"requests": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"requests": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "url",
			"value": "https://demo.xledger.net/graphql"
		}
	]
}