> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetDeliveryNoteById

> Returns a single delivery note by its ID.



**query** `GetDeliveryNoteById(deliveryNoteId: ID!): DeliveryNote`

## Arguments

**`deliveryNoteId`**: `ID!` (required)

## Returns

`DeliveryNote`

**`id`**: `ID!`

Unique ID to identify a delivery note.

---

**`number`**: `String!`

The number of the delivery note.

---

**`deliveryNoteDate`**: `DateTime!`

The date when the delivery note was created.

---

**`salesOrderId`**: `ID!`

The ID of the sales order associated with this delivery note.

---

**`packages`**: `[DeliveryNotePackage!]!`

All packages that are created with the delivery note.

## Examples

```graphql Query
query GetDeliveryNoteById($deliveryNoteId: ID!) {
  GetDeliveryNoteById(deliveryNoteId: $deliveryNoteId) {
    id
    number
    deliveryNoteDate
    salesOrderId
    packages {
      id
      packageDate
      trackingID
      weights
      shippingMethodId
      shippedDate
    }
  }
}
```

```json Variables
{
  "deliveryNoteId": "id"
}
```

```json Response
{
  "data": {
    "GetDeliveryNoteById": {
      "id": "id",
      "number": "string",
      "deliveryNoteDate": "value",
      "salesOrderId": "id",
      "packages": [
        {
          "id": "id",
          "packageDate": "value",
          "trackingID": "string",
          "weights": "value",
          "shippingMethodId": "id",
          "shippedDate": "value"
        }
      ]
    }
  }
}
```
