{
	"info": {
		"_postman_id": "completion-scenes-api-2026",
		"name": "Completion Scenes API",
		"description": "API endpoints for managing completion scenes that are automatically generated upon delivery documentation to customers.\n\nThis collection allows you to:\n- List completion scenes with filters\n- View completion scenes ready for invoicing\n- Get single completion scene details\n- Link completion scenes to invoices\n- Create customer deliveries (which automatically generate completion scenes)",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"variable": [
		{
			"key": "BASE_URL",
			"value": "http://127.0.0.1:8001/api/v1",
			"type": "string"
		},
		{
			"key": "TOKEN",
			"value": "",
			"type": "string"
		},
		{
			"key": "SCENE_ID",
			"value": "1",
			"type": "string"
		},
		{
			"key": "SUPPLY_ORDER_ID",
			"value": "1",
			"type": "string"
		},
		{
			"key": "CUSTOMER_ID",
			"value": "1",
			"type": "string"
		},
		{
			"key": "DELIVERY_PERSON_ID",
			"value": "1",
			"type": "string"
		},
		{
			"key": "INVOICE_ID",
			"value": "1",
			"type": "string"
		}
	],
	"item": [
		{
			"name": "Completion Scenes",
			"item": [
				{
					"name": "1. List All Completion Scenes",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{TOKEN}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/completion-scenes?per_page=15&page=1&status=ready_for_invoice&customer_id={{CUSTOMER_ID}}&delivery_person_id={{DELIVERY_PERSON_ID}}&delivery_date=2026-02-10",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"completion-scenes"
							],
							"query": [
								{
									"key": "per_page",
									"value": "15",
									"description": "Number of items per page"
								},
								{
									"key": "page",
									"value": "1",
									"description": "Page number"
								},
								{
									"key": "status",
									"value": "ready_for_invoice",
									"description": "Filter by status: pending, ready_for_invoice, invoiced",
									"disabled": true
								},
								{
									"key": "customer_id",
									"value": "{{CUSTOMER_ID}}",
									"description": "Filter by customer ID",
									"disabled": true
								},
								{
									"key": "delivery_person_id",
									"value": "{{DELIVERY_PERSON_ID}}",
									"description": "Filter by delivery person ID",
									"disabled": true
								},
								{
									"key": "delivery_date",
									"value": "2026-02-10",
									"description": "Filter by delivery date (YYYY-MM-DD)",
									"disabled": true
								}
							]
						},
						"description": "Get list of all completion scenes with optional filters.\n\n**Filters:**\n- `status`: Filter by status (pending, ready_for_invoice, invoiced)\n- `customer_id`: Filter by customer ID\n- `delivery_person_id`: Filter by delivery person ID\n- `delivery_date`: Filter by delivery date (YYYY-MM-DD)\n\n**Pagination:**\n- `per_page`: Number of items per page (default: 15)\n- `page`: Page number (default: 1)"
					},
					"response": [
						{
							"name": "Success Response",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer {{TOKEN}}"
									}
								],
								"url": {
									"raw": "{{BASE_URL}}/supply/completion-scenes?per_page=15&page=1"
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n    \"success\": true,\n    \"code\": 200,\n    \"message\": \"Completion scenes retrieved successfully\",\n    \"result\": {\n        \"data\": [\n            {\n                \"id\": 1,\n                \"scene_number\": \"SCN-2026-00001\",\n                \"delivery_id\": 1,\n                \"supply_order_id\": 1,\n                \"customer_id\": 1,\n                \"delivery_person_id\": 5,\n                \"customer_location_id\": 2,\n                \"delivery_date\": \"2026-02-10\",\n                \"delivery_time\": \"14:30:00\",\n                \"status\": \"ready_for_invoice\",\n                \"total_items\": 3,\n                \"total_quantity_delivered\": 15.5,\n                \"notes\": \"Delivery completed successfully\",\n                \"invoice_id\": null,\n                \"created_at\": \"2026-02-10T14:30:00.000000Z\",\n                \"updated_at\": \"2026-02-10T14:30:00.000000Z\"\n            }\n        ],\n        \"links\": {\n            \"first\": \"{{BASE_URL}}/supply/completion-scenes?page=1\",\n            \"last\": \"{{BASE_URL}}/supply/completion-scenes?page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"path\": \"{{BASE_URL}}/supply/completion-scenes\",\n            \"per_page\": 15,\n            \"to\": 1,\n            \"total\": 1\n        }\n    }\n}"
						}
					]
				},
				{
					"name": "2. Get Scenes Ready for Invoicing",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{TOKEN}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/completion-scenes/ready-for-invoice",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"completion-scenes",
								"ready-for-invoice"
							]
						},
						"description": "Get all completion scenes that are ready for invoicing.\n\nThis endpoint returns scenes with status 'ready_for_invoice' that can be used to generate invoices."
					},
					"response": [
						{
							"name": "Success Response",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer {{TOKEN}}"
									}
								],
								"url": {
									"raw": "{{BASE_URL}}/supply/completion-scenes/ready-for-invoice"
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n    \"success\": true,\n    \"code\": 200,\n    \"message\": \"Scenes ready for invoice retrieved successfully\",\n    \"result\": [\n        {\n            \"id\": 1,\n            \"scene_number\": \"SCN-2026-00001\",\n            \"delivery_id\": 1,\n            \"supply_order_id\": 1,\n            \"customer_id\": 1,\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"ABC Company\",\n                \"email\": \"contact@abc.com\",\n                \"phone\": \"+1234567890\"\n            },\n            \"delivery_person_id\": 5,\n            \"delivery_person\": {\n                \"id\": 5,\n                \"name\": \"John Doe\",\n                \"email\": \"john@example.com\"\n            },\n            \"delivery_date\": \"2026-02-10\",\n            \"delivery_time\": \"14:30:00\",\n            \"status\": \"ready_for_invoice\",\n            \"total_items\": 3,\n            \"total_quantity_delivered\": 15.5,\n            \"items\": [\n                {\n                    \"id\": 1,\n                    \"item_description\": \"Steel Beam 10m\",\n                    \"quantity_ordered\": 20,\n                    \"quantity_delivered\": 15.5,\n                    \"unit\": \"piece\",\n                    \"unit_price\": 150.00,\n                    \"total_price\": 2325.00\n                }\n            ]\n        }\n    ]\n}"
						}
					]
				},
				{
					"name": "3. Get Single Completion Scene",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{TOKEN}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/supply/completion-scenes/{{SCENE_ID}}",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"completion-scenes",
								"{{SCENE_ID}}"
							]
						},
						"description": "Get detailed information about a specific completion scene including all items, delivery details, order information, customer, and delivery person."
					},
					"response": [
						{
							"name": "Success Response",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer {{TOKEN}}"
									}
								],
								"url": {
									"raw": "{{BASE_URL}}/supply/completion-scenes/1"
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n    \"success\": true,\n    \"code\": 200,\n    \"message\": \"Completion scene retrieved successfully\",\n    \"result\": {\n        \"id\": 1,\n        \"scene_number\": \"SCN-2026-00001\",\n        \"delivery_id\": 1,\n        \"delivery\": {\n            \"id\": 1,\n            \"delivery_number\": \"DEL-2026-00001\",\n            \"status\": \"delivered\"\n        },\n        \"supply_order_id\": 1,\n        \"supply_order\": {\n            \"id\": 1,\n            \"order_number\": \"SO-2026-00001\",\n            \"status\": \"delivered\"\n        },\n        \"customer_id\": 1,\n        \"customer\": {\n            \"id\": 1,\n            \"name\": \"ABC Company\",\n            \"email\": \"contact@abc.com\",\n            \"phone\": \"+1234567890\"\n        },\n        \"delivery_person_id\": 5,\n        \"delivery_person\": {\n            \"id\": 5,\n            \"name\": \"John Doe\",\n            \"email\": \"john@example.com\"\n        },\n        \"customer_location_id\": 2,\n        \"customer_location\": {\n            \"id\": 2,\n            \"name\": \"Main Warehouse\",\n            \"address\": \"123 Main St\",\n            \"city\": \"Riyadh\"\n        },\n        \"delivery_date\": \"2026-02-10\",\n        \"delivery_time\": \"14:30:00\",\n        \"status\": \"ready_for_invoice\",\n        \"is_pending\": false,\n        \"is_ready_for_invoice\": true,\n        \"is_invoiced\": false,\n        \"total_items\": 3,\n        \"total_quantity_delivered\": 15.5,\n        \"notes\": \"Delivery completed successfully\",\n        \"invoice_id\": null,\n        \"invoice\": null,\n        \"items\": [\n            {\n                \"id\": 1,\n                \"supply_order_item_id\": 10,\n                \"item_description\": \"Steel Beam 10m\",\n                \"quantity_ordered\": 20,\n                \"quantity_delivered\": 15.5,\n                \"unit\": \"piece\",\n                \"unit_price\": 150.00,\n                \"total_price\": 2325.00,\n                \"notes\": null\n            },\n            {\n                \"id\": 2,\n                \"supply_order_item_id\": 11,\n                \"item_description\": \"Concrete Block\",\n                \"quantity_ordered\": 100,\n                \"quantity_delivered\": 100,\n                \"unit\": \"piece\",\n                \"unit_price\": 5.00,\n                \"total_price\": 500.00,\n                \"notes\": null\n            }\n        ],\n        \"created_at\": \"2026-02-10T14:30:00.000000Z\",\n        \"updated_at\": \"2026-02-10T14:30:00.000000Z\"\n    }\n}"
						}
					]
				},
				{
					"name": "4. Link Scene to Invoice",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{TOKEN}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"invoice_id\": {{INVOICE_ID}}\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/completion-scenes/{{SCENE_ID}}/link-invoice",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"completion-scenes",
								"{{SCENE_ID}}",
								"link-invoice"
							]
						},
						"description": "Link a completion scene to an invoice. This will update the scene status to 'invoiced' and store the invoice ID.\n\n**Request Body:**\n- `invoice_id` (required): The ID of the sales invoice to link"
					},
					"response": [
						{
							"name": "Success Response",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer {{TOKEN}}"
									},
									{
										"key": "Content-Type",
										"value": "application/json"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"invoice_id\": 1\n}"
								},
								"url": {
									"raw": "{{BASE_URL}}/supply/completion-scenes/1/link-invoice"
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n    \"success\": true,\n    \"code\": 200,\n    \"message\": \"Scene linked to invoice successfully\",\n    \"result\": {\n        \"id\": 1,\n        \"scene_number\": \"SCN-2026-00001\",\n        \"status\": \"invoiced\",\n        \"invoice_id\": 1,\n        \"invoice\": {\n            \"id\": 1,\n            \"code\": \"INV-2026-00001\",\n            \"date\": \"2026-02-10\"\n        }\n    }\n}"
						}
					]
				}
			]
		},
		{
			"name": "Customer Deliveries",
			"item": [
				{
					"name": "5. Create Customer Delivery (Single Item)",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{TOKEN}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"supply_order_id\": {{SUPPLY_ORDER_ID}},\n    \"contact_id\": 1,\n    \"customer_location_id\": 2,\n    \"delivery_date\": \"2026-02-10\",\n    \"delivery_time\": \"14:30:00\",\n    \"delivered_by\": {{DELIVERY_PERSON_ID}},\n    \"notes\": \"Delivery completed successfully\",\n    \"supply_order_item_id\": 10,\n    \"quantity_delivered\": 15.5,\n    \"signature_image\": null,\n    \"delivery_photos\": []\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/deliveries/customer",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"deliveries",
								"customer"
							]
						},
						"description": "Create a customer delivery for a single item. This will automatically:\n1. Create the delivery record\n2. Create delivery items\n3. Mark delivery as 'delivered'\n4. Automatically generate a completion scene\n\n**Request Body:**\n- `supply_order_id` (required): The supply order ID\n- `customer_location_id` (required): The customer location ID\n- `delivery_date` (required): Delivery date (YYYY-MM-DD)\n- `delivery_time` (required): Delivery time (HH:ii:ss)\n- `delivered_by` (required): User ID of the delivery person\n- `supply_order_item_id` (required for single item): The supply order item ID\n- `quantity_delivered` (required for single item): Quantity delivered\n- `contact_id` (optional): Contact person ID\n- `notes` (optional): Delivery notes\n- `signature_image` (optional): Signature image file\n- `delivery_photos` (optional): Array of delivery photo files"
					},
					"response": [
						{
							"name": "Success Response",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer {{TOKEN}}"
									},
									{
										"key": "Content-Type",
										"value": "application/json"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"supply_order_id\": 1,\n    \"customer_location_id\": 2,\n    \"delivery_date\": \"2026-02-10\",\n    \"delivery_time\": \"14:30:00\",\n    \"delivered_by\": 5,\n    \"supply_order_item_id\": 10,\n    \"quantity_delivered\": 15.5\n}"
								},
								"url": {
									"raw": "{{BASE_URL}}/supply/deliveries/customer"
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n    \"success\": true,\n    \"code\": 201,\n    \"message\": \"Customer delivery created successfully\",\n    \"result\": {\n        \"delivery\": {\n            \"id\": 1,\n            \"delivery_number\": \"DEL-2026-00001\",\n            \"supply_order_id\": 1,\n            \"status\": \"delivered\",\n            \"delivery_date\": \"2026-02-10\",\n            \"delivery_time\": \"14:30:00\",\n            \"delivered_at\": \"2026-02-10T14:30:00.000000Z\"\n        },\n        \"completion_scene\": {\n            \"id\": 1,\n            \"scene_number\": \"SCN-2026-00001\",\n            \"delivery_id\": 1,\n            \"supply_order_id\": 1,\n            \"customer_id\": 1,\n            \"delivery_person_id\": 5,\n            \"delivery_date\": \"2026-02-10\",\n            \"delivery_time\": \"14:30:00\",\n            \"status\": \"ready_for_invoice\",\n            \"total_items\": 1,\n            \"total_quantity_delivered\": 15.5,\n            \"items\": [\n                {\n                    \"id\": 1,\n                    \"item_description\": \"Steel Beam 10m\",\n                    \"quantity_ordered\": 20,\n                    \"quantity_delivered\": 15.5,\n                    \"unit\": \"piece\",\n                    \"unit_price\": 150.00,\n                    \"total_price\": 2325.00\n                }\n            ]\n        }\n    }\n}"
						}
					]
				},
				{
					"name": "6. Create Customer Delivery (Bulk Items)",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{TOKEN}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"supply_order_id\": {{SUPPLY_ORDER_ID}},\n    \"contact_id\": 1,\n    \"customer_location_id\": 2,\n    \"delivery_date\": \"2026-02-10\",\n    \"delivery_time\": \"14:30:00\",\n    \"delivered_by\": {{DELIVERY_PERSON_ID}},\n    \"notes\": \"Bulk delivery completed\",\n    \"items\": [\n        {\n            \"supply_order_item_id\": 10,\n            \"quantity_delivered\": 15.5,\n            \"notes\": \"Partial delivery\"\n        },\n        {\n            \"supply_order_item_id\": 11,\n            \"quantity_delivered\": 100,\n            \"notes\": \"Full delivery\"\n        },\n        {\n            \"supply_order_item_id\": 12,\n            \"quantity_delivered\": 50,\n            \"notes\": null\n        }\n    ],\n    \"signature_image\": null,\n    \"delivery_photos\": []\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/deliveries/customer",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"deliveries",
								"customer"
							]
						},
						"description": "Create a customer delivery for multiple items (bulk delivery). This will automatically:\n1. Create the delivery record\n2. Create delivery items for each item\n3. Mark delivery as 'delivered'\n4. Automatically generate a completion scene with all items\n\n**Request Body:**\n- `supply_order_id` (required): The supply order ID\n- `customer_location_id` (required): The customer location ID\n- `delivery_date` (required): Delivery date (YYYY-MM-DD)\n- `delivery_time` (required): Delivery time (HH:ii:ss)\n- `delivered_by` (required): User ID of the delivery person\n- `items` (required for bulk): Array of items with:\n  - `supply_order_item_id` (required): The supply order item ID\n  - `quantity_delivered` (required): Quantity delivered\n  - `notes` (optional): Item-specific notes\n- `contact_id` (optional): Contact person ID\n- `notes` (optional): General delivery notes\n- `signature_image` (optional): Signature image file\n- `delivery_photos` (optional): Array of delivery photo files"
					},
					"response": [
						{
							"name": "Success Response",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer {{TOKEN}}"
									},
									{
										"key": "Content-Type",
										"value": "application/json"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"supply_order_id\": 1,\n    \"customer_location_id\": 2,\n    \"delivery_date\": \"2026-02-10\",\n    \"delivery_time\": \"14:30:00\",\n    \"delivered_by\": 5,\n    \"items\": [\n        {\n            \"supply_order_item_id\": 10,\n            \"quantity_delivered\": 15.5\n        },\n        {\n            \"supply_order_item_id\": 11,\n            \"quantity_delivered\": 100\n        }\n    ]\n}"
								},
								"url": {
									"raw": "{{BASE_URL}}/supply/deliveries/customer"
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n    \"success\": true,\n    \"code\": 201,\n    \"message\": \"Customer delivery created successfully\",\n    \"result\": {\n        \"delivery\": {\n            \"id\": 1,\n            \"delivery_number\": \"DEL-2026-00001\",\n            \"supply_order_id\": 1,\n            \"status\": \"delivered\",\n            \"delivery_date\": \"2026-02-10\",\n            \"delivery_time\": \"14:30:00\",\n            \"delivered_at\": \"2026-02-10T14:30:00.000000Z\",\n            \"items\": [\n                {\n                    \"id\": 1,\n                    \"supply_order_item_id\": 10,\n                    \"quantity_delivered\": 15.5,\n                    \"status\": \"delivered\"\n                },\n                {\n                    \"id\": 2,\n                    \"supply_order_item_id\": 11,\n                    \"quantity_delivered\": 100,\n                    \"status\": \"delivered\"\n                }\n            ]\n        },\n        \"completion_scene\": {\n            \"id\": 1,\n            \"scene_number\": \"SCN-2026-00001\",\n            \"delivery_id\": 1,\n            \"supply_order_id\": 1,\n            \"customer_id\": 1,\n            \"delivery_person_id\": 5,\n            \"delivery_date\": \"2026-02-10\",\n            \"delivery_time\": \"14:30:00\",\n            \"status\": \"ready_for_invoice\",\n            \"total_items\": 2,\n            \"total_quantity_delivered\": 115.5,\n            \"items\": [\n                {\n                    \"id\": 1,\n                    \"item_description\": \"Steel Beam 10m\",\n                    \"quantity_ordered\": 20,\n                    \"quantity_delivered\": 15.5,\n                    \"unit\": \"piece\",\n                    \"unit_price\": 150.00,\n                    \"total_price\": 2325.00\n                },\n                {\n                    \"id\": 2,\n                    \"item_description\": \"Concrete Block\",\n                    \"quantity_ordered\": 100,\n                    \"quantity_delivered\": 100,\n                    \"unit\": \"piece\",\n                    \"unit_price\": 5.00,\n                    \"total_price\": 500.00\n                }\n            ]\n        }\n    }\n}"
						}
					]
				},
				{
					"name": "7. Create Customer Delivery with Media",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Authorization",
								"value": "Bearer {{TOKEN}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "supply_order_id",
									"value": "{{SUPPLY_ORDER_ID}}",
									"type": "text"
								},
								{
									"key": "customer_location_id",
									"value": "2",
									"type": "text"
								},
								{
									"key": "delivery_date",
									"value": "2026-02-10",
									"type": "text"
								},
								{
									"key": "delivery_time",
									"value": "14:30:00",
									"type": "text"
								},
								{
									"key": "delivered_by",
									"value": "{{DELIVERY_PERSON_ID}}",
									"type": "text"
								},
								{
									"key": "items[0][supply_order_item_id]",
									"value": "10",
									"type": "text"
								},
								{
									"key": "items[0][quantity_delivered]",
									"value": "15.5",
									"type": "text"
								},
								{
									"key": "items[0][notes]",
									"value": "Delivered in good condition",
									"type": "text"
								},
								{
									"key": "signature_image",
									"type": "file",
									"src": [],
									"description": "Customer signature image (JPEG, PNG, GIF, max 5MB)"
								},
								{
									"key": "delivery_photos[]",
									"type": "file",
									"src": [],
									"description": "Delivery photos (JPEG, PNG, GIF, max 5MB each)"
								}
							]
						},
						"url": {
							"raw": "{{BASE_URL}}/supply/deliveries/customer",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"supply",
								"deliveries",
								"customer"
							]
						},
						"description": "Create a customer delivery with signature and photos.\n\n**Form Data:**\n- All standard fields as in bulk delivery\n- `signature_image`: Customer signature image file\n- `delivery_photos[]`: Array of delivery photo files\n\n**File Requirements:**\n- Signature: JPEG, PNG, GIF (max 5MB)\n- Photos: JPEG, PNG, GIF (max 5MB each)"
					},
					"response": [
						{
							"name": "Success Response",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Authorization",
										"value": "Bearer {{TOKEN}}"
									}
								],
								"body": {
									"mode": "formdata",
									"formdata": [
										{
											"key": "supply_order_id",
											"value": "1"
										},
										{
											"key": "customer_location_id",
											"value": "2"
										},
										{
											"key": "delivery_date",
											"value": "2026-02-10"
										},
										{
											"key": "delivery_time",
											"value": "14:30:00"
										},
										{
											"key": "delivered_by",
											"value": "5"
										},
										{
											"key": "items[0][supply_order_item_id]",
											"value": "10"
										},
										{
											"key": "items[0][quantity_delivered]",
											"value": "15.5"
										},
										{
											"key": "signature_image",
											"type": "file"
										}
									]
								},
								"url": {
									"raw": "{{BASE_URL}}/supply/deliveries/customer"
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n    \"success\": true,\n    \"code\": 201,\n    \"message\": \"Customer delivery created successfully\",\n    \"result\": {\n        \"delivery\": {\n            \"id\": 1,\n            \"delivery_number\": \"DEL-2026-00001\",\n            \"status\": \"delivered\",\n            \"delivery_proofs\": [\n                {\n                    \"url\": \"http://127.0.0.1:8001/storage/delivery_proofs/signature_123.jpg\",\n                    \"name\": \"signature\",\n                    \"size\": 245678\n                }\n            ],\n            \"delivery_photos\": [\n                {\n                    \"url\": \"http://127.0.0.1:8001/storage/delivery_photos/photo_1.jpg\",\n                    \"name\": \"photo_1\",\n                    \"size\": 567890\n                }\n            ]\n        },\n        \"completion_scene\": {\n            \"id\": 1,\n            \"scene_number\": \"SCN-2026-00001\",\n            \"status\": \"ready_for_invoice\"\n        }\n    }\n}"
						}
					]
				}
			]
		}
	]
}
