{
	"info": {
		"_postman_id": "orders-contact-us-collection",
		"name": "Orders & Contact Us API",
		"description": "Postman collection for Order Checkout and Contact Us endpoints",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Orders",
			"item": [
				{
					"name": "Checkout Order",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{client_token}}",
								"type": "text",
								"description": "JWT token for authenticated client user"
							},
							{
								"key": "Accept-Language",
								"value": "en",
								"type": "text",
								"description": "Language: en or ar"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"payment_method\": 1,\n    \"address_id\": 1,\n    \"notes\": \"Please deliver during business hours\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/api/client/orders/checkout",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"client",
								"orders",
								"checkout"
							]
						},
						"description": "Checkout cart and create order. Payment methods: 1=WALLET, 2=CREDIT_CARD, 3=CASH_ON_DELIVERY"
					},
					"response": []
				}
			],
			"description": "Order management endpoints for authenticated clients"
		},
		{
			"name": "Contact Us - Guest",
			"item": [
				{
					"name": "Submit Contact Message",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Accept-Language",
								"value": "en",
								"type": "text",
								"description": "Language: en or ar"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"email\": \"john.doe@example.com\",\n    \"message\": \"I would like to inquire about your products and services. Please contact me at your earliest convenience.\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/api/guest/contact-us",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"guest",
								"contact-us"
							]
						},
						"description": "Submit a contact message as a guest user. If user is authenticated, user_id will be automatically appended."
					},
					"response": []
				}
			],
			"description": "Contact Us endpoints for guest users (no authentication required)"
		},
		{
			"name": "Contact Us - Admin",
			"item": [
				{
					"name": "List Contact Messages",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{admin_token}}",
								"type": "text",
								"description": "JWT token for authenticated admin/supervisor"
							},
							{
								"key": "Accept-Language",
								"value": "en",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/admin/contact-us?page=1&per_page=15&search=&sort_by=created_at&sort_order=desc",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"admin",
								"contact-us"
							],
							"query": [
								{
									"key": "page",
									"value": "1",
									"description": "Page number"
								},
								{
									"key": "per_page",
									"value": "15",
									"description": "Items per page"
								},
								{
									"key": "search",
									"value": "",
									"description": "Search query"
								},
								{
									"key": "sort_by",
									"value": "created_at",
									"description": "Sort field"
								},
								{
									"key": "sort_order",
									"value": "desc",
									"description": "Sort order: asc or desc"
								}
							]
						},
						"description": "Get list of all contact messages with pagination and filtering"
					},
					"response": []
				},
				{
					"name": "Get Contact Message Details",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{admin_token}}",
								"type": "text"
							},
							{
								"key": "Accept-Language",
								"value": "en",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/admin/contact-us/1",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"admin",
								"contact-us",
								"1"
							],
							"variable": [
								{
									"key": "id",
									"value": "1",
									"description": "Contact message ID"
								}
							]
						},
						"description": "Get details of a specific contact message"
					},
					"response": []
				},
				{
					"name": "Mark Contact Message as Read",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{admin_token}}",
								"type": "text"
							},
							{
								"key": "Accept-Language",
								"value": "en",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/admin/contact-us/1/mark-as-read",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"admin",
								"contact-us",
								"1",
								"mark-as-read"
							],
							"variable": [
								{
									"key": "id",
									"value": "1"
								}
							]
						},
						"description": "Mark a specific contact message as read"
					},
					"response": []
				},
				{
					"name": "Mark All Contact Messages as Read",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{admin_token}}",
								"type": "text"
							},
							{
								"key": "Accept-Language",
								"value": "en",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/admin/contact-us/mark-all-as-read",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"admin",
								"contact-us",
								"mark-all-as-read"
							]
						},
						"description": "Mark all unread contact messages as read"
					},
					"response": []
				},
				{
					"name": "Send Response to Contact Message",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{admin_token}}",
								"type": "text"
							},
							{
								"key": "Accept-Language",
								"value": "en",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"response_message\": \"Thank you for contacting us. We have received your message and will get back to you soon.\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/api/admin/contact-us/1/send-response",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"admin",
								"contact-us",
								"1",
								"send-response"
							],
							"variable": [
								{
									"key": "id",
									"value": "1"
								}
							]
						},
						"description": "Send a response to a contact message"
					},
					"response": []
				},
				{
					"name": "Delete Contact Message",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{admin_token}}",
								"type": "text"
							},
							{
								"key": "Accept-Language",
								"value": "en",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/admin/contact-us/1",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"admin",
								"contact-us",
								"1"
							],
							"variable": [
								{
									"key": "id",
									"value": "1"
								}
							]
						},
						"description": "Delete a contact message"
					},
					"response": []
				}
			],
			"description": "Contact Us management endpoints for admin/supervisor users"
		}
	],
	"variable": [
		{
			"key": "base_url",
			"value": "http://localhost",
			"type": "string",
			"description": "Base URL of the API"
		},
		{
			"key": "client_token",
			"value": "",
			"type": "string",
			"description": "JWT token for authenticated client user. Get this from login endpoint."
		},
		{
			"key": "admin_token",
			"value": "",
			"type": "string",
			"description": "JWT token for authenticated admin/supervisor user. Get this from admin login endpoint."
		}
	]
}
