# Schedule a pickup

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

`POST https://services.parcelparcel.com/partners-api/v1/shipments/{shipmentId}/pickup`

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](https://www.parcelparcel.com/api-docs/create-shipment/).

* Get the available dates and times first with [Get the available pickup times](https://www.parcelparcel.com/api-docs/pickup-slots/). 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](https://www.parcelparcel.com/api-docs/reschedule-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](https://www.parcelparcel.com/api-docs/create-shipment/#body) instead.

## Header

Add the following headers:

| Name         | Value                          |
| :----------- | :----------------------------- |
| Content-Type | application/json               |
| X-PP-API     | `{YourAPIKey}@{YourAPISecret}` |

Don't have an API Key and API Secret yet? Check our [Authentication](https://www.parcelparcel.com/api-docs/authentication/) page to see how to get them in under a minute.

## Body

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

| Name         | Value               | Required | Comments                                                                              |
| :----------- | :------------------ | :------- | :------------------------------------------------------------------------------------ |
| date         | (string) YYYY-MM-DD | true     | A `date` from the available pickup times, for example `"2026-12-01"`.                 |
| timeFrom     | (string) HH:MM      | true     | A `from` time of that date, for example `"09:00"`.                                    |
| timeTo       | (string) HH:MM      | true     | One of the `to` times that belong to that `from` time, for example `"17:00"`.         |
| instructions | (string)            | false    | Instructions 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:

| Name                | Value            | Comments                                                                  |
| :------------------ | :--------------- | :------------------------------------------------------------------------ |
| 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](https://www.parcelparcel.com/api-docs/get-pickup/#response). |
| carrierStatus       | (string)         | How the carrier handled the request. See the values below.                |
| message             | (string)         | Tells you the result in plain English.                                    |

### Carrier status values

| Value           | Meaning                                                                                                   |
| :-------------- | :-------------------------------------------------------------------------------------------------------- |
| `confirmed`     | The carrier confirmed the pickup through its system.                                                      |
| `requested`     | We sent your request to the carrier by email. The carrier has not confirmed it yet.                       |
| `not_supported` | We saved the pickup, but this carrier does not take pickup changes through ParcelParcel. Contact [support](https://www.parcelparcel.com/api-docs/support/). |
| `sandbox`       | You used your [sandbox key](https://www.parcelparcel.com/api-docs/authentication/#test-with-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.

| error                 | Status | Meaning                                                                                                    |
| :-------------------- | :----- | :--------------------------------------------------------------------------------------------------------- |
| `invalid_pickup`      | 400    | The request is not valid. `errors` has one entry per wrong field, with `field` and `message`.               |
| `conflict`            | 409    | The pickup cannot be changed in the current state of the shipment. `message` tells you why.                |
| `carrier_rejected`    | 422    | The carrier refused. `message` is the carrier's reason. Nothing changed.                                   |
| `carrier_unavailable` | 502    | We could not reach the carrier. Nothing changed: try again later.                                          |
| `internal_error`      | 500    | Something went wrong on our side. See [General information](https://www.parcelparcel.com/api-docs/general-information/#unexpected-errors). |

### Status codes

| Status code              | Meaning                                                                                                                                          |
| :----------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------- |
| 200 OK                   | The pickup is scheduled. Check `carrierStatus`.                                                                                                  |
| 400 Bad Request          | The 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 Found            | We could not find the shipment in your account. Make sure that the `shipmentId` is correct.                                                      |
| 409 Conflict             | The shipment already has a pickup (use [Reschedule a pickup](https://www.parcelparcel.com/api-docs/reschedule-pickup/)), the carrier already has the parcel, or no pickup can be planned for this shipment. See `message`. |
| 422 Unprocessable Entity | The carrier refused the pickup. Nothing changed. Read `message` for the reason.                                                                  |
| 502 Bad Gateway          | We 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](https://www.parcelparcel.com/api-docs/postman-guide/).

### Request example - Schedule a pickup on 1 December

```bash cURL
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"
}'
```
```http HTTP
POST /partners-api/v1/shipments/1588448/pickup HTTP/1.1
Host: services.parcelparcel.com
X-PP-API: {YourAPIKey}@{YourAPISecret}
Content-Type: application/json

{
  "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"
```
