# 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>

#### 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}'
```
