ParcelParcelAPI docs

API docs Endpoints

Schedule a pickup

Markdown

Let the carrier pick up a booked shipment on a date and time you choose.

POSThttps://services.parcelparcel.com/partners-api/v1/shipments/{shipmentId}/pickup

Example request

Schedule a pickup on 1 December

curl --request POST 'https://services.parcelparcel.com/partners-api/v1/shipments/1588448/pickup' \
  --header 'X-PP-API: {YourAPIKey}@{YourAPISecret}' \
  --header 'Content-Type: application/json' \
  --data '{
  "date": "2026-12-01",
  "timeFrom": "09:00",
  "timeTo": "17:00",
  "instructions": "Ring at the back door"
}'

Tip: copy the cURL and paste it in Postman under Import, or straight into the URL bar of a new request. Postman fills in the method, headers and body for you. Replace {YourAPIKey}@{YourAPISecret} with your own API key and secret (use your sandbox key while testing), or import the whole Postman Collection.

This endpoint asks the carrier to pick up a shipment at the pickup address. Use it when you booked a shipment without a pickup and want the carrier to come after all.

Replace {shipmentId} with the id that you got in the response when you created the shipment.

  • Get the available dates and times first with Get the available pickup times. The date and times you send must be one of these slots.
  • This works only while the carrier has not picked up the parcel.
  • A shipment has one pickup. Already scheduled one? Use Reschedule a pickup to change it.
  • You can only use shipments of your own account. A shipment of another account gives the same 404 as an unknown id.

Want a pickup when you create the shipment? Use schedulePickup in Create a (draft) shipment instead.

Add the following headers:

NameValue
Content-Typeapplication/json
X-PP-API{YourAPIKey}@{YourAPISecret}

Don't have an API Key and API Secret yet? Check our Authentication page to see how to get them in under a minute.

Body

The request body is a JSON object with the following elements:

NameValueRequiredComments
date(string) YYYY-MM-DDrequiredA date from the available pickup times, for example "2026-12-01".
timeFrom(string) HH:MMrequiredA from time of that date, for example "09:00".
timeTo(string) HH:MMrequiredOne of the to times that belong to that from time, for example "17:00".
instructions(string)optionalInstructions for the driver, for example "Ring at the back door". At most 255 characters.

All times are in the time zone of the available pickup times (timezone, for example Europe/Amsterdam).

Response

The response body is a JSON object with the following elements:

NameValueComments
shipmentId(int)The id of the shipment.
pickup(object)The pickup: date, timeFrom, timeTo and instructions. The same as in Get the pickup of a shipment.
carrierStatus(string)How the carrier handled the request. See the values below.
message(string)Tells you the result in plain English.

Carrier status values

ValueMeaning
confirmedThe carrier confirmed the pickup through its system.
requestedWe sent your request to the carrier by email. The carrier has not confirmed it yet.
not_supportedWe saved the pickup, but this carrier does not take pickup changes through ParcelParcel. Contact support.
sandboxYou used your sandbox key: we saved the pickup, but never sent it to the carrier.

Errors

Every error is a JSON object with error (a fixed code) and message (what went wrong, in plain English). Only the 404 is a plain string, the same as in the other shipment endpoints.

errorStatusMeaning
invalid_pickup400The request is not valid. errors has one entry per wrong field, with field and message.
conflict409The pickup cannot be changed in the current state of the shipment. message tells you why.
carrier_rejected422The carrier refused. message is the carrier's reason. Nothing changed.
carrier_unavailable502We could not reach the carrier. Nothing changed: try again later.
internal_error500Something went wrong on our side. See General information.

Status codes

Status codeMeaning
200 OKThe pickup is scheduled. Check carrierStatus.
400 Bad RequestThe body is not valid: a field is missing or has the wrong format, the date is in the past, or the date and times are not one of the available pickup times. See errors.
404 Not FoundWe could not find the shipment in your account. Make sure that the shipmentId is correct.
409 ConflictThe shipment already has a pickup (use Reschedule a pickup), the carrier already has the parcel, or no pickup can be planned for this shipment. See message.
422 Unprocessable EntityThe carrier refused the pickup. Nothing changed. Read message for the reason.
502 Bad GatewayWe could not reach the carrier. Nothing changed: try again later.

409 messages you can get:

  • The shipment already has a pickup. Use reschedule to change it.
  • The carrier already has the parcel, so the pickup can no longer be changed.
  • The shipment is cancelled.
  • The shipment has no contract, so no pickup can be planned.
  • The shipment has no pickup address, so no pickup can be planned.

Examples

Don't know how to test these requests? Check our guide.

Request example - Schedule a pickup on 1 December

curl --location --request POST 'https://services.parcelparcel.com/partners-api/v1/shipments/1588448/pickup' \
--header 'X-PP-API: {YourAPIKey}@{YourAPISecret}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "date": "2026-12-01",
  "timeFrom": "09:00",
  "timeTo": "17:00",
  "instructions": "Ring at the back door"
}'

Don't forget to change the X-PP-API element in the header, or this request will not work.

Response example - Pickup confirmed by the carrier (200)

JSON
{
  "shipmentId": 1588448,
  "pickup": {
    "date": "2026-12-01",
    "timeFrom": "09:00",
    "timeTo": "17:00",
    "instructions": "Ring at the back door"
  },
  "carrierStatus": "confirmed",
  "message": "The carrier confirmed the pickup."
}

Response example - Pickup saved with a sandbox key (200)

JSON
{
  "shipmentId": 1588448,
  "pickup": {
    "date": "2026-12-01",
    "timeFrom": "09:00",
    "timeTo": "17:00",
    "instructions": "Ring at the back door"
  },
  "carrierStatus": "sandbox",
  "message": "Sandbox shipment: the pickup is saved but not sent to the carrier."
}

Response example - Time not in the available pickup times (400)

JSON
{
  "error": "invalid_pickup",
  "message": "The pickup is not valid.",
  "errors": [
    {
      "field": "timeFrom",
      "message": "2026-12-01 07:00-17:00 is not an available pickup time. Use the pickup slots of the shipment."
    }
  ]
}

Response example - Shipment already has a pickup (409)

JSON
{
  "error": "conflict",
  "message": "The shipment already has a pickup. Use reschedule to change it."
}

Response example - Carrier refused the pickup (422)

JSON
{
  "error": "carrier_rejected",
  "message": "The carrier cannot pick up at this address on the chosen date."
}

Response example - Carrier not reachable (502)

JSON
{
  "error": "carrier_unavailable",
  "message": "The carrier could not be reached. Nothing was changed; try again later."
}

Response example - Shipment not found (404)

JSON
"Shipment not found"