{
    "openapi": "3.0.0",
    "info": {
        "title": "International Education Evaluation",
        "description": "International Education Evaluation OpenApi description",
        "contact": {
            "email": "developer@codebuddy.co"
        },
        "license": {
            "name": "Proprietary",
            "url": ""
        },
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "https://myiee.org/api",
            "description": "Production Server"
        },
        {
            "url": "http://localhost:8000/api",
            "description": "Local Server"
        }
    ],
    "paths": {
        "/users/staff/all": {
            "get": {
                "tags": [
                    "fetch-users"
                ],
                "summary": "Fetch all staff users From The System",
                "description": "",
                "operationId": "api.users.get_all_staff_users",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "Page Number",
                        "schema": {
                            "type": "integer"
                        },
                        "example": "1"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Staff Users",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "User List For Staff"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        },
                                        "previousPage": {
                                            "type": "string",
                                            "example": "https://myiee.org/api/users/staff/all?page=2"
                                        },
                                        "nextPage": {
                                            "type": "string",
                                            "example": "https://myiee.org/api/users/staff/all?page=3"
                                        },
                                        "lastPage": {
                                            "type": "string",
                                            "example": "16"
                                        },
                                        "perPage": {
                                            "type": "string",
                                            "example": "10"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/orders/detail": {
            "get": {
                "tags": [
                    "fetch-order-details"
                ],
                "summary": "Fetch Order Details From The System",
                "description": "",
                "operationId": "api.order.get_order_details",
                "parameters": [
                    {
                        "name": "displayId",
                        "in": "query",
                        "description": "Display ID",
                        "schema": {
                            "type": "integer"
                        },
                        "example": "1632325235"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Order Details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Details for order"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/staff-file/upload": {
            "post": {
                "tags": [
                    "staff-file"
                ],
                "summary": "Upload a file to the system and associate it with an order",
                "description": "Uploads a file to the system, performs validations, and associates it with an order.",
                "operationId": "api.staff_file.upload",
                "requestBody": {
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "required": [
                                    "fileUrl",
                                    "userEmail",
                                    "orderDisplayId"
                                ],
                                "properties": {
                                    "fileUrl": {
                                        "description": "The URL of the file to upload",
                                        "type": "string",
                                        "example": "https://d3i0v49d2tcmfm.cloudfront.net/apSppfV8JhZnudf5APvzZw",
                                        "nullable": false
                                    },
                                    "fileName": {
                                        "description": "The name of the file to upload",
                                        "type": "string",
                                        "example": "image.png",
                                        "nullable": true
                                    },
                                    "categoryId": {
                                        "description": "The category ID for the document",
                                        "type": "integer",
                                        "example": 14,
                                        "nullable": false
                                    },
                                    "userEmail": {
                                        "description": "Email of the user uploading the file",
                                        "type": "string",
                                        "example": "user@example.com",
                                        "nullable": false
                                    },
                                    "orderDisplayId": {
                                        "description": "Order display ID",
                                        "type": "string",
                                        "example": "1632280851"
                                    },
                                    "credentialId": {
                                        "type": "integer",
                                        "example": 123
                                    },
                                    "documentId": {
                                        "type": "integer",
                                        "example": 123
                                    },
                                    "productId": {
                                        "type": "integer",
                                        "example": 123
                                    },
                                    "otherOptionId": {
                                        "type": "integer",
                                        "example": 123
                                    },
                                    "languageId": {
                                        "description": "Language ID of the document",
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "senderId": {
                                        "description": "Sender's user ID",
                                        "type": "integer",
                                        "example": 10
                                    },
                                    "channelId": {
                                        "description": "Channel ID",
                                        "type": "integer",
                                        "example": 5
                                    },
                                    "documentDob": {
                                        "description": "Date of birth associated with the document",
                                        "type": "string",
                                        "format": "date",
                                        "example": "2000-01-01"
                                    },
                                    "email": {
                                        "description": "Email of the sender",
                                        "type": "string",
                                        "example": "user@example.com"
                                    },
                                    "freeText": {
                                        "description": "Free text field",
                                        "type": "string",
                                        "example": "Additional notes about the file."
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "error": {
                                            "type": "string",
                                            "example": "An error occurred while processing the request."
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/staff-file/update": {
            "post": {
                "tags": [
                    "staff-file"
                ],
                "summary": "Update uploaded file to the system",
                "description": "Uploads a file to the system, performs validations, and associates it with an order.",
                "operationId": "api.staff_file.update",
                "requestBody": {
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "required": [
                                    "documentFileId",
                                    "orderDisplayId",
                                    "userEmail"
                                ],
                                "properties": {
                                    "documentFileId": {
                                        "description": "The ID of the uploaded file",
                                        "type": "string",
                                        "example": "1",
                                        "nullable": false
                                    },
                                    "categoryId": {
                                        "description": "The category ID for the document",
                                        "type": "integer",
                                        "example": 14,
                                        "nullable": false
                                    },
                                    "userEmail": {
                                        "description": "Email of the user uploading the file",
                                        "type": "string",
                                        "example": "user@example.com",
                                        "nullable": false
                                    },
                                    "orderDisplayId": {
                                        "description": "Order display ID",
                                        "type": "string",
                                        "example": "1632280851"
                                    },
                                    "credentialId": {
                                        "type": "integer",
                                        "example": 123
                                    },
                                    "documentId": {
                                        "type": "integer",
                                        "example": 123
                                    },
                                    "productId": {
                                        "type": "integer",
                                        "example": 123
                                    },
                                    "otherOptionId": {
                                        "type": "integer",
                                        "example": 123
                                    },
                                    "languageId": {
                                        "description": "Language ID of the document",
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "senderId": {
                                        "description": "Sender's user ID",
                                        "type": "integer",
                                        "example": 10
                                    },
                                    "channelId": {
                                        "description": "Channel ID",
                                        "type": "integer",
                                        "example": 5
                                    },
                                    "documentDob": {
                                        "description": "Date of birth associated with the document",
                                        "type": "string",
                                        "format": "date",
                                        "example": "2000-01-01"
                                    },
                                    "email": {
                                        "description": "Email of the sender",
                                        "type": "string",
                                        "example": "user@example.com"
                                    },
                                    "freeText": {
                                        "description": "Free text field",
                                        "type": "string",
                                        "example": "Additional notes about the file."
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "error": {
                                            "type": "string",
                                            "example": "An error occurred while processing the request."
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/staff-file/deactivate": {
            "post": {
                "tags": [
                    "staff-file"
                ],
                "summary": "Deactivate a document",
                "description": "Deactivates a document in the system and clears its associations and attributes.",
                "operationId": "api.staff_file.deactivate",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "required": [
                                    "documentId"
                                ],
                                "properties": {
                                    "documentId": {
                                        "description": "The ID of the document to deactivate",
                                        "type": "integer",
                                        "example": 12345,
                                        "nullable": false
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "error": {
                                            "type": "string",
                                            "example": "An error occurred while deactivating the document"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/seeder/get-category-data": {
            "get": {
                "tags": [
                    "seeders"
                ],
                "summary": "Fetch Staff File Category Data",
                "description": "",
                "operationId": "api.get_category_data",
                "responses": {
                    "200": {
                        "description": "Category Data",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Category Data"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/seeder/get-other-option-data": {
            "get": {
                "tags": [
                    "seeders"
                ],
                "summary": "Fetch Staff File Other Options Data",
                "description": "",
                "operationId": "api.get_other_option_data",
                "responses": {
                    "200": {
                        "description": "Other Options Data",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Other Options Data"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/seeder/get-language-data": {
            "get": {
                "tags": [
                    "seeders"
                ],
                "summary": "Fetch Staff File Language Data",
                "description": "",
                "operationId": "api.get_language_data",
                "responses": {
                    "200": {
                        "description": "Languages Data",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Language Data"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/seeder/get-sender-and-channel-data": {
            "get": {
                "tags": [
                    "seeders"
                ],
                "summary": "Fetch Staff File Sender And Channel Data",
                "description": "",
                "operationId": "api.get_sender_and_channel_data",
                "responses": {
                    "200": {
                        "description": "Sender And Channel Data",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Sender And Channel Data"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/logs/add-system-log": {
            "post": {
                "tags": [
                    "logs"
                ],
                "summary": "Add system log",
                "description": "Adds a system log entry to the order",
                "operationId": "api.logs.add_system_log",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "required": [
                                    "orderId",
                                    "comment",
                                    "userEmail"
                                ],
                                "properties": {
                                    "orderId": {
                                        "description": "The Reference ID of the Order",
                                        "type": "integer",
                                        "example": 12345,
                                        "nullable": false
                                    },
                                    "userEmail": {
                                        "description": "The email Of the user for the log",
                                        "type": "string",
                                        "example": "superadmin@myiee.org",
                                        "nullable": false
                                    },
                                    "userName": {
                                        "description": "Actual Name of the user",
                                        "type": "string",
                                        "example": "John Doe",
                                        "nullable": true
                                    },
                                    "fileName": {
                                        "description": "Actual Name of the file in question",
                                        "type": "string",
                                        "example": "example.pdf",
                                        "nullable": true
                                    },
                                    "comment": {
                                        "description": "Log Description",
                                        "type": "string",
                                        "example": "This is a system log",
                                        "nullable": true
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "error": {
                                            "type": "string",
                                            "example": "An error occurred"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/staff-file/update-document-display-name": {
            "post": {
                "tags": [
                    "staff-file"
                ],
                "summary": "Update Document Display Name",
                "description": "Updates the display name of the document that has been already uploaded",
                "operationId": "api.staff_file.update_document_display_name",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "required": [
                                    "fileName"
                                ],
                                "properties": {
                                    "documentId": {
                                        "description": "The ID of the document to deactivate",
                                        "type": "integer",
                                        "example": 12345,
                                        "nullable": false
                                    },
                                    "fileName": {
                                        "description": "The new name for the file",
                                        "type": "integer",
                                        "example": 12345,
                                        "nullable": false
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "error": {
                                            "type": "string",
                                            "example": "An error occurred while updating the document"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/create-new-order": {
            "post": {
                "tags": [
                    "orders"
                ],
                "summary": "Create a new order",
                "description": "Creates a new order using provided JSON data.",
                "operationId": "api.orders.create_new_order",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "required": [
                                    "data"
                                ],
                                "properties": {
                                    "data": {
                                        "description": "A JSON-encoded string of order details",
                                        "type": "string",
                                        "example": "JSON string here"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Order created successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "integer",
                                            "example": 200
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": "Order created successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "error": {
                                            "type": "string",
                                            "example": "An unexpected error occurred."
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/upload-document-to-new-order": {
            "post": {
                "tags": [
                    "orders"
                ],
                "summary": "Upload documents for an order",
                "description": "Downloads documents from given links, uploads them to Filestack, and associates them with the specified order.",
                "operationId": "api.orders.upload_documents",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "order_display_id",
                                    "documents",
                                    "email"
                                ],
                                "properties": {
                                    "order_display_id": {
                                        "description": "Display ID of the order",
                                        "type": "string",
                                        "example": "ORD123456"
                                    },
                                    "email": {
                                        "description": "Email of the user uploading the documents",
                                        "type": "string",
                                        "format": "email",
                                        "example": "user@example.com"
                                    },
                                    "documents": {
                                        "description": "Array of documents to upload",
                                        "type": "array",
                                        "items": {
                                            "required": [
                                                "link"
                                            ],
                                            "properties": {
                                                "link": {
                                                    "description": "Direct link to the file",
                                                    "type": "string",
                                                    "format": "uri",
                                                    "example": "https://example.com/sample.pdf"
                                                },
                                                "file_name": {
                                                    "description": "Optional file name (if not inferred from the link)",
                                                    "type": "string",
                                                    "example": "sample.pdf"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Documents uploaded successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Order Created"
                                        },
                                        "data": {
                                            "description": "Updated order resource",
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request or missing parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "error"
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": "documents are Required"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Order or user not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "error"
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": "Order Not Found"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/orders/status": {
            "get": {
                "tags": [
                    "fetch-order-status"
                ],
                "summary": "Fetch Order Status From The System",
                "description": "",
                "operationId": "api.order.get_order_status",
                "parameters": [
                    {
                        "name": "displayId",
                        "in": "query",
                        "description": "Display ID",
                        "schema": {
                            "type": "integer"
                        },
                        "example": "1632325235"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Order Status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Status for order"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/user/orders": {
            "get": {
                "tags": [
                    "fetch-user-orders"
                ],
                "summary": "Fetch Order User Orders From The System",
                "description": "",
                "operationId": "api.order.get_user_orders",
                "parameters": [
                    {
                        "name": "userId",
                        "in": "query",
                        "description": "User ID",
                        "schema": {
                            "type": "integer"
                        },
                        "example": "2"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Orders",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Orders For User"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/order/recipients": {
            "get": {
                "tags": [
                    "fetch-order-recipients"
                ],
                "summary": "",
                "description": "",
                "operationId": "api.order.get_order_recipients",
                "parameters": [
                    {
                        "name": "orderDisplayId",
                        "in": "query",
                        "description": "Order Display ID",
                        "schema": {
                            "type": "integer"
                        },
                        "example": "2"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Orders",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Order Recipients"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/trigger/order-data-fetch": {
            "get": {
                "tags": [
                    "triggers"
                ],
                "summary": "",
                "description": "",
                "operationId": "api.trigger.order_data_fetch",
                "responses": {
                    "200": {
                        "description": "Orders",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Order Fetch Triggered"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/trigger/document-data-fetch": {
            "get": {
                "tags": [
                    "triggers"
                ],
                "summary": "",
                "description": "",
                "operationId": "api.trigger.document_data_fetch",
                "responses": {
                    "200": {
                        "description": "DOcuments",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Document Fetch Triggered"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {},
                                            "example": "[]"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/revision-request/create-child-order": {
            "post": {
                "tags": [
                    "revision-request"
                ],
                "summary": "Create a child order from a parent order",
                "description": "Creates a child order for an existing parent order. Accepts JSON payload within a form data field.",
                "operationId": "api.revision_request.create_child_order",
                "requestBody": {
                    "description": "Full JSON payload within a form data field.",
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "required": [
                                    "payload"
                                ],
                                "properties": {
                                    "payload": {
                                        "description": "The complete JSON payload as a string.",
                                        "type": "string",
                                        "format": "json"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Child order successfully created"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/extra-copy/create-child-order": {
            "post": {
                "tags": [
                    "extra-copies"
                ],
                "summary": "Create a child order from a parent order",
                "description": "Creates a child order for an existing parent order. Accepts JSON payload within a form data field.",
                "operationId": "api.extra_copy.create_child_order",
                "requestBody": {
                    "description": "Full JSON payload within a form data field.",
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "required": [
                                    "payload"
                                ],
                                "properties": {
                                    "payload": {
                                        "description": "The complete JSON payload as a string.",
                                        "type": "string",
                                        "format": "json"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Child order successfully created"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/extra-copy/parent-order-details": {
            "get": {
                "tags": [
                    "extra-copies"
                ],
                "summary": "Get parent order details",
                "description": "Fetches parent order details based on the given serial number. Checks if the order exists as a current order, old order, or shell order, and returns the relevant details.",
                "operationId": "api.extra_copy.get_parent_order_details",
                "parameters": [
                    {
                        "name": "serialNumber",
                        "in": "query",
                        "description": "The order serial number",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "ORD123456"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Order details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "oneOf": [
                                        {
                                            "properties": {
                                                "id": {
                                                    "type": "integer",
                                                    "example": 123
                                                },
                                                "display_id": {
                                                    "type": "string",
                                                    "example": "ORD123456"
                                                },
                                                "discussions": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "documents": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "credentials": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "recipients": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "deliveries": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "lineItems": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                }
                                            },
                                            "type": "object"
                                        },
                                        {
                                            "description": "Old order response",
                                            "properties": {
                                                "id": {
                                                    "type": "integer",
                                                    "example": 45
                                                },
                                                "order_id": {
                                                    "type": "string",
                                                    "example": "ORD654321"
                                                },
                                                "created_at": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Order not found or unsupported shell order",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Order not found"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/extra-copy/check-parent-order-type": {
            "get": {
                "tags": [
                    "extra-copies"
                ],
                "summary": "Check parent order type",
                "description": "Checks whether the given serial number belongs to an active order, an old order, or a shell order",
                "operationId": "api.extra_copy.check_parent_order_type",
                "parameters": [
                    {
                        "name": "serialNumber",
                        "in": "query",
                        "description": "The order serial number",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "ORD123456"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Order type check result",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "isExists": {
                                            "type": "integer",
                                            "example": 1
                                        },
                                        "isOldOrder": {
                                            "type": "integer",
                                            "example": 0
                                        },
                                        "isShellOrder": {
                                            "type": "integer",
                                            "example": 0
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/validate-user": {
            "post": {
                "tags": [
                    "users"
                ],
                "summary": "Validate V1 user",
                "description": "Validates a user by email using a predefined validation token",
                "operationId": "api.users.validate_user",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "email",
                                    "token"
                                ],
                                "properties": {
                                    "email": {
                                        "description": "User email address",
                                        "type": "string",
                                        "format": "email",
                                        "example": "user@example.com"
                                    },
                                    "token": {
                                        "description": "Validation token",
                                        "type": "string",
                                        "example": "abc123xyz"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Validation result",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "success"
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": "user found"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Invalid token",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "failure"
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": "invalid token"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "User not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "failure"
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": "user not found"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "description": "Authentication token",
                "name": "Authorization",
                "in": "header",
                "scheme": "bearer"
            }
        }
    },
    "tags": [
        {
            "name": "fetch-users",
            "description": "fetch-users"
        },
        {
            "name": "fetch-order-details",
            "description": "fetch-order-details"
        },
        {
            "name": "staff-file",
            "description": "staff-file"
        },
        {
            "name": "seeders",
            "description": "seeders"
        },
        {
            "name": "logs",
            "description": "logs"
        },
        {
            "name": "orders",
            "description": "orders"
        },
        {
            "name": "fetch-order-status",
            "description": "fetch-order-status"
        },
        {
            "name": "fetch-user-orders",
            "description": "fetch-user-orders"
        },
        {
            "name": "fetch-order-recipients",
            "description": "fetch-order-recipients"
        },
        {
            "name": "triggers",
            "description": "triggers"
        },
        {
            "name": "revision-request",
            "description": "revision-request"
        },
        {
            "name": "extra-copies",
            "description": "extra-copies"
        },
        {
            "name": "users",
            "description": "users"
        }
    ]
}