# Retrieve invoice info

URL: https://docs.emergingtravel.com/docs/b2b-api/documents/retrieve-invoice-info/

Tags: b2b

---


```
https://api.worldota.net/api/b2b/v3/hotel/order/document/info_invoice/download/
```

The call gets the order invoice. The invoice is provided in [PDF](https://en.wikipedia.org/wiki/PDF) format.

## Request example

```shell
curl --user '<KEY_ID>:<API_KEY>' 'https://api.worldota.net/api/b2b/v3/hotel/order/document/info_invoice/download/?data={%22partner_order_id%22%3A%22asd123%22}'
```

## Parameters



- **partner_order_id** *(String, Query, required)*

  <p>The external order ID.</p>
  > [!NOTE]
  > * The minimum length is `1` character.





## Errors

The `error` field has the value specified in the headers below.

### `failed_to_generate_document`

The invoice is in generating. Try to request later.

### `order_not_found`

The order with the `partner_order_id` field value isn’t found.

### `invoice_not_available`

No invoice is available for the order. Check the payable amount, contract kind, legal entity, and contract data.
