{
	"info": {
		"_postman_id": "f2444a7e-5106-44cc-883a-7b8d08497b19",
		"name": "POS Integration",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "39093723"
	},
	"item": [
		{
			"name": "Loyalty API",
			"item": [
				{
					"name": "Get Account",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept",
								"value": "application/vnd.thanx-v1+json"
							},
							{
								"key": "Merchant-Key",
								"value": "${merchant_key}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"location_id\": \"${location_id}\"\n  }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://loyalty.thanxsandbox.com/api/account",
							"protocol": "https",
							"host": [
								"loyalty",
								"thanxsandbox",
								"com"
							],
							"path": [
								"api",
								"account"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create or Update basket",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept",
								"value": "application/vnd.thanx-v1+json"
							},
							{
								"key": "Merchant-Key",
								"value": "${merchant-key}"
							},
							{
								"key": "Reward-Redemption-Token",
								"value": "code1234"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"id\": \"gwer-werwr-2134-rty\",\n    \"state\": \"billed\",\n    \"order_timestamp\": \"2019-05-08T18:02:05Z\",\n    \"location_uid\": \"LG-567fhwer\",\n    \"rewards\": [\n      \"fheTRR\"\n    ],\n    \"payments\": [\n      {\n        \"issuer\": \"visa\",\n        \"last4\": \"1234\",\n        \"amount\": 10.45,\n        \"authorized_at\": \"2019-05-07T18:02:05Z\"\n      }\n    ],\n    \"items\": [\n      {\n        \"id\": \"ng-23492\",\n        \"name\": \"Cheese Pizza\",\n        \"price\": 9.95,\n        \"categories\": [\n          \"pizza\",\n          \"vegetarian\"\n        ],\n        \"modifiers\": [\n          {\n            \"id\": \"mod-123\",\n            \"name\": \"Extra Cheese\",\n            \"price\": 1.50,\n            \"item_base_price\": 8.45\n          }\n        ]\n      }\n    ],\n    \"subtotal\": 23.45\n  }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://loyalty.thanxsandbox.com/api/baskets",
							"protocol": "https",
							"host": [
								"loyalty",
								"thanxsandbox",
								"com"
							],
							"path": [
								"api",
								"baskets"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Partner API",
			"item": [
				{
					"name": "Auth",
					"item": [
						{
							"name": "Create Access Token",
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "X-ClientId",
										"value": "${client_id}"
									},
									{
										"key": "Accept-Version",
										"value": "v4.0"
									},
									{
										"key": "Content-Type",
										"value": "application/json"
									},
									{
										"key": "Authorization",
										"value": "Bearer ${access_token}"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"merchant_id\": \"${merchant_id}\",\n    \"email\": \"example@example.com\",\n    \"expires_in\": 3600\n  }",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "https://api.thanxsandbox.com/partner/oauth/token",
									"protocol": "https",
									"host": [
										"api",
										"thanxsandbox",
										"com"
									],
									"path": [
										"partner",
										"oauth",
										"token"
									]
								}
							},
							"response": []
						}
					]
				}
			]
		}
	]
}