> ## 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.

# Afspraken van zending weergeven

> De afspraken weergeven die aan een zending zijn gekoppeld

Geeft de volledige afspraakobjecten terug die aan deze zending zijn gekoppeld en binnen je toegangscontext vallen,
oudste koppeling eerst. De omgekeerde opvraging
is [Zendingen ophalen](https://docs.anivahealth.com/nl/api/shipments/list-shipments.md) met `?appointment_id=`.

Lege array als er geen afspraken zijn gekoppeld. Lees het veld `appointments` in [Zending ophalen](https://docs.anivahealth.com/nl/api/shipments/get-shipment.md)
als je alleen de ID's wilt bekijken zonder de volledige afspraakgegevens.

Vereist de scope `shipments_view`, `shipments_manage` of `appointments_view`.

## Verzoek

### Padparameters

**id** `string` *required*

Referentie-ID van de zending (bijv. `P2611194821`).

## Respons

Bij succes geeft de API `200 OK` terug met een array van afspraakobjecten. Elk item heeft
dezelfde structuur als [Afspraak ophalen](https://docs.anivahealth.com/nl/api/appointments/get-appointment.md).

## Foutresponsen

| Status | Beschrijving |
| - | - |
| `400` | Ongeldig ID-formaat. |
| `403` | Verboden — je API-sleutel heeft geen toegang tot deze bewerking of de zending valt buiten je toegangscontext. |
| `404` | Zending niet gevonden. |
| `500` | Interne serverfout. |

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

```json 200 theme={null}
[
  {
    "id": "c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
    "profile_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "location_id": "b7e2d1f5-3c4a-4e8b-a2f1-9d0c1e2f3a4b",
    "scheduled_at": "2026-04-15T08:30:00Z",
    "status": "blood_drawn",
    "created_at": "2026-04-01T10:00:00Z",
    "updated_at": "2026-04-15T09:00:00Z",
    "profile": {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane.doe@example.com",
      "date_of_birth": "1990-06-15",
      "sex": 2
    },
    "panels": [
      {
        "panel_id": "f1c2d4a3-7b8e-4f2a-9c1d-2e3f4a5b6c7d",
        "added_at": "2026-04-01T10:05:00Z"
      }
    ],
    "individual_biomarkers": [],
    "shipments": [
      {
        "id": "P2611194821",
        "added_at": "2026-04-15T07:00:00Z"
      }
    ]
  }
]
```

```json 404 theme={null}
{
  "error": "Shipment not found"
}
```


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