# Get the pickup of a shipment

> See if a carrier pickup is scheduled for a shipment, and for when.

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

This endpoint shows the pickup that is scheduled for a shipment: the date, the time window and the instructions for the driver. If no pickup is scheduled, `pickup` is `null`.

Replace `{shipmentId}` with the `id` that you got in the response when you [created the shipment](https://www.parcelparcel.com/api-docs/create-shipment/).

You can only see shipments of your own account. A shipment of another account gives the same `404` as an unknown id.

To add, change or cancel a pickup, see [Schedule a pickup](https://www.parcelparcel.com/api-docs/schedule-pickup/), [Reschedule a pickup](https://www.parcelparcel.com/api-docs/reschedule-pickup/) and [Cancel a pickup](https://www.parcelparcel.com/api-docs/cancel-pickup/).

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

This endpoint does not need a request body.

## Response

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

| Name                | Value            | Comments                                                                  |
| :------------------ | :--------------- | :------------------------------------------------------------------------ |
| shipmentId          | (int)            | The id of the shipment.                                                   |
| pickup              | (object \| null) | The scheduled pickup. `null` if no pickup is scheduled.                   |
| pickup.date         | (string)         | The pickup date. Format: `YYYY-MM-DD`.                                    |
| pickup.timeFrom     | (string)         | The start of the time window, for example `09:00`.                        |
| pickup.timeTo       | (string)         | The end of the time window, for example `17:00`.                          |
| pickup.instructions | (string \| null) | Instructions for the driver, for example where to ring.                   |

### Status codes

| Status code   | Meaning                                                                                      |
| :------------ | :------------------------------------------------------------------------------------------- |
| 200 OK        | The response shows the pickup, or `pickup` is `null` if no pickup is scheduled.              |
| 404 Not Found | We could not find the shipment in your account. Make sure that the `shipmentId` is correct.  |

## Examples

Don't know how to test these requests? Check [our guide](https://www.parcelparcel.com/api-docs/postman-guide/).

### Request example - Get the pickup of a shipment

```bash cURL
curl --location --request GET 'https://services.parcelparcel.com/partners-api/v1/shipments/1588448/pickup' \
--header 'X-PP-API: {YourAPIKey}@{YourAPISecret}' \
--header 'Content-Type: application/json'
```
```http HTTP
GET /partners-api/v1/shipments/1588448/pickup HTTP/1.1
Host: services.parcelparcel.com
X-PP-API: {YourAPIKey}@{YourAPISecret}
Content-Type: application/json
```

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

### Response example - Pickup scheduled (200)

```json
{
  "shipmentId": 1588448,
  "pickup": {
    "date": "2026-12-01",
    "timeFrom": "09:00",
    "timeTo": "17:00",
    "instructions": "Ring at the back door"
  }
}
```

### Response example - No pickup scheduled (200)

```json
{
  "shipmentId": 1588448,
  "pickup": null
}
```

### Response example - Shipment not found (404)

```json
"Shipment not found"
```
