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

# Reprint Label

> Regenerate a shipping label

Regenerates a shipping label for an existing order. The tracking number remains the same.

<Note>
  Use this when a label is damaged or lost. The barcode and tracking number do not change.
</Note>

## Path Parameters

<ParamField path="trackingNumber" type="string" required>
  The tracking number of the parcel.
</ParamField>

## Request Body

<ParamField body="idempotencyKey" type="string" required>
  Unique key to prevent duplicate reprints (8-64 characters).
</ParamField>

<ParamField body="labelFormat" type="string" default="PDF">
  Label format: `PDF`, `ZPL`, or `PNG`.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Whether the reprint succeeded
</ResponseField>

<ResponseField name="trackingNumber" type="string">
  The tracking number (unchanged)
</ResponseField>

<ResponseField name="labelUrl" type="string">
  New download URL for the label
</ResponseField>

<RequestExample>
  ```json Example Request theme={null}
  {
    "idempotencyKey": "reprint-2024-001",
    "labelFormat": "PDF"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "success": true,
    "trackingNumber": "CBECUSD123456789",
    "labelUrl": "https://labels.crbtrack.com/CBECUSD123456789.pdf?token=xyz789"
  }
  ```

  ```json 409 - Parcel In Transit theme={null}
  {
    "success": false,
    "error": {
      "code": "PARCEL_IN_TRANSIT",
      "message": "Cannot reprint label for a parcel that is already in transit",
      "message_es": "No se puede reimprimir la etiqueta de un paquete que ya está en tránsito",
      "requestId": "req_abc123"
    }
  }
  ```
</ResponseExample>

## Reprint Rules

| Parcel Status        | Can Reprint?       |
| -------------------- | ------------------ |
| `ORDERED`            | ✅ Yes              |
| `LABEL_GENERATED`    | ✅ Yes              |
| `MANIFEST_SUBMITTED` | ⚠️ Contact support |
| `IN_TRANSIT`         | ❌ No               |
| `DELIVERED`          | ❌ No               |
| `VOIDED`             | ❌ No               |

<Warning>
  Reprints are logged for audit purposes. Excessive reprints may trigger a review.
</Warning>
