{
	"info": {
		"_postman_id": "6b9b5f13-efb7-40a9-9721-64fced22f65b",
		"name": "Pay At The Table",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Users",
			"item": [
				{
					"name": "Create User",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"user\": {\n      \"email\": \"jane.smith@example.com\",\n      \"phone\": \"+14158672345\",\n      \"first_name\": \"Jane\",\n      \"last_name\":  \"Smith\",\n      \"birth_date\": {\n        \"month\": 8,\n        \"day\": 14\n      },\n      \"zip_code\": \"12345\"\n    }\n  }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api.thanxsandbox.com/users/",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"users",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Get User",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/users/me",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"users",
								"me"
							]
						}
					},
					"response": []
				},
				{
					"name": "Update User",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/users/:id",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"users",
								":id"
							],
							"variable": [
								{
									"key": "id",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete User",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\"message\": \"Optional message\"}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api.thanxsandbox.com/users/me",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"users",
								"me"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "SSO",
			"item": [
				{
					"name": "Acquire Authorization Code",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"client_id\": \"${client_id}\",\n    \"redirect_uri\": \"https://www.example.com/oauth/callback\",\n    \"response_type\": \"code\",\n    \"scope\": \"passwordless\",\n    \"username\": \"john.smith@example.com\"\n  }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api.thanxsandbox.com/oauth/authorize",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"oauth",
								"authorize"
							]
						}
					},
					"response": []
				},
				{
					"name": "Acquire Access Token",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"grant_type\": \"authorization_code\",\n    \"client_id\": \"${client_id}\",\n    \"client_secret\": \"${client_secret}\",\n    \"code\": \"${code}\",\n    \"redirect_uri\": \"https://www.example.com/oauth/callback\"\n  }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api.thanxsandbox.com/oauth/token",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"oauth",
								"token"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Loyalty",
			"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 and 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": "Cards",
			"item": [
				{
					"name": "Create Card",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"card\": {\n      \"number\": \"1234123412341234\"\n    }\n  }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://secure.api.thanxsandbox.com/cards",
							"protocol": "https",
							"host": [
								"secure",
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"cards"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Cards",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/cards",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"cards"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Card",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/cards/:id",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"cards",
								":id"
							],
							"variable": [
								{
									"key": "id",
									"value": ""
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Rewards",
			"item": [
				{
					"name": "Get Rewards",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/rewards",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"rewards"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Tags",
			"item": [
				{
					"name": "Get Tags",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/tags",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"tags"
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Tags",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"tag\": {\n      \"key\": \"allergens\",\n      \"merchant_id\": \"weroifs\",\n      \"values\": [\n        \"gluten\",\n        \"soy\",\n        \"dairy\",\n        \"honey\"\n      ]\n    }\n  }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api.thanxsandbox.com/tags",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"tags"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Tag",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/tags/:id",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"tags",
								":id"
							],
							"variable": [
								{
									"key": "id",
									"value": ""
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Communication Settings",
			"item": [
				{
					"name": "Get Communication Settings",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/communication_settings",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"communication_settings"
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Communication Settings",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"communication_setting\": {\n      \"reward_earned\": {\n        \"notification\": false,\n        \"email\": false\n      },\n      \"feedback_available\": {\n        \"notification\": true\n      },\n      \"marketing_general\": {\n        \"email\": true,\n        \"sms\": false\n      }\n    }\n  }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api.thanxsandbox.com/communication_settings/:id",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"communication_settings",
								":id"
							],
							"variable": [
								{
									"key": "id",
									"value": ""
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Points",
			"item": [
				{
					"name": "Get Points Balance",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/points_experiences/:id/balance",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"points_experiences",
								":id",
								"balance"
							],
							"variable": [
								{
									"key": "id",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Points Products",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/points_products",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"points_products"
							]
						}
					},
					"response": []
				},
				{
					"name": "Exchange Points Product",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/points_products/:id/rewards",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"points_products",
								":id",
								"rewards"
							],
							"variable": [
								{
									"key": "id",
									"value": ""
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Purchases",
			"item": [
				{
					"name": "Get Purchases",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/purchases",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"purchases"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Purchase",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Version",
								"value": "v4.0"
							},
							{
								"key": "Accept",
								"value": "application/json"
							},
							{
								"key": "Authorization",
								"value": "Bearer $token"
							},
							{
								"key": "X-ClientId",
								"value": "$client_id"
							}
						],
						"url": {
							"raw": "https://api.thanxsandbox.com/purchases/:id",
							"protocol": "https",
							"host": [
								"api",
								"thanxsandbox",
								"com"
							],
							"path": [
								"purchases",
								":id"
							],
							"variable": [
								{
									"key": "id",
									"value": ""
								}
							]
						}
					},
					"response": []
				}
			]
		}
	]
}