{
	"info": {
		"_postman_id": "8d4ce2b9-2700-43f9-a47c-8b3601e40bf8",
		"name": "Supply Domain - Customers & Customer Locations API",
		"description": "Complete API collection for Supply Domain Customers and Customer Locations Management with full request/response examples",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "50681087"
	},
	"item": [
		{
			"name": "Customers",
			"item": [
				{
					"name": "List All Customers",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/customers?per_page=15&page=1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customers"
							],
							"query": [
								{
									"key": "per_page",
									"value": "15"
								},
								{
									"key": "page",
									"value": "1"
								}
							]
						},
						"description": "Get list of all active customers with pagination"
					},
					"response": [
						{
							"name": "List All Customers - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									},
									{
										"key": "Accept",
										"value": "application/json",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customers",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customers"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customers retrieved successfully\",\n  \"data\": {\n    \"data\": [\n      {\n        \"id\": 1,\n        \"name\": \"Acme Corporation\",\n        \"email\": \"contact@acme.com\",\n        \"phone\": \"+966-50-123-4567\",\n        \"address\": \"123 Business St\",\n        \"city\": \"Riyadh\",\n        \"country\": \"Saudi Arabia\",\n        \"type\": \"wholesale\",\n        \"is_active\": true,\n        \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n        \"updated_at\": \"2025-12-21T10:30:00.000000Z\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Tech Solutions Ltd\",\n        \"email\": \"info@techsol.com\",\n        \"phone\": \"+966-50-234-5678\",\n        \"address\": \"456 Tech Avenue\",\n        \"city\": \"Jeddah\",\n        \"country\": \"Saudi Arabia\",\n        \"type\": \"retail\",\n        \"is_active\": true,\n        \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n        \"updated_at\": \"2025-12-21T10:30:00.000000Z\",\n        \"deleted_at\": null\n      }\n    ],\n    \"links\": {\n      \"first\": \"http://localhost:8000/supply/customers?page=1\",\n      \"last\": \"http://localhost:8000/supply/customers?page=1\",\n      \"prev\": null,\n      \"next\": null\n    },\n    \"meta\": {\n      \"current_page\": 1,\n      \"from\": 1,\n      \"last_page\": 1,\n      \"path\": \"http://localhost:8000/supply/customers\",\n      \"per_page\": 15,\n      \"to\": 2,\n      \"total\": 2\n    }\n  },\n  \"status_code\": 200\n}\n"
						}
					]
				},
				{
					"name": "Get Customer by ID",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/customers/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customers",
								"1"
							]
						},
						"description": "Get a specific customer by ID"
					},
					"response": [
						{
							"name": "Get Customer - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customers/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customers",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer retrieved successfully\",\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"Acme Corporation\",\n    \"email\": \"contact@acme.com\",\n    \"phone\": \"+966-50-123-4567\",\n    \"address\": \"123 Business St\",\n    \"city\": \"Riyadh\",\n    \"country\": \"Saudi Arabia\",\n    \"type\": \"wholesale\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"updated_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"deleted_at\": null\n  },\n  \"status_code\": 200\n}\n"
						},
						{
							"name": "Get Customer - Not Found",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customers/999",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customers",
										"999"
									]
								}
							},
							"status": "Not Found",
							"code": 404,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": false,\n  \"message\": \"No query results found for model [App\\\\Domains\\\\Supply\\\\Customers\\\\Models\\\\Customer]\",\n  \"status_code\": 404\n}\n"
						}
					]
				},
				{
					"name": "Create Customer",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"customer_code\": \"CUST-00122\",\n    \"name\": \"Global Traders Inc\",\n    \"email\": \"info@globaltraders.com\",\n    \"phone\": \"+966-50-999-8888\",\n    \"type\": \"wholesale\",\n    \"tax_id\": \"300123456789012\",\n    \"credit_limit\": 50000.00,\n    \"payment_terms\": \"Net 30\",\n    \"is_active\": true,\n    \"created_by\": 1,\n    \"updated_by\": 1\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/customers",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customers"
							]
						},
						"description": "Create a new customer"
					},
					"response": [
						{
							"name": "Create Customer - Success",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									},
									{
										"key": "Content-Type",
										"value": "application/json",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"name\": \"Global Traders Inc\",\n  \"email\": \"info@globaltraders.com\",\n  \"phone\": \"+966-50-999-8888\",\n  \"address\": \"789 Commerce Plaza\",\n  \"city\": \"Dammam\",\n  \"country\": \"Saudi Arabia\",\n  \"type\": \"wholesale\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/supply/customers",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customers"
									]
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer created successfully\",\n  \"data\": {\n    \"id\": 3,\n    \"name\": \"Global Traders Inc\",\n    \"email\": \"info@globaltraders.com\",\n    \"phone\": \"+966-50-999-8888\",\n    \"address\": \"789 Commerce Plaza\",\n    \"city\": \"Dammam\",\n    \"country\": \"Saudi Arabia\",\n    \"type\": \"wholesale\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-25T10:45:30.000000Z\",\n    \"updated_at\": \"2025-12-25T10:45:30.000000Z\",\n    \"deleted_at\": null\n  },\n  \"status_code\": 201\n}\n"
						},
						{
							"name": "Create Customer - Validation Error",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									},
									{
										"key": "Content-Type",
										"value": "application/json",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"name\": \"Invalid Customer\",\n  \"email\": \"contact@acme.com\",\n  \"phone\": \"+966-50-123-4567\"\n}"
								},
								"url": {
									"raw": "http://localhost:8000/supply/customers",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customers"
									]
								}
							},
							"status": "Unprocessable Entity",
							"code": 422,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": false,\n  \"message\": \"Validation failed\",\n  \"data\": {\n    \"errors\": {\n      \"email\": [\n        \"The email has already been taken.\"\n      ]\n    }\n  },\n  \"status_code\": 422\n}\n"
						}
					]
				},
				{
					"name": "Update Customer",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"customer_code\": \"CUST-00122\",\n    \"name\": \"Global Traders Inc\",\n    \"email\": \"info@globaltraders.com\",\n    \"phone\": \"+966-50-999-8888\",\n    \"type\": \"wholesale\",\n    \"tax_id\": \"300123456789012\",\n    \"credit_limit\": 50000.00,\n    \"payment_terms\": \"Net 30\",\n    \"is_active\": true,\n    \"created_by\": 1,\n    \"updated_by\": 1\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/customers/6",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customers",
								"6"
							]
						},
						"description": "Update an existing customer"
					},
					"response": [
						{
							"name": "Update Customer - Success",
							"originalRequest": {
								"method": "PUT",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									},
									{
										"key": "Content-Type",
										"value": "application/json",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"name\": \"Acme Corporation Updated\",\n  \"phone\": \"+966-50-111-2222\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/supply/customers/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customers",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer updated successfully\",\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"Acme Corporation Updated\",\n    \"email\": \"contact@acme.com\",\n    \"phone\": \"+966-50-111-2222\",\n    \"address\": \"123 Business St\",\n    \"city\": \"Riyadh\",\n    \"country\": \"Saudi Arabia\",\n    \"type\": \"wholesale\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"updated_at\": \"2025-12-25T10:50:15.000000Z\",\n    \"deleted_at\": null\n  },\n  \"status_code\": 200\n}\n"
						}
					]
				},
				{
					"name": "Delete Customer",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/customers/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customers",
								"1"
							]
						},
						"description": "Delete a customer (soft delete)"
					},
					"response": [
						{
							"name": "Delete Customer - Success",
							"originalRequest": {
								"method": "DELETE",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customers/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customers",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer deleted successfully\",\n  \"status_code\": 200\n}\n"
						}
					]
				},
				{
					"name": "Restore Customer",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/customers/1/restore",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customers",
								"1",
								"restore"
							]
						},
						"description": "Restore a soft-deleted customer"
					},
					"response": [
						{
							"name": "Restore Customer - Success",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customers/1/restore",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customers",
										"1",
										"restore"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer restored successfully\",\n  \"status_code\": 200\n}\n"
						}
					]
				}
			]
		},
		{
			"name": "Customer Locations",
			"item": [
				{
					"name": "List All Customer Locations",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/customer-locations?per_page=15&page=1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customer-locations"
							],
							"query": [
								{
									"key": "per_page",
									"value": "15"
								},
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "customer_id",
									"value": "2",
									"description": "Search with Customer ID",
									"disabled": true
								}
							]
						},
						"description": "Get list of all customer locations with pagination"
					},
					"response": [
						{
							"name": "List All Locations - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customer-locations",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customer-locations"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer locations retrieved successfully\",\n  \"data\": {\n    \"data\": [\n      {\n        \"id\": 1,\n        \"customer_id\": 1,\n        \"location_name\": \"Riyadh Headquarters\",\n        \"address\": \"123 Business St\",\n        \"city\": \"Riyadh\",\n        \"postal_code\": \"11111\",\n        \"phone\": \"+966-50-123-4567\",\n        \"is_active\": true,\n        \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n        \"updated_at\": \"2025-12-21T10:30:00.000000Z\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 2,\n        \"customer_id\": 1,\n        \"location_name\": \"Jeddah Branch\",\n        \"address\": \"456 Commerce Ave\",\n        \"city\": \"Jeddah\",\n        \"postal_code\": \"21111\",\n        \"phone\": \"+966-50-234-5678\",\n        \"is_active\": true,\n        \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n        \"updated_at\": \"2025-12-21T10:30:00.000000Z\",\n        \"deleted_at\": null\n      }\n    ],\n    \"links\": {\n      \"first\": \"http://localhost:8000/supply/customer-locations?page=1\",\n      \"last\": \"http://localhost:8000/supply/customer-locations?page=1\",\n      \"prev\": null,\n      \"next\": null\n    },\n    \"meta\": {\n      \"current_page\": 1,\n      \"from\": 1,\n      \"last_page\": 1,\n      \"path\": \"http://localhost:8000/supply/customer-locations\",\n      \"per_page\": 15,\n      \"to\": 2,\n      \"total\": 2\n    }\n  },\n  \"status_code\": 200\n}\n"
						}
					]
				},
				{
					"name": "Get Location by ID",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/customer-locations/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customer-locations",
								"1"
							]
						},
						"description": "Get a specific customer location by ID"
					},
					"response": [
						{
							"name": "Get Location - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customer-locations/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customer-locations",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer location retrieved successfully\",\n  \"data\": {\n    \"id\": 1,\n    \"customer_id\": 1,\n    \"location_name\": \"Riyadh Headquarters\",\n    \"address\": \"123 Business St\",\n    \"city\": \"Riyadh\",\n    \"postal_code\": \"11111\",\n    \"phone\": \"+966-50-123-4567\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"updated_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"deleted_at\": null\n  },\n  \"status_code\": 200\n}\n"
						},
						{
							"name": "Get Location - Not Found",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customer-locations/999",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customer-locations",
										"999"
									]
								}
							},
							"status": "Not Found",
							"code": 404,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": false,\n  \"message\": \"No query results found for model [App\\\\Domains\\\\Supply\\\\Customers\\\\Models\\\\CustomerLocation]\",\n  \"status_code\": 404\n}\n"
						}
					]
				},
				{
					"name": "Create Customer Location",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"customer_id\": 2,\n  \"code\": \"LOC00122\",\n  \"name\": \"Main Warehouse\",\n  \"type\": \"warehouse\",\n  \"address_line1\": \"123 Commerce Street\",\n  \"city\": \"Cairo\",\n  \"country\": \"Egypt\",\n  \"latitude\": 30.0444,\n  \"longitude\": 31.2357,\n  \"is_active\": true,\n  \"created_by\": 1,\n  \"updated_by\": 1\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/customer-locations",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customer-locations"
							]
						},
						"description": "Create a new customer location"
					},
					"response": [
						{
							"name": "Create Location - Success",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									},
									{
										"key": "Content-Type",
										"value": "application/json",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"customer_id\": 1,\n  \"location_name\": \"Dammam Warehouse\",\n  \"address\": \"789 Industrial Zone\",\n  \"city\": \"Dammam\",\n  \"postal_code\": \"31111\",\n  \"phone\": \"+966-50-345-6789\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/supply/customer-locations",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customer-locations"
									]
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer location created successfully\",\n  \"data\": {\n    \"id\": 3,\n    \"customer_id\": 1,\n    \"location_name\": \"Dammam Warehouse\",\n    \"address\": \"789 Industrial Zone\",\n    \"city\": \"Dammam\",\n    \"postal_code\": \"31111\",\n    \"phone\": \"+966-50-345-6789\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-25T11:00:00.000000Z\",\n    \"updated_at\": \"2025-12-25T11:00:00.000000Z\",\n    \"deleted_at\": null\n  },\n  \"status_code\": 201\n}\n"
						}
					]
				},
				{
					"name": "Update Customer Location",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"customer_id\": 2,\n  \"code\": \"LOC00122qwd\",\n  \"name\": \"Main Warehouse\",\n  \"type\": \"warehouse\",\n  \"address_line1\": \"123 Commerce Street\",\n  \"city\": \"Cairo\",\n  \"country\": \"Egypt\",\n  \"latitude\": 30.0444,\n  \"longitude\": 31.2357,\n  \"is_active\": true,\n  \"created_by\": 1,\n  \"updated_by\": 1\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/customer-locations/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customer-locations",
								"1"
							]
						},
						"description": "Update an existing customer location"
					},
					"response": [
						{
							"name": "Update Location - Success",
							"originalRequest": {
								"method": "PUT",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									},
									{
										"key": "Content-Type",
										"value": "application/json",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"location_name\": \"Riyadh Main Office\",\n  \"phone\": \"+966-50-111-2222\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/supply/customer-locations/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customer-locations",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer location updated successfully\",\n  \"data\": {\n    \"id\": 1,\n    \"customer_id\": 1,\n    \"location_name\": \"Riyadh Main Office\",\n    \"address\": \"123 Business St\",\n    \"city\": \"Riyadh\",\n    \"postal_code\": \"11111\",\n    \"phone\": \"+966-50-111-2222\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"updated_at\": \"2025-12-25T11:05:15.000000Z\",\n    \"deleted_at\": null\n  },\n  \"status_code\": 200\n}\n"
						}
					]
				},
				{
					"name": "Delete Customer Location",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/customer-locations/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customer-locations",
								"1"
							]
						},
						"description": "Delete a customer location (soft delete)"
					},
					"response": [
						{
							"name": "Delete Location - Success",
							"originalRequest": {
								"method": "DELETE",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customer-locations/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customer-locations",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer location deleted successfully\",\n  \"status_code\": 200\n}\n"
						}
					]
				},
				{
					"name": "Restore Customer Location",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/customer-locations/1/restore",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"customer-locations",
								"1",
								"restore"
							]
						},
						"description": "Restore a soft-deleted customer location"
					},
					"response": [
						{
							"name": "Restore Location - Success",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/supply/customer-locations/1/restore",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"supply",
										"customer-locations",
										"1",
										"restore"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"message\": \"Customer location restored successfully\",\n  \"status_code\": 200\n}\n"
						}
					]
				}
			]
		}
	],
	"variable": [
		{
			"key": "BASE_URL",
			"value": "http://localhost:8000",
			"type": "string"
		},
		{
			"key": "access_token",
			"value": "your_bearer_token_here",
			"type": "string"
		}
	]
}