Skip to main content

Pickup Orders

Create scheduled recurring pickup orders. DPD will collect parcels from your location on specified days and time windows.

Endpoint: POST /api/v1/pickup-orders Auth: Bearer JWT token required


Request

Query parameter: locale (optional) — e.g., de_CH, en_US, fr_CH, it_CH

Body: List<PickupOrderDTO>

Fields

FieldTypeLengthRequiredDescription
invoicingNumberString1–20MandatoryCustomer billing number
pickupDateString10MandatoryScheduled pickup date (yyyy-MM-dd), must be future
weekDayIntegerOptionalDay of week (1=Mon … 7=Sun). Auto-calculated from pickupDate if omitted
fromTime1String5OptionalMorning time window start (HH:mm)
toTime1String5OptionalMorning time window end (HH:mm)
fromTime2String5OptionalAfternoon time window start (HH:mm)
toTime2String5OptionalAfternoon time window end (HH:mm)
addressAddressDTOMandatoryPickup location address
numberOfParcelsIntegerMandatoryExpected number of parcels (1–99)
tourString0–50OptionalTour/route identifier
clientSoftwareString0–50OptionalClient application name
clientVersionString0–20OptionalClient application version

Time windows

You can specify up to two time windows (morning and afternoon). Leave afternoon fields empty for a single continuous window.

WindowFieldsExample
MorningfromTime1 / toTime108:00 / 12:00
AfternoonfromTime2 / toTime213:00 / 17:00

Example

curl -X POST "https://label-print-shipments.dpd.ch/api/v1/pickup-orders?locale=de_CH" \
-H "Authorization: Bearer <jwt_token>" \
-H "Content-Type: application/json" \
-d '[
{
"invoicingNumber": "12345678",
"pickupDate": "2025-10-31",
"weekDay": 5,
"fromTime1": "08:00",
"toTime1": "12:00",
"fromTime2": "13:00",
"toTime2": "17:00",
"numberOfParcels": 15,
"address": {
"name": "Warehouse Location A",
"countryCode": "CH",
"zipCode": "8000",
"city": "Zürich",
"street": "Industriestrasse 45",
"phone": "+41441234567",
"email": "warehouse@company.ch",
"reference": "WAREHOUSE-A"
},
"tour": "TOUR-ZH-WEST",
"clientSoftware": "Customer App",
"clientVersion": "4.0.0"
}
]'

Response

201 Created — all orders created:

{
"tracingId": "TRACE-321",
"success": [
{ "id": 1, "tracingId": "123456789" }
],
"failed": []
}

207 Multi-Status — partial success with field-level errors:

{
"tracingId": "TRACE-322",
"success": [],
"failed": [
{
"id": 1,
"fieldErrors": {
"numberOfParcels": ["MAX_99"],
"address.countryCode": ["REQUIRED"]
}
}
]
}

Status codes:

CodeDescription
201 CreatedAll pickup orders created
207 Multi-StatusSome succeeded, some failed
400 Bad RequestValidation error
401 UnauthorizedMissing or invalid token

Difference from Collection Requests

Pickup OrdersCollection Requests
FrequencyRecurring (weekly schedule)One-time
Time windowsUp to 2 (morning + afternoon)Defined by DPD
Parcels limit99999
Weight fieldNot requiredOptional (grams)