# Retrieve invoice

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

Tags: b2b

---


```
https://api.worldota.net/api/b2b/v3/ordergroup/document/invoice/download/
```

The call gets the order group 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/ordergroup/document/invoice/download/?data={%22invoice_id%22%3A%2212345-67890%22}'
```

## Parameters



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

  <p>The order group 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.

### `invoice_not_found`

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

### `terminal_invoice`

The group order has the `payment_options.payment_types.later` field or is paid for by a terminal.
