{
    "info": {
        "_postman_id": "8b5c92e7-d1a1-4f8e-bd71-3652c7b50303",
        "name": "Order Receipt & Delivery Log API",
        "description": "API collection for the Order Receipt & Delivery Log feature, including supplier receipts, customer deliveries, and completion certificates.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Order Logs",
            "item": [
                {
                    "name": "Get Receipt Log",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/supply/orders/:order_id/receipt-log",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "supply",
                                "orders",
                                ":order_id",
                                "receipt-log"
                            ],
                            "variable": [
                                {
                                    "key": "order_id",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Returns a read-only log of all supplier receipts for a specific order."
                    },
                    "response": []
                },
                {
                    "name": "Get Delivery Log",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/supply/orders/:order_id/delivery-log",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "supply",
                                "orders",
                                ":order_id",
                                "delivery-log"
                            ],
                            "variable": [
                                {
                                    "key": "order_id",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Returns a read-only log of all customer deliveries for a specific order."
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Completion Certificates",
            "item": [
                {
                    "name": "Download Completion Certificate PDF",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/pdf"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/supply/completion-scenes/:scene_id/download-pdf",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "supply",
                                "completion-scenes",
                                ":scene_id",
                                "download-pdf"
                            ],
                            "variable": [
                                {
                                    "key": "scene_id",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Downloads the generated completion certificate (مشهد إنجاز) as a PDF file."
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Integrated Order Info",
            "item": [
                {
                    "name": "Get Order Details (With Logs)",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/supply/orders/:order_id",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "supply",
                                "orders",
                                ":order_id"
                            ],
                            "variable": [
                                {
                                    "key": "order_id",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Returns full order details, now including integrated 'goods_receipts' and 'delivery_notes' arrays."
                    },
                    "response": []
                }
            ]
        }
    ],
    "event": [
        {
            "listen": "prerequest",
            "script": {
                "type": "text/javascript",
                "exec": [
                    ""
                ]
            }
        },
        {
            "listen": "test",
            "script": {
                "type": "text/javascript",
                "exec": [
                    ""
                ]
            }
        }
    ],
    "variable": [
        {
            "key": "base_url",
            "value": "demoback.rzain.com.tr/api/v1"
        }
    ]
}