{
	"info": {
		"_postman_id": "d985f0df-95a5-4791-8f65-b8762ae9de4e",
		"name": "Apply Coupons Supercell API V1",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "49651880",
		"_collection_link": "https://arshad-arshadli-01.postman.co/workspace/Team-Workspace~5e631fce-33fc-4438-860d-a3a419a82558/collection/49651880-d985f0df-95a5-4791-8f65-b8762ae9de4e?action=share&source=collection_link&creator=49651880"
	},
	"item": [
		{
			"name": "Get Product Categories",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{password}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "{{username}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{hostname}}/categories",
					"host": [
						"{{hostname}}"
					],
					"path": [
						"categories"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Products",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{password}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "{{username}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{hostname}}/products?category_id=54",
					"host": [
						"{{hostname}}"
					],
					"path": [
						"products"
					],
					"query": [
						{
							"key": "category_id",
							"value": "54"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Check Balance",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{password}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "{{username}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{hostname}}/check-balance",
					"host": [
						"{{hostname}}"
					],
					"path": [
						"check-balance"
					]
				}
			},
			"response": []
		},
		{
			"name": "Create Order",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{password}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "{{username}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"product_id\": 35,\n    \"fields\": [\n        {\n            \"name\": \"supercell\",\n            \"value\": \"example_user@gmail.com\"\n        }\n    ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{hostname}}/create-order",
					"host": [
						"{{hostname}}"
					],
					"path": [
						"create-order"
					]
				}
			},
			"response": []
		},
		{
			"name": "Send Order Otp",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{password}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "{{username}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"order_id\": \"115524\",\n    \"otp\": \"111111\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{hostname}}/send-order-otp",
					"host": [
						"{{hostname}}"
					],
					"path": [
						"send-order-otp"
					]
				}
			},
			"response": []
		},
		{
			"name": "Cancel Order",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{password}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "{{username}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"order_id\": \"115524\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{hostname}}/cancel-order",
					"host": [
						"{{hostname}}"
					],
					"path": [
						"cancel-order"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Orders",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{password}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "{{username}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{hostname}}/orders?status=processing&per_page=1&page=1",
					"host": [
						"{{hostname}}"
					],
					"path": [
						"orders"
					],
					"query": [
						{
							"key": "status",
							"value": "processing"
						},
						{
							"key": "per_page",
							"value": "1"
						},
						{
							"key": "page",
							"value": "1"
						}
					]
				}
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "hostname",
			"value": "https://supercell-api.apply.coupons/v1"
		},
		{
			"key": "username",
			"value": "username"
		},
		{
			"key": "password",
			"value": "password"
		}
	]
}