> 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

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="/files/GDYnLjeOI8RPP60ueysA">/files/GDYnLjeOI8RPP60ueysA</a></td><td><a href="/files/RLZjNNBeWU189HhGOjDa">/files/RLZjNNBeWU189HhGOjDa</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="/files/VYNjm1UYQO4eCiM1oVsA">/files/VYNjm1UYQO4eCiM1oVsA</a></td><td><a href="/files/dhkOcSxvPiREg0l5RKDN">/files/dhkOcSxvPiREg0l5RKDN</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="/files/VIQQcgJs6vBR61KN7sxA">/files/VIQQcgJs6vBR61KN7sxA</a></td><td><a href="/files/YuwNPpAJdyPofnOTQiGP">/files/YuwNPpAJdyPofnOTQiGP</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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
