# Upload Invoice Documents For a Specific Order

This API allows you to upload invoices for a specific order.

* **Request Header**: `X-BH-TOKEN: ******`
* **Request Header**: `Content-Type: multipart/form-data`
* **Request Method**: `POST`
* **Request Path**: `v2/order/invoice`
* **Authorization**: Required

Form **Parameters**

* **orderId**: (number) The ID of the order for which the invoice is being uploaded.
* **files**: (file) Upload multiple files. The maximum number of uploaded files is 5, with each file limited to 5 MB in size. Supported formats are \[jpg, png, jpeg, pdf].

**Response Structure**

The response will include the following fields:

* **code:** (number)  response code
* **msg**: (string) message
* data: (boolean) indicates if the confirmation was successful

```json
{
    "code": 200,        
    "msg": "SUCCESS",
    "data": true 
}

```

#### Notes

* Ensure that valid authorization tokens are included in the request headers for successful execution.
* Check that the uploaded files meet the specified requirements (number, size, and format).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.velafi.com/api-reference/order/upload-invoice-documents-for-a-specific-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
