curl https://api.goshippo.com/pickups/ \
-H "Authorization: ShippoToken <API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"carrier_account":"6c51273296864869829b96a80fb13ea1",
"location":{
"building_location_type": "Other",
"building_type": "suite",
"instructions": "Behind screen door",
"address": {
"name": "Mrs Hippo",
"company": "Hungry Hippos",
"street1": "965 Mission St #201",
"city": "San Francisco",
"state": "CA",
"zip": "95122",
"country": "US",
"phone": "+14159876543",
"email": "mrshippo@shippo.com"
}
},
"transactions": ["7439c279b374494c9a80ca24f59e6fc5"],
"requested_start_time":"2020-05-12T12:00:00Z",
"requested_end_time": "2020-05-12T16:00:00Z",
"metadata": "Customer ID 123456",
"is_test": false
}'{
"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
"location": {
"address": {
"name": "Shwan Ippotle",
"street1": "215 Clayton St.",
"city": "San Francisco",
"state": "CA",
"zip": "94117",
"country": "US",
"company": "Shippo",
"street2": "<string>",
"street3": "",
"street_no": "",
"phone": "+1 555 341 9393",
"email": "shippotle@shippo.com",
"is_residential": true,
"metadata": "Customer ID 123456",
"validate": true
},
"building_location_type": "Front Door",
"building_type": "apartment",
"instructions": "Behind screen door"
},
"requested_end_time": "2023-11-07T05:31:56Z",
"requested_start_time": "2023-11-07T05:31:56Z",
"transactions": [
"adcfdddf8ec64b84ad22772bce3ea37a"
],
"metadata": "<string>",
"object_created": "2023-11-07T05:31:56Z",
"object_id": "<string>",
"object_updated": "2023-11-07T05:31:56Z",
"confirmed_start_time": "2020-05-09T12:00:00Z",
"confirmed_end_time": "2020-05-09T23:59:59.999Z",
"cancel_by_time": "2020-05-09T08:00:00Z",
"status": "CONFIRMED",
"confirmation_code": "WTC310058750",
"timezone": "US/Pacific",
"messages": [],
"is_test": true
}Creates a pickup object. This request is for a carrier to come to a specified location to take a package for shipping.
curl https://api.goshippo.com/pickups/ \
-H "Authorization: ShippoToken <API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"carrier_account":"6c51273296864869829b96a80fb13ea1",
"location":{
"building_location_type": "Other",
"building_type": "suite",
"instructions": "Behind screen door",
"address": {
"name": "Mrs Hippo",
"company": "Hungry Hippos",
"street1": "965 Mission St #201",
"city": "San Francisco",
"state": "CA",
"zip": "95122",
"country": "US",
"phone": "+14159876543",
"email": "mrshippo@shippo.com"
}
},
"transactions": ["7439c279b374494c9a80ca24f59e6fc5"],
"requested_start_time":"2020-05-12T12:00:00Z",
"requested_end_time": "2020-05-12T16:00:00Z",
"metadata": "Customer ID 123456",
"is_test": false
}'{
"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
"location": {
"address": {
"name": "Shwan Ippotle",
"street1": "215 Clayton St.",
"city": "San Francisco",
"state": "CA",
"zip": "94117",
"country": "US",
"company": "Shippo",
"street2": "<string>",
"street3": "",
"street_no": "",
"phone": "+1 555 341 9393",
"email": "shippotle@shippo.com",
"is_residential": true,
"metadata": "Customer ID 123456",
"validate": true
},
"building_location_type": "Front Door",
"building_type": "apartment",
"instructions": "Behind screen door"
},
"requested_end_time": "2023-11-07T05:31:56Z",
"requested_start_time": "2023-11-07T05:31:56Z",
"transactions": [
"adcfdddf8ec64b84ad22772bce3ea37a"
],
"metadata": "<string>",
"object_created": "2023-11-07T05:31:56Z",
"object_id": "<string>",
"object_updated": "2023-11-07T05:31:56Z",
"confirmed_start_time": "2020-05-09T12:00:00Z",
"confirmed_end_time": "2020-05-09T23:59:59.999Z",
"cancel_by_time": "2020-05-09T08:00:00Z",
"status": "CONFIRMED",
"confirmation_code": "WTC310058750",
"timezone": "US/Pacific",
"messages": [],
"is_test": true
}API key authentication using the ShippoToken scheme. Format: Authorization: ShippoToken <API_TOKEN> Example: Authorization: ShippoToken shippo_live_abc123
Optional string used to pick a non-default API version to use. See our API version guide.
"2018-02-08"
Shippo’s pickups endpoint allows you to schedule pickups with USPS and DHL Express for eligible shipments that you have already created.
The object ID of your USPS or DHL Express carrier account. You can retrieve this from your Rate requests or our Carrier Accounts endpoint.
"adcfdddf8ec64b84ad22772bce3ea37a"
Location where the parcel(s) will be picked up.
Show child attributes
The latest that you requested your parcels to be available for pickup. Expressed in the timezone specified in the response.
The earliest that you requested your parcels to be ready for pickup. Expressed in the timezone specified in the response.
The transaction(s) object ID(s) for the parcel(s) that need to be picked up.
["adcfdddf8ec64b84ad22772bce3ea37a"]
A string of up to 100 characters that can be filled with any additional information you want to attach to the object.
Pickup
The object ID of your USPS or DHL Express carrier account. You can retrieve this from your Rate requests or our Carrier Accounts endpoint.
"adcfdddf8ec64b84ad22772bce3ea37a"
Location where the parcel(s) will be picked up.
Show child attributes
The latest that you requested your parcels to be available for pickup. Expressed in the timezone specified in the response.
The earliest that you requested your parcels to be ready for pickup. Expressed in the timezone specified in the response.
The transaction(s) object ID(s) for the parcel(s) that need to be picked up.
["adcfdddf8ec64b84ad22772bce3ea37a"]
A string of up to 100 characters that can be filled with any additional information you want to attach to the object.
Date and time of Pickup creation.
Unique identifier of the given Pickup object.
Date and time of last Pickup update.
The earliest that your parcels will be ready for pickup, confirmed by the carrier. Expressed in the timezone specified in the response.
"2020-05-09T12:00:00Z"
The latest that your parcels will be available for pickup, confirmed by the carrier. Expressed in the timezone specified in the response.
"2020-05-09T23:59:59.999Z"
The latest time to cancel a pickup. Expressed in the timezone specified in the response. To cancel a pickup, you will need to contact the carrier directly. The ability to cancel a pickup through Shippo may be released in future iterations.
"2020-05-09T08:00:00Z"
Indicates the status of the pickup.
PENDING, CONFIRMED, ERROR, CANCELLED "CONFIRMED"
Pickup's confirmation code returned by the carrier.
To edit or cancel a pickup, you will need to contact USPS or DHL Express directly and provide your confirmation_code.
"WTC310058750"
The pickup time windows will be in the time zone specified here, not UTC.
"US/Pacific"
An array containing strings of any messages generated during validation.
[]
Indicates whether the object has been created in test mode.
Was this page helpful?