{
	"info": {
		"_postman_id": "5e9ef8f5-40a4-463d-9319-58e7b2d616ea",
		"name": "Xledger GraphQL customers",
		"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-5e9ef8f5-40a4-463d-9319-58e7b2d616ea?action=share&source=collection_link&creator=12513583"
	},
	"item": [
		{
			"name": "Check Customer Existence",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "{\r\ncustomers(last: 10, filter: {code: \"test\"}) {\r\n  edges {\r\n    node {\r\n      code\r\n      description\r\n      dbId\r\n      companyDbId\r\n      }\r\n    }\r\n  }\r\n}",
						"variables": ""
					}
				},
				"url": {
					"raw": "{{url}}",
					"host": [
						"{{url}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "Update Customer",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "mutation{\r\n  updateCustomers(inputs: [{node: {\r\n    dbId: 28618888\r\n    code: \"123412341234\"\r\n    description: \"test\"\r\n    email: \"\"\r\n    bankAccount: \"\"\r\n    country: {code: \"GB\"}\r\n    streetAddress: \"\"\r\n    zipCode: \"\"\r\n    place: \"\"\r\n    streetAddress2: \"\"\r\n    zipCode2: \"\"\r\n    place2: \"\"\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": "Update Company",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "mutation{\r\n  updateCompanies(inputs: [{node: {\r\n    dbId: 28618955\r\n    code: \"123412341234\"\r\n    description: \"test\"\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 Customer",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "mutation{\r\n  addCustomers(inputs: [{node: {\r\n    company: {dbId: 27809941}\r\n    code: \"123412341234\"\r\n    description: \"test\"\r\n    email: \"\"\r\n    bankAccount: \"\"\r\n    country: {code: \"GB\"}\r\n    streetAddress: \"\"\r\n    zipCode: \"\"\r\n    place: \"\"\r\n    streetAddress2: \"\"\r\n    zipCode2: \"\"\r\n    place2: \"\"\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 Company",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "mutation{\r\n  addCompanies(inputs: [{node: {\r\n    code: \"123412341234\"\r\n    description: \"test\"\r\n  }},\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"
		}
	]
}