---
updatedAt: 2026-10-21T14:56:41.000Z
agentTools:
  projectIndex: https://docs.vizionapi.com/llms.txt
---

# Create reference via Booking Number

Details how containers are tracked in our system by using a booking number

[Create reference via Booking Number](post_references) facilitates tracking by adding container references for update payload tracking using a given booking number as the primary identifier.

Similar to the [Create reference via Bill of Lading endpoint](https://docs.vizionapi.com/docs/track-by-bl), this will create a [parent reference](https://docs.vizionapi.com/docs/parent-and-child). For every container available under the provided booking number, a [child reference](https://docs.vizionapi.com/docs/parent-and-child) will be created to track each individual container. If a `container_id` is included, the system returns results specific to that container concerning the provided booking number.

<Callout icon="⚠️" theme="warn">
  You cannot provide both a `booking_number` and `bill_of_lading` in the request body. In this case, the system will reject your request with a validation message indicating that only a `booking_number` or `bill_of_lading` can be provided.
</Callout>

> 📘 See <Anchor label="Create reference via Booking Number" target="_blank" href="doc:reference_create">Create reference via Booking Number</Anchor> API reference documentation

| Required parameter | Description                                                                             |
| :----------------- | :-------------------------------------------------------------------------------------- |
| booking\_number    | The corresponding booking number issued by a carrier. <br /><br />Examples: *XYZ123456* |

| Optional parameters | Description                                                                                                                                                                                                                                                        |
| :------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| carrier\_code       | Code of the carrier transporting the container. <br /><br /> These codes should match those in our list of <Anchor label="supported carriers" target="_blank" href="doc:supported-carriers">supported carriers</Anchor>. <br /><br /> Examples: *MAEU, CMDU, EGLV* |
| container\_id       | ID of the container. <br /><br /> Examples: *CMAU4567890*                                                                                                                                                                                                          |

```json
//Example request body
{
  "booking_number": "XYZ123456",
  "carrier_code": "MAEU",
  "callback_url": "https://yourdomain.com/webhook",
  "container_id": "CONT123456"
}
```

## No carrier code provided

If no carrier code is provided, the reference will be created using [Auto Carrier Identification](https://docs.vizionapi.com/docs/track-by-aci).