> For the complete documentation index, see [llms.txt](https://developer.esw.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.esw.com/package-api/package-api/overview.md).

# Overview

Learn what the Package API supports, including package lifecycle operations, labels, manifests, returns, and Ship-From-Anywhere workflows.

The Package API is a comprehensive solution for you to manage shipment and delivery data efficiently, which is critical for smooth logistics operations. It facilitates the sharing of package details, including dimensions, weight, consignee information, and item specifics, which are essential for the accurate and timely delivery of orders.

The Package API can also help in maintaining compliance with shipping regulations and provide a better customer experience by ensuring that orders are delivered correctly and on time. The API’s ability to handle detailed package information makes it an essential tool for you looking to optimize your shipping and delivery processes.

### About The API <a href="#about-the-api" id="about-the-api"></a>

The ESW Package API v4.0 allows you to perform the following actions:

* Create new packages in the ESW system with all details needed for the shipping, clearance, and delivery of the order.
* Update existing information for a package, for example, delivery address (subject to conditions) or weight details.
* Retrieve information for a particular package, including a shipping label, returns label, and sales invoice documentation.
* Delete a package.

#### What this API does

<table data-view="cards"><thead><tr><th></th><th data-hidden>Description</th><th data-hidden data-card-target data-type="content-ref">Details</th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-cover-dark data-type="image">Cover image (dark)</th></tr></thead><tbody><tr><td>Package management</td><td>Create, update, retrieve, and delete parcel records. Associate line items with customs data, weights, dimensions, and carrier assignments.</td><td></td><td><a href="https://366015037-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZhcwGHfYyTPT5VkoQl32%2Fuploads%2FTfL0Z9SNiPxGqvW4wNJw%2FPictogram-14.svg?alt=media&amp;token=1a5606c9-1d75-459f-b718-0a8abff22ee1">Pictogram-14.svg</a></td><td><a href="https://366015037-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZhcwGHfYyTPT5VkoQl32%2Fuploads%2FbeWSbDoapZO0jJuMVBwb%2FPictogram-17.svg?alt=media&amp;token=01fa988a-6ff1-4e29-94d2-80e2b1c570a9">Pictogram-17.svg</a></td></tr><tr><td>Label generation</td><td>Request shipping labels, customs invoices, packing slips, and pre-paid return labels at package creation or on-demand.</td><td></td><td><a href="https://366015037-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZhcwGHfYyTPT5VkoQl32%2Fuploads%2F47SCOLaiMieFA3jMn83F%2FPictogram-01.svg?alt=media&amp;token=efd4a98d-0243-475f-a27b-f6b74a6be011">Pictogram-01.svg</a></td><td><a href="https://366015037-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZhcwGHfYyTPT5VkoQl32%2Fuploads%2Fx9yazEl5Mj5tu9PNYHP8%2FPictogram-02.svg?alt=media&amp;token=574602e5-89d6-45c6-a12b-87276112a1eb">Pictogram-02.svg</a></td></tr><tr><td>Ship-from-anywhere</td><td>Configure retail stores as dispatch points for cross-border orders, with per-brand allowed countries and field capture rules.</td><td></td><td><a href="https://366015037-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZhcwGHfYyTPT5VkoQl32%2Fuploads%2FgeYs1SuWqTHQWTALyQyn%2FPictogram-05.svg?alt=media&amp;token=0591d547-7523-4f01-8ed2-1d2a2bd131af">Pictogram-05.svg</a></td><td><a href="https://366015037-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZhcwGHfYyTPT5VkoQl32%2Fuploads%2Fayumxa44IEU3gK8lU8WW%2FPictogram-06.svg?alt=media&amp;token=0a5d0a7a-2b01-45ac-b9d0-ddaa26377356">Pictogram-06.svg</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.esw.com/package-api/package-api/overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
