{
	"info": {
		"_postman_id": "a751f67d-c2d7-456f-a99b-c886f39c93b1",
		"name": "Pathao",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "48065666",
		"_collection_link": "https://taskco-erp-development.postman.co/workspace/Taskco-ERP-Development~d3776240-0031-47a6-8af5-20c00530e8c8/collection/48065666-a751f67d-c2d7-456f-a99b-c886f39c93b1?action=share&source=collection_link&creator=48065666"
	},
	"item": [
		{
			"name": "Issue an Access Token",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n   \"client_id\": \"{{client_id}}\",\n   \"client_secret\": \"{{client_secret}}\",\n   \"grant_type\": \"password\",\n   \"username\": \"{{your_email}}\",\n   \"password\": \"{{your_password}}\"\n  }",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/issue-token",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"issue-token"
					]
				}
			},
			"response": []
		},
		{
			"name": "Issue an Access Token from Refresh Token",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n   \"client_id\": \"{{client_id}}\",\n   \"client_secret\": \"{{client_secret}}\",\n   \"grant_type\": \"refresh_token\",\n   \"refresh_token\": \"def50200a737950a4322f98e7b092808ca09e28aaddf78ac9cd492a6529d96f01b4448642ad56a2ba9cb78b84fee66f027498474d09616a6c82f6f635a21a1302242cde242a345fe1a61246a923ba6f1d29e300fb33a0b133ac9873e09ad626a36c44014a996a624ffb0c222e977895a7571fd81feebf6a0f7c77b5f13b17352f124bdfb3a3645a44b6fd0d4a9c3946c528ae8604a060c1833276fd339b4528f968750cfd7961061bef00d0287cada61df079cbb3bcea0358922a6252e5ac9ce9851cf2ea4f0d27313f44ba28b0f4d24c8f3807bfdcfe5348fdabb786d53e1e8c0e505cd9cdc7ec2dcd3e1628b970547fea954474614962cb6d12973ad10a72765833b9c79765b592a3bd566b029d8aed4c92d33b1e6c3a84ea2ab43bb58e3bb222a9a7a6fd104d3147502fe70ce742094cf04f5d58041dce002b3312c74b5106195b9e32e736b3b3d19307ec09c2cc5a89874bb888096634f\"\n  }",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/issue-token",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"issue-token"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get List of Cities",
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json; charset=UTF-8"
					},
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": []
				},
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/city-list",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"city-list"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get zones inside a particular city",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json; charset=UTF-8"
					},
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}"
					}
				],
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/cities/{{city_id}}/zone-list",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"cities",
						"{{city_id}}",
						"zone-list"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get areas inside a particular zone",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json; charset=UTF-8"
					},
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}"
					}
				],
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/zones/{{zone_id}}/area-list",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"zones",
						"{{zone_id}}",
						"area-list"
					]
				}
			},
			"response": []
		},
		{
			"name": "Create a New Order",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n   \"store_id\": {{merchant_store_id}},\n   \"merchant_order_id\": \"{{merchant_order_id}}\",\n   \"recipient_name\": \"Demo Recipient\",\n   \"recipient_phone\": \"01796234234\",\n   \"recipient_address\": \"House 123, Road 4, Sector 10, Uttara, Dhaka-1230, Bangladesh\",\n   \"delivery_type\": 48,\n   \"item_type\": 2,\n   \"special_instruction\": \"Need to Delivery before 5 PM\",\n   \"item_quantity\": 1,\n   \"item_weight\": \"0.5\",\n   \"item_description\": \"this is a Cloth item, price- 3000\",\n   \"amount_to_collect\": 900\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/orders",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"orders"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Merchant Store Info",
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json; charset=UTF-8"
					},
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/stores",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"stores"
					]
				}
			},
			"response": []
		},
		{
			"name": "Create a New Store",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n   \"name\": \"Taskco Store\",\n   \"contact_name\": \"Taskco Marchent\",\n   \"contact_number\": \"01844536644\",\n   \"address\": \"House 123, Road 4, Sector 10, Uttara, Dhaka-1230, Bangladesh\",\n   \"city_id\": {{city_id}},\n   \"zone_id\": {{zone_id}},\n   \"area_id\": {{area_id}}\n  }",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/stores",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"stores"
					]
				}
			},
			"response": []
		},
		{
			"name": "Price Calculation Api",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json; charset=UTF-8"
					},
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n   \"store_id\": \"{{merchant_store_id}}\",\n   \"item_type\": 2,\n   \"delivery_type\": 48,\n   \"item_weight\": 0.5,\n   \"recipient_city\": {{city_id}},\n   \"recipient_zone\": {{zone_id}}\n  }",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/merchant/price-plan",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"merchant",
						"price-plan"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Order Short Info",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}"
					}
				],
				"url": {
					"raw": "{{base_url}}/aladdin/api/v1/orders/{{consignment_id}}/info",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"aladdin",
						"api",
						"v1",
						"orders",
						"{{consignment_id}}",
						"info"
					]
				}
			},
			"response": []
		}
	]
}