> 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-management/package-management-api/core-concepts/package-status.md).

# Package status

Interpret shipping, hold-release, and package operation statuses.

### Label and document lifecycle

Treat each response signal independently. None replaces document retrieval confirmation.

#### Operation result

`outcome` reports what the create or update operation achieved. It is not a document-ready signal.

`status` reports shipping-documentation generation for that operation. The contract defines `status` as a string. It does not define status values or their meanings. Do not use undocumented values as workflow gates.

| Outcome                        | Create result                                     | Does it confirm an available label?                                                     | Does the contract define continued creation? | Required action                                                                        |
| ------------------------------ | ------------------------------------------------- | --------------------------------------------------------------------------------------- | -------------------------------------------- | -------------------------------------------------------------------------------------- |
| `PackageAndLabelCreated`       | Package and label were created.                   | No. Retrieve the requested document. Print only when its `documentStatus` is `Created`. | No.                                          | Retrieve the `ShippingLabel` or requested supporting document.                         |
| `PackageCreated`               | Package was created.                              | No.                                                                                     | No.                                          | Retain the references. Retrieve documentation when required.                           |
| `PackageCreatedAndLabelOnHold` | Package was created. Label generation is on hold. | No.                                                                                     | No.                                          | Do not print or dispatch. Escalate the hold through the supported fulfillment process. |
| `PackageCreatedAndLabelError`  | Package was created. Label generation failed.     | No.                                                                                     | No.                                          | Stop label processing. Correct the documented request issue or escalate.               |
| `PackageUpdatedAndLabelError`  | Package was updated. Label generation failed.     | No.                                                                                     | No.                                          | Stop label processing. Correct the documented request issue or escalate.               |

The contract also defines `PackageAndLabelUpdated` and `PackageUpdated`. Apply the same retrieval check after an update when documentation is needed.

#### Package fulfillment state

`shippingStatus` is a package-level fulfillment state. It does not report label or document readiness.

| Value      | Meaning                                                                                  | Permitted next action                                                                                                      |
| ---------- | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `Pending`  | The package is not ready for shipping. ESW expects a `PUT` update when it becomes ready. | Update the package when it is ready. Do not treat `Pending` as a label state.                                              |
| `Complete` | The package is ready for shipping. Further `PUT` updates cannot be processed.            | Do not update the package. Retrieve documentation if needed. A retrieved document still must be `Created` before printing. |

#### Hold and release state

`holdReleaseStatus` controls whether fulfillment and label processing may proceed. It is not a synonym for document readiness.

| Value              | Meaning                             |
| ------------------ | ----------------------------------- |
| `Release`          | Release the package for processing. |
| `Hold`             | Keep the package on hold.           |
| `ReturnToRetailer` | Return the package to the retailer. |

### Decision flow

1. Check `outcome` and the operation `status`. Retain `packageReference` and `eShopPackageReference`.
2. Read `shippingStatus` separately. It controls package fulfillment, not document availability.
3. Retrieve documents with `GET /packagemanagement/v1/{tenantCode}/documentation/{eShopPackageReference}` when documentation is required.
4. Print or dispatch only after the requested record has `documentStatus: Created` and supplies the document or link.
5. The contract defines only `Created` and `Error` for `documentStatus`. It defines no processing state and no retryable error state. Do not infer retryability.

Escalate a held label, a label error, `documentStatus: Error`, or continued absence of a ready document after the documented retry policy. Capture the tenant, order and package references, `eShopPackageReference`, outcome, status, HTTP response, and returned correlation or request ID.


---

# 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-management/package-management-api/core-concepts/package-status.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.
