Order pickup
Orders parcel pickup by the carrier's courier for the purchased order in the selected window.
POST /shipments/{id}/pickup
- Key Permission:
labels:create - Key: only live key sk_live (test key will get 403 test_key_cannot_buy)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | yes | Order number or tracking number (in the address). |
slot_id |
string | yes | Pickup slot ID from the GET /shipments/{id}/pickup_slots response. |
In the address {id} is the order number (field id from the response) or tracking number.
Important to know
- An order can have only one active pickup. The pickup fee is deducted from your balance.
- If the carrier does not accept the request, a 502
provider_errorwill be returned, and the pickup fee will be refunded to your balance. If the time slot is no longer available, a 422 will be returned.
Request example
curl -X POST https://api.shippickup.com/v1/shipments/4f2a9c1e7b3d48a6c5e0f1d2b3/pickup \
-H "Authorization: Bearer $SHIPPICKUP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"slot_id": "<slot_id>"
}'<?php
$body = [
'slot_id' => '<slot_id>',
];
$ch = curl_init('https://api.shippickup.com/v1/shipments/4f2a9c1e7b3d48a6c5e0f1d2b3/pickup');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('SHIPPICKUP_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode($body),
]);
$response = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
print_r([$status, $response]);
import os
import requests
body = {
"slot_id": "<slot_id>",
}
r = requests.post(
"https://api.shippickup.com/v1/shipments/4f2a9c1e7b3d48a6c5e0f1d2b3/pickup",
headers={
"Authorization": "Bearer " + os.environ["SHIPPICKUP_API_KEY"],
},
json=body,
timeout=30,
)
print(r.status_code, r.json())
const body = {
"slot_id": "<slot_id>"
};
const res = await fetch("https://api.shippickup.com/v1/shipments/4f2a9c1e7b3d48a6c5e0f1d2b3/pickup", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SHIPPICKUP_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
console.log(res.status, await res.json());
Response example 201
JSON
{
"data": {
"id": "4f2a9c1e7b3d48a6c5e0f1d2b3",
"reference": "ORDER-10452",
"status": "label_ready",
"carrier": "UPS",
"service": "Express Saver",
"tracking_number": "1Z999AA10123456784",
"price_cents": 4120,
"currency": "USD",
"from": {
"name": "Acme Store",
"company": "Acme Inc",
"line1": "350 5th Ave",
"line2": "",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US"
},
"to": {
"name": "Anna Schmidt",
"company": "",
"line1": "Unter den Linden 1",
"line2": "",
"city": "Berlin",
"state": "",
"postal_code": "10117",
"country": "DE"
},
"declared_value_cents": 5000,
"chargeable_weight_g": 800,
"label_available": true,
"eta_from": "2026-12-10",
"eta_to": "2026-12-12",
"source": "api",
"created_at": "2026-12-04T10:15:30+00:00",
"delivered_at": null,
"cancelled_at": null,
"pickup": {
"status": "confirmed",
"date": "2026-12-08",
"window_from": "09:00",
"window_to": "18:00",
"reference": "PU123456",
"fee_cents": 0,
"currency": "USD",
"note": ""
}
}
}Possible errors
| HTTP | Code | Description |
|---|---|---|
| 403 | test_key_cannot_buy | Test key does not purchase labels or order pickups, use a live key. |
| 422 | validation_failed | Error in request fields. error.details specifies the reason for each field. |
| 402 | insufficient_funds | Insufficient funds on balance. Please top up your balance and retry. |
| 409 | conflict | Action is currently not possible for this order (e.g., order cannot be canceled or pickup already ordered). Reason text in error.message. |
| 502 | provider_error | The carrier did not complete the operation. The money has been refunded automatically. |
| 403 | insufficient_scope | Key lacks the required permission, specified in error.details.required_scope. |