{
	"info": {
		"_postman_id": "9da6ae8b-403c-4d79-ad98-b5a64351ac98",
		"name": "Supply Domain - Supply Orders API",
		"description": "Complete API collection for Supply Domain Supply Orders Management with full request/response examples",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "50681087"
	},
	"item": [
		{
			"name": "Supply Orders",
			"item": [
				{
					"name": "List All Supply Orders",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/orders?per_page=15&page=1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"orders"
							],
							"query": [
								{
									"key": "per_page",
									"value": "15"
								},
								{
									"key": "page",
									"value": "1"
								}
							]
						},
						"description": "Get list of all supply orders with pagination"
					},
					"response": [
						{
							"name": "List All Supply Orders - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									},
									{
										"key": "Accept",
										"value": "application/json",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply orders retrieved successfully\",\n  \"result\": {\n    \"data\": [\n      {\n        \"id\": 1,\n        \"order_code\": \"SO-2025-001\",\n        \"supplier_id\": 1,\n        \"customer_id\": 1,\n        \"order_date\": \"2025-12-21\",\n        \"expected_delivery_date\": \"2025-12-28\",\n        \"status\": \"pending\",\n        \"total_amount\": 5000.00,\n        \"notes\": \"Urgent order\",\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/api/v1/supply/orders?page=1\",\n      \"last\": \"http://localhost:8000/api/v1/supply/orders?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/api/v1/supply/orders\",\n      \"per_page\": 15,\n      \"to\": 1,\n      \"total\": 1\n    }\n  }\n}\n"
						}
					]
				},
				{
					"name": "Get Supply Order 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/orders/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"orders",
								"1"
							]
						},
						"description": "Get a specific supply order by ID"
					},
					"response": [
						{
							"name": "Get Supply Order - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply order retrieved successfully\",\n  \"result\": {\n    \"id\": 1,\n    \"order_code\": \"SO-2025-001\",\n    \"supplier_id\": 1,\n    \"customer_id\": 1,\n    \"order_date\": \"2025-12-21\",\n    \"expected_delivery_date\": \"2025-12-28\",\n    \"status\": \"pending\",\n    \"total_amount\": 5000.00,\n    \"notes\": \"Urgent order\",\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"
						}
					]
				},
				{
					"name": "Create Supply Order",
					"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  \"order_number\": \"SO-202ewfwe\",\n  \"customer_id\": 1,\n  \"agent_id\": 2,\n  \"status\": \"pending\",      // pending,confirmed,processing,shipped,delivered,cancelled\n  \"type\": \"regular\",        // regular,special,bulk\n  \"priority\": \"high\",       //low,medium,high,urgent\n  \"is_emergency\": false,\n  \"data_completeness\": true,\n  \"required_delivery_date\": \"2025-12-31\",\n  \"estimated_total\": 15000.50,\n  \"notes\": \"Please handle with care. This order requires special packaging.\",\n  \"internal_notes\": \"VIP customer - expedite processing if possible\",\n  \"created_by\": 1,\n  \"updated_by\": 1\n}\n"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/orders",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"orders"
							]
						},
						"description": "Create a new supply order"
					},
					"response": [
						{
							"name": "Create Supply Order - 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  \"order_code\": \"SO-2025-004\",\n  \"supplier_id\": 3,\n  \"customer_id\": 4,\n  \"order_date\": \"2025-12-25\",\n  \"expected_delivery_date\": \"2026-01-02\",\n  \"status\": \"pending\",\n  \"total_amount\": 8500.75,\n  \"notes\": \"New Year order\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders"
									]
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 201,\n  \"message\": \"Supply order created successfully\",\n  \"result\": {\n    \"id\": 4,\n    \"order_code\": \"SO-2025-004\",\n    \"supplier_id\": 3,\n    \"customer_id\": 4,\n    \"order_date\": \"2025-12-25\",\n    \"expected_delivery_date\": \"2026-01-02\",\n    \"status\": \"pending\",\n    \"total_amount\": 8500.75,\n    \"notes\": \"New Year order\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-25T15:30:45.000000Z\",\n    \"updated_at\": \"2025-12-25T15:30:45.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				},
				{
					"name": "Update Supply Order",
					"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  \"order_number\": \"SO-2025-001\",\n  \"customer_id\": 1,\n  \"agent_id\": 2,\n  \"status\": \"confirmed\",      // pending,confirmed,processing,shipped,delivered,cancelled\n  \"type\": \"regular\",        // regular,special,bulk\n  \"priority\": \"high\",       //low,medium,high,urgent\n  \"is_emergency\": false,\n  \"data_completeness\": true,\n  \"required_delivery_date\": \"2025-12-31\",\n  \"estimated_total\": 15000.50,\n  \"notes\": \"Please handle with care. This order requires special packaging.\",\n  \"internal_notes\": \"VIP customer - expedite processing if possible\",\n  \"created_by\": 1,\n  \"updated_by\": 1\n}\n"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/orders/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"orders",
								"1"
							]
						},
						"description": "Update an existing supply order"
					},
					"response": [
						{
							"name": "Update Supply Order - 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  \"status\": \"confirmed\",\n  \"expected_delivery_date\": \"2025-12-29\",\n  \"notes\": \"Updated - confirmed by supplier\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply order updated successfully\",\n  \"result\": {\n    \"id\": 1,\n    \"order_code\": \"SO-2025-001\",\n    \"supplier_id\": 1,\n    \"customer_id\": 1,\n    \"order_date\": \"2025-12-21\",\n    \"expected_delivery_date\": \"2025-12-29\",\n    \"status\": \"confirmed\",\n    \"total_amount\": 5000.00,\n    \"notes\": \"Updated - confirmed by supplier\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"updated_at\": \"2025-12-25T16:45:30.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				},
				{
					"name": "Delete Supply Order",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/orders/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"orders",
								"1"
							]
						},
						"description": "Delete a supply order (soft delete)"
					},
					"response": [
						{
							"name": "Delete Supply Order - Success",
							"originalRequest": {
								"method": "DELETE",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply order deleted successfully\",\n  \"result\": null\n}\n"
						}
					]
				},
				{
					"name": "Restore Supply Order",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/orders/1/restore",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"orders",
								"1",
								"restore"
							]
						},
						"description": "Restore a soft-deleted supply order"
					},
					"response": [
						{
							"name": "Restore Supply Order - Success",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/restore",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"restore"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply order restored successfully\",\n  \"result\": {\n    \"id\": 1,\n    \"order_code\": \"SO-2025-001\",\n    \"supplier_id\": 1,\n    \"customer_id\": 1,\n    \"order_date\": \"2025-12-21\",\n    \"expected_delivery_date\": \"2025-12-29\",\n    \"status\": \"confirmed\",\n    \"total_amount\": 5000.00,\n    \"notes\": \"Updated - confirmed by supplier\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"updated_at\": \"2025-12-25T16:45:30.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				}
			]
		},
		{
			"name": "Supply Order Items",
			"item": [
				{
					"name": "List All Supply Order Items",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/order-items?per_page=15&page=1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"order-items"
							],
							"query": [
								{
									"key": "per_page",
									"value": "15"
								},
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "supply_order_id",
									"value": "1",
									"description": "Get for specific supply order",
									"disabled": true
								}
							]
						},
						"description": "Get list of all supply order items with pagination"
					},
					"response": [
						{
							"name": "List All Items - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply order items retrieved successfully\",\n  \"result\": {\n    \"data\": [\n      {\n        \"id\": 1,\n        \"supply_order_id\": 1,\n        \"product_code\": \"PROD-001\",\n        \"quantity\": 50,\n        \"unit_price\": 100.00,\n        \"total_price\": 5000.00,\n        \"status\": \"pending\",\n        \"notes\": \"First batch\",\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/api/v1/supply/orders/1/items?page=1\",\n      \"last\": \"http://localhost:8000/api/v1/supply/orders/1/items?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/api/v1/supply/orders/1/items\",\n      \"per_page\": 15,\n      \"to\": 1,\n      \"total\": 1\n    }\n  }\n}\n"
						}
					]
				},
				{
					"name": "Get Supply Order Item 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/order-items/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"order-items",
								"1"
							]
						},
						"description": "Get a specific supply order item by ID"
					},
					"response": [
						{
							"name": "Get Item - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply order item retrieved successfully\",\n  \"result\": {\n    \"id\": 1,\n    \"supply_order_id\": 1,\n    \"product_code\": \"PROD-001\",\n    \"quantity\": 50,\n    \"unit_price\": 100.00,\n    \"total_price\": 5000.00,\n    \"status\": \"pending\",\n    \"notes\": \"First batch\",\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"
						}
					]
				},
				{
					"name": "Create Supply Order Item",
					"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  \"supply_order_id\": 1,\n  \"catalog_item_id\": 5,\n  \"item_description\": \"High-quality steel pipes 2 inch diameter\",\n  \"quantity\": 100,\n  \"unit_of_measure\": \"pieces\",\n  \"status\": \"pending\",\n  \"estimated_unit_price\": 25.50,\n  \"notes\": \"Delivery required by end of month. Handle with care.\"\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/order-items",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"order-items"
							]
						},
						"description": "Create a new supply order item"
					},
					"response": [
						{
							"name": "Create Item - Success",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"product_code\": \"PROD-003\",\n  \"quantity\": 25,\n  \"unit_price\": 150.00,\n  \"status\": \"pending\",\n  \"notes\": \"New product batch\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items"
									]
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 201,\n  \"message\": \"Supply order item created successfully\",\n  \"result\": {\n    \"id\": 3,\n    \"supply_order_id\": 1,\n    \"product_code\": \"PROD-003\",\n    \"quantity\": 25,\n    \"unit_price\": 150.00,\n    \"total_price\": 3750.00,\n    \"status\": \"pending\",\n    \"notes\": \"New product batch\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-25T17:00:00.000000Z\",\n    \"updated_at\": \"2025-12-25T17:00:00.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				},
				{
					"name": "Update Supply Order Item",
					"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  \"supply_order_id\": 2,\n  \"catalog_item_id\": 5,\n  \"item_description\": \"High-quality steel pipes 2 inch diameter\",\n  \"quantity\": 1000,\n  \"unit_of_measure\": \"pieces\",\n  \"status\": \"pending\",\n  \"estimated_unit_price\": 25.50,\n  \"notes\": \"Delivery required by end of month. Handle with care.\"\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/order-items/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"order-items",
								"1"
							]
						},
						"description": "Update an existing supply order item"
					},
					"response": [
						{
							"name": "Update Item - 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  \"quantity\": 60,\n  \"unit_price\": 105.00,\n  \"status\": \"confirmed\",\n  \"notes\": \"Updated batch - increased quantity\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply order item updated successfully\",\n  \"result\": {\n    \"id\": 1,\n    \"supply_order_id\": 1,\n    \"product_code\": \"PROD-001\",\n    \"quantity\": 60,\n    \"unit_price\": 105.00,\n    \"total_price\": 6300.00,\n    \"status\": \"confirmed\",\n    \"notes\": \"Updated batch - increased quantity\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"updated_at\": \"2025-12-25T17:15:30.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				},
				{
					"name": "Delete Supply Order Item",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/order-items/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"order-items",
								"1"
							]
						},
						"description": "Delete a supply order item (soft delete)"
					},
					"response": [
						{
							"name": "Delete Item - Success",
							"originalRequest": {
								"method": "DELETE",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply order item deleted successfully\",\n  \"result\": null\n}\n"
						}
					]
				},
				{
					"name": "Restore Supply Order Item",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/order-items/1/restore",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"order-items",
								"1",
								"restore"
							]
						},
						"description": "Restore a soft-deleted supply order item"
					},
					"response": [
						{
							"name": "Restore Item - Success",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1/restore",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1",
										"restore"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Supply order item restored successfully\",\n  \"result\": {\n    \"id\": 1,\n    \"supply_order_id\": 1,\n    \"product_code\": \"PROD-001\",\n    \"quantity\": 60,\n    \"unit_price\": 105.00,\n    \"total_price\": 6300.00,\n    \"status\": \"confirmed\",\n    \"notes\": \"Updated batch - increased quantity\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-21T10:30:00.000000Z\",\n    \"updated_at\": \"2025-12-25T17:15:30.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				}
			]
		},
		{
			"name": "Supply Order Item Deliveries",
			"item": [
				{
					"name": "List All Deliveries",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/deliveries?per_page=15&page=1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"deliveries"
							],
							"query": [
								{
									"key": "per_page",
									"value": "15"
								},
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "supply_order_item_id",
									"value": "1",
									"description": "get for single item",
									"disabled": true
								}
							]
						},
						"description": "Get list of all deliveries for a supply order item"
					},
					"response": [
						{
							"name": "List All Deliveries - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1/deliveries",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1",
										"deliveries"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Deliveries retrieved successfully\",\n  \"result\": {\n    \"data\": [\n      {\n        \"id\": 1,\n        \"supply_order_item_id\": 1,\n        \"delivery_date\": \"2025-12-23\",\n        \"quantity_delivered\": 25,\n        \"delivery_location\": \"Warehouse A\",\n        \"delivery_notes\": \"First batch delivered\",\n        \"status\": \"delivered\",\n        \"is_active\": true,\n        \"created_at\": \"2025-12-23T08:00:00.000000Z\",\n        \"updated_at\": \"2025-12-23T08:00:00.000000Z\",\n        \"deleted_at\": null\n      }\n    ],\n    \"links\": {\n      \"first\": \"http://localhost:8000/api/v1/supply/orders/1/items/1/deliveries?page=1\",\n      \"last\": \"http://localhost:8000/api/v1/supply/orders/1/items/1/deliveries?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/api/v1/supply/orders/1/items/1/deliveries\",\n      \"per_page\": 15,\n      \"to\": 1,\n      \"total\": 1\n    }\n  }\n}\n"
						}
					]
				},
				{
					"name": "Get Delivery 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/deliveries/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"deliveries",
								"1"
							]
						},
						"description": "Get a specific delivery by ID"
					},
					"response": [
						{
							"name": "Get Delivery - Success",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1/deliveries/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1",
										"deliveries",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Delivery retrieved successfully\",\n  \"result\": {\n    \"id\": 1,\n    \"supply_order_item_id\": 1,\n    \"delivery_date\": \"2025-12-23\",\n    \"quantity_delivered\": 25,\n    \"delivery_location\": \"Warehouse A\",\n    \"delivery_notes\": \"First batch delivered\",\n    \"status\": \"delivered\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-23T08:00:00.000000Z\",\n    \"updated_at\": \"2025-12-23T08:00:00.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				},
				{
					"name": "Create Delivery",
					"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  \"supply_order_item_id\": 1,\n  \"customer_location_id\": 5,\n  \"quantity\": 50.000,\n  \"planned_delivery_date\": \"2025-12-31\",\n  \"actual_delivery_date\": \"2025-12-28\",\n  \"status\": \"delivered\",\n  \"notes\": \"Delivered successfully. Received by warehouse manager. Invoice #INV-2025-001\"\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/deliveries",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"deliveries"
							]
						},
						"description": "Create a new delivery for a supply order item"
					},
					"response": [
						{
							"name": "Create Delivery - Success",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"delivery_date\": \"2025-12-25\",\n  \"quantity_delivered\": 10,\n  \"delivery_location\": \"Warehouse C\",\n  \"delivery_notes\": \"Final batch delivery\",\n  \"status\": \"pending\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1/deliveries",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1",
										"deliveries"
									]
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 201,\n  \"message\": \"Delivery created successfully\",\n  \"result\": {\n    \"id\": 3,\n    \"supply_order_item_id\": 1,\n    \"delivery_date\": \"2025-12-25\",\n    \"quantity_delivered\": 10,\n    \"delivery_location\": \"Warehouse C\",\n    \"delivery_notes\": \"Final batch delivery\",\n    \"status\": \"pending\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-25T18:00:00.000000Z\",\n    \"updated_at\": \"2025-12-25T18:00:00.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				},
				{
					"name": "Update Delivery",
					"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  \"supply_order_item_id\": 1,\n  \"customer_location_id\": 5,\n  \"quantity\": 50.000,\n  \"planned_delivery_date\": \"2025-12-31\",\n  \"actual_delivery_date\": \"2025-12-28\",\n  \"status\": \"delivered\",\n  \"notes\": \"Delivered successfully. Received by warehouse manager. Invoice #INV-2025-001\"\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/deliveries/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"deliveries",
								"1"
							]
						},
						"description": "Update an existing delivery"
					},
					"response": [
						{
							"name": "Update Delivery - 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  \"status\": \"delivered\",\n  \"quantity_delivered\": 25,\n  \"delivery_location\": \"Warehouse A - Updated\",\n  \"delivery_notes\": \"Updated - confirmed delivery\",\n  \"is_active\": true\n}"
								},
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1/deliveries/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1",
										"deliveries",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Delivery updated successfully\",\n  \"result\": {\n    \"id\": 1,\n    \"supply_order_item_id\": 1,\n    \"delivery_date\": \"2025-12-23\",\n    \"quantity_delivered\": 25,\n    \"delivery_location\": \"Warehouse A - Updated\",\n    \"delivery_notes\": \"Updated - confirmed delivery\",\n    \"status\": \"delivered\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-23T08:00:00.000000Z\",\n    \"updated_at\": \"2025-12-25T18:15:45.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				},
				{
					"name": "Delete Delivery",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/deliveries/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"deliveries",
								"1"
							]
						},
						"description": "Delete a delivery (soft delete)"
					},
					"response": [
						{
							"name": "Delete Delivery - Success",
							"originalRequest": {
								"method": "DELETE",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1/deliveries/1",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1",
										"deliveries",
										"1"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Delivery deleted successfully\",\n  \"result\": null\n}\n"
						}
					]
				},
				{
					"name": "Restore Delivery",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/deliveries/1/restore",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"deliveries",
								"1",
								"restore"
							]
						},
						"description": "Restore a soft-deleted delivery"
					},
					"response": [
						{
							"name": "Restore Delivery - Success",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer token",
										"type": "text"
									}
								],
								"url": {
									"raw": "http://localhost:8000/api/v1/supply/orders/1/items/1/deliveries/1/restore",
									"protocol": "http",
									"host": [
										"localhost"
									],
									"port": "8000",
									"path": [
										"api",
										"v1",
										"supply",
										"orders",
										"1",
										"items",
										"1",
										"deliveries",
										"1",
										"restore"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": "{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"Delivery restored successfully\",\n  \"result\": {\n    \"id\": 1,\n    \"supply_order_item_id\": 1,\n    \"delivery_date\": \"2025-12-23\",\n    \"quantity_delivered\": 25,\n    \"delivery_location\": \"Warehouse A - Updated\",\n    \"delivery_notes\": \"Updated - confirmed delivery\",\n    \"status\": \"delivered\",\n    \"is_active\": true,\n    \"created_at\": \"2025-12-23T08:00:00.000000Z\",\n    \"updated_at\": \"2025-12-25T18:15:45.000000Z\",\n    \"deleted_at\": null\n  }\n}\n"
						}
					]
				}
			]
		}
	],
	"variable": [
		{
			"key": "BASE_URL",
			"value": "http://localhost:8000/api/v1",
			"type": "string"
		},
		{
			"key": "access_token",
			"value": "your_bearer_token_here",
			"type": "string"
		}
	]
}