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

# Verzendlabel ophalen

> Download het verzendlabel van een zending via UPS, DHL Express, DHL Paket of GO! als pdf

Download het verzendlabel van een zending. Print het uit en plak het op het pakket voordat de vervoerder het ophaalt.

Vereist de scope `shipments_view` of `shipments_manage`.

| Vervoerdersproduct | Wat je doet |
| - | - |
| UPS en DHL Express | Print het label. Met `request_pickup` haalt de vervoerder het pakket op binnen het ophaaltijdvak. Zonder deze optie breng je het pakket naar de vervoerder. |
| GO! | Print het label en plak het op het pakket. De vervoerder haalt het op binnen het ophaaltijdvak. |
| DHL-ophaalservice (`dhl_parcel.retoure_pickup`) | Niets om te printen. De chauffeur neemt het label mee. Deze aanroep geeft `404` terug. |
| Andere DHL-producten (DHL Paket, Warenpost) | Print het label en breng het pakket naar DHL. |
| Rotrunner- en Rapido-koeriers | Niets om te printen. Deze aanroep geeft `404` terug. |

Een UPS- of DHL Express-pakket dat door de douane gaat, heeft alleen dit label nodig. We sturen de douanegegevens naar de vervoerder. Zie [Douane](https://docs.anivahealth.com/nl/concepts/shipments.md#douane).

## Verzoek

### Padparameters

**id** `string` *required*

Referentie-ID van de zending, zoals [Zending aanmaken](https://docs.anivahealth.com/nl/api/shipments/create-shipment.md) die
teruggeeft (bijv. `P261202KXTW`).

## Respons

Bij succes geeft de API `200 OK` terug met het label als `application/pdf`, 100 × 150 mm. De bestandsnaam
is `label-{id}.pdf`.

## Foutresponsen

| Status | Beschrijving |
| - | - |
| `400` | Het ID is geen geldige zendingsreferentie. |
| `403` | De zending valt buiten de toegangscontext van je API-sleutel. |
| `404` | De zending bestaat niet, of heeft geen label om te printen. |
| `500` | Interne serverfout. |

```bash cURL theme={null}
curl --request GET \
  --url https://anivahealth.com/api/v1/shipments/P261202KXTW/label \
  --header 'x-api-key: YOUR_API_KEY' \
  --output label-P261202KXTW.pdf
```

```json 404 theme={null}
{
  "error": "This shipment has no label to print: the DHL driver brings it to the pickup."
}
```


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