## Print PDF Invoice for Orders

### Overview

You can use this endpoint to generate a printable PDF invoice based on the company settings of the orders provided in the request. There is no limit to the number of orders you can request in a single call. To consume the endpoint, you must:

- Be an authenticated user.

For information on how you can authenticate, see [Authentication](https://developer.sellercloud.com/dev-article/authentication/).

### Endpoint

An example of such an endpoint for XX server is:

`https://xx.api.sellercloud.com/rest/api/Orders/PrintPdfInvoice`

For your server endpoint will be:

`https://{your_server_id}.api.sellercloud.com/rest/api/Orders/PrintPdfInvoice`

### Request

- Method Type: **HttpPost**
- Authorization: Use **Bearer Token** + token received from token authentication
- Header info: **Content-Type: application/json**

### Request Parameters

| Parameter   | Data Type       | Description                                                                                 | Is Required |
|-------------|-----------------|---------------------------------------------------------------------------------------------|-------------|
| OrderIDs   | list, integers   | Provide a comma-separated list of existing orders for which you want to generate PDF invoices. | yes         |

### Request Body

```
{
  "OrderIDs": [
    12345,
    12346,
    12347
  ]
}
```

### Response

- If the user is authenticated and provides a valid list of Order IDs, then the response will be **Status Code 200 => OK** and return the file with the invoices as follows:

- The **FileContent** is returned **Base 64** encoded in the response content.
  - The **FileName** is returned in the response **ContentDisposition** header.
- If the user is not authenticated, then the response will be **Status Code 401 => Not Valid Token.**
- On server response => **Status Code 500 => Internal Server Error.**
