{
	"info": {
		"_postman_id": "a5bcf2d2-b979-44b1-ac4f-186830a4a7e5",
		"name": "Loyalty API",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "39093723"
	},
	"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": "Create or Update basket (promo code)",
			"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"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"order-abc-123\",\n    \"state\": \"billed\",\n    \"order_timestamp\": \"2026-06-08T18:02:05Z\",\n    \"location_uid\": \"LG-567fhwer\",\n    \"promo_code\": \"SUMMER10\",\n    \"payments\": [\n      {\n        \"issuer\": \"visa\",\n        \"last4\": \"1234\",\n        \"amount\": 20.00,\n        \"authorized_at\": \"2026-06-07T18:02:05Z\"\n      }\n    ],\n    \"items\": [\n      {\n        \"id\": \"ng-23492\",\n        \"name\": \"Cheese Pizza\",\n        \"price\": 20.00,\n        \"categories\": [\n          \"pizza\"\n        ]\n      }\n    ],\n    \"subtotal\": 20.00\n  }",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://loyalty.thanxsandbox.com/api/baskets",
					"protocol": "https",
					"host": [
						"loyalty",
						"thanxsandbox",
						"com"
					],
					"path": [
						"api",
						"baskets"
					]
				}
			},
			"response": []
		}
	]
}