# Get invoice details

## Get Invoice Details

<mark style="color:blue;">`GET`</mark> `http://{slug}.eshopbox.com/api/invoice-detail/{OrderNumber}`

The Get Invoice Details API provides users with the ability to **retrieve detailed information about an invoice for a specific order**. By supplying the order number, you can access data related to the invoice, enabling seamless tracking and management of order invoices across different sales channels. It allows you to pass either the **Customer Order ID** or the **Channel Order ID** in the request.&#x20;

#### Path Parameters

<table><thead><tr><th width="158">Name</th><th width="121">Type</th><th>Description</th></tr></thead><tbody><tr><td>OrderNumber</td><td>string</td><td></td></tr></tbody></table>

| You can pass either the **Customer Order ID** or the **Channel Order ID** in the request. The Channel Order ID is a unique identifier generated by the sales channel for internal fulfillment processes, while the Customer Order ID is a unique identifier used by the channel to communicate order details with the customer. This flexibility ensures the API supports both operational workflows and customer-facing communications seamlessly. |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

#### Headers

| Name           | Type   |                                                                                               |
| -------------- | ------ | --------------------------------------------------------------------------------------------- |
| Authentication | string | The Bearer token for API authentication. Replace {access\_token} with the valid access token. |
| proxyHost      | string | The proxy host to route the request. Replace {proxy\_host} with the appropriate value.        |

{% tabs %}
{% tab title="200 Invoice Detail successfully retrieved." %}

```php
[
    {
        "externalShipmentID": "11234057650543-2804-4469",
        "channelOrderId": "11234057650543",
        "customerOrderId": "#294914",
        "invoice_url": "https://storage.googleapis.com/invoicefiles-prod/invoice/112340512354328000069-1731992864715.pdf",
        "invoiceNumber": "INVRAYMD29278",
        "invoiceDate": "2024-11-19 10:37:38",
        "items": [
            {
                "orderItemID": "11234057650543-40833809"
            },
            {
                "orderItemID": "11234057650543-40833811"
            },
            {
                "orderItemID": "11234057650543-40833812"
            }
        ]
    },
    {
        "externalShipmentID": "11234057650543-2804-4872",
        "channelOrderId": "11234057650543",
        "customerOrderId": "#294914",
        "invoice_url": "https://storage.googleapis.com/invoicefiles-prod/invoice/112340576505442044872-173298764658.pdf",
        "invoiceNumber": "INVRAYBA32466",
        "invoiceDate": "2024-11-19 13:15:00",
        "items": [
            {
                "orderItemID": "11234057650543-40833810"
            }
        ]
    }
]
```

{% endtab %}
{% endtabs %}

```php
curl --location 'http://{slug}.eshopbox.com/api/invoice-detail/{orderNumber}' \
--header 'Authorization: Bearer {access_token}' \
--header 'proxyHost: {proxy_host}'
```


---

# 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://eshop.gitbook.io/eshopbox-developers/order/orders/get-invoice-details.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.
