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

# Label requests

> | Trigger                   | What it means                                     |
| -------------------------- | -------------------------------------------------- |
| `label.request.issued`    | Loop needs a label for this return.                |
| `label.request.cancelled` | A previously issued label request was cancelled.   |

- **`label.request.issued`**: the `id` in the payload is the label request ID. Use
  it to create the label with `POST /labels`, or, if label generation fails on
  your end, to report the failure with `POST /label-requests/{id}/errors`.
- **`label.request.cancelled`**: for example, a merchant regenerated the label, or
  the return itself was cancelled. Stop any work in progress for this `id` and
  void/refund the carrier label if one was already purchased. The `id` is never
  reused: a regenerated label arrives as a brand-new `label.request.issued` event
  with a new `id`.

Acknowledge every delivery with a `200` response. A non-200 response is not how you
report a label-generation failure — failures are reported with
`POST /label-requests/{id}/errors`. Reporting an error does not cause Loop to resend
the webhook or issue a new label request: the request remains `issued` and stays
fulfillable via `POST /labels` with the same `id`, so retrying is your integration's
own responsibility.




## OpenAPI

````yaml webhook LabelRequests
openapi: 3.1.0
info:
  title: Label Requests Webhook
  version: 1.0.0
  description: >
    This notification is sent when the **label-request** topic is requested. For
    those who

    subscribe to this topic for more than one trigger event, the "trigger"
    property is

    included in the payload for reference.


    | Request Header   | Description               |

    | ---------------- | ------------------------- |

    | X-Loop-Signature | Hashed Webhook Secret Key |


    The X-Loop-Signature is a base64, HMAC hash of body payload using the
    Webhook Secret provided by Loop.


    Note: Before attempting to create your hash of the POST request body, make
    sure slashes

    have been escaped & newlines have been removed from the JSON.
servers: []
security: []
paths: {}

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.