Create a new carrier pickup for a specified pickupDate. If the address is eligible, any future date can be selected (same-day availability is subject to time-of-day restrictions).
Required data includes pickupDate, pickupAddress (with contact info), packages (specifying packageType and packageCount), estimatedWeight, and pickupLocation details.
curl -X 'POST' 'https://apis.usps.com/pickup/v3/carrier-pickup' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $TOKEN' \
--data-raw '{
"pickupDate": "2023-04-21",
"pickupAddress": {
"firstName": "John",
"lastName": "Smith",
"firm": "FIRM",
"address": {
"streetAddress": "4120 Bingham",
"streetAddressAbbreviation": "Ave",
"secondaryAddress": null,
"city": "Saint Louis",
"cityAbbreviation": "",
"state": "MO",
"postalCode": "63116",
"province": "",
"ZIPCode": "63116",
"ZIPPlus4": "2520",
"urbanization": ""
},
"contact": [
{"email":"john.smith@firm.com"},
{"phone": "3333333333"}
]
},
"packages": [
{
"packageType": "FIRST-CLASS_PACKAGE_SERVICE",
"packageCount": 1
}
],
"estimatedWeight": 5,
"pickupLocation": {
"packageLocation": "OFFICE",
"specialInstructions": "Have a nice day"
}
}'