This method is used to create pickup orders that can be viewed from the pickup orders page in the dashboard. It can be used by sending a POST request to: https://api.deftship.com/pickup-orders.
| Method | URI | Headers |
|---|---|---|
| POST | pickup-orders |
default |
[ups, dhl, usps, canadapost]
pickup_date | Yes | String | Proposed pickup date, in Y-m-d. Condition: only not required if a "carrier" is "dhl"
ready_time | No | String | Opening time of pickup address, in H:i. Condition: only required if a "carrier" is "ups"
close_time | No | String | Closing time of pickup address, in H:i. Condition: only required if a "carrier" is "ups"
pieces [] | Yes | Array | An array containing all the information about pieces
+service | Yes | String | For a full list please check out carrier service types.
+container_type | No | String | Container type is either "package" or "letter". Condition: only required if a "carrier" is "ups"
+quantity | Yes | Integer | Quantity of the pickup item
+weight | Yes | Float | Weight (LBS)
+destination_country_code | No | String | Destination country needs to be a country code please refer to country-codes. Condition: only required if a "carrier" is "ups"{
"from_address_id": 1387235969,
"carrier": "ups",
"ready_time": "13:30",
"close_time": "15:30",
"pickup_date": "04/28/2023",
"pieces": [
{
"service": "PICKUP-UPS-1",
"container_type": "package",
"quantity": "2",
"weight": "20",
"destination_country_code": "US"
}
]
}
{
"from_address_id": 696756088,
"carrier": "usps",
"pickup_date": "04/28/2023",
"pieces": [
{
"service": "PICKUP-USPS-1",
"quantity": "2",
"weight": "20"
}
]
}
[ups, dhl, usps, canadapost])
+pieces | Array | Piece details
++readable_service | String | Readable service name
++service | String | Service Code
++container_type | String | Container Type
++quantity | Integer | Pieces Quantity
++weight | Integer | Weight
++destination_country_code | String | Country of the destination country (code) for the list please refer to country-codes
+total_weight | String | Total weight in pounds
+ready_time | String | Ready time of order
+close_time | String | Close time of order
+pickup_date | String | Pickup date
{
"success": true,
"data": {
"from_address": {
"id": 1387235969,
"name": "NV",
"attention": "NV",
"city": "LAS VEGAS",
"state": "NV",
"zip": "89107",
"country": "US",
"telephone": "888888888888",
"is_residential": false,
"street_1": "556 Vanguard Way Suite D",
"street_2": null,
"street_3": null
},
"id": 740102512,
"piece_count": 1,
"status": "ready",
"carrier": "ups",
"pieces": [
{
"readable_service": "UPSĀ® Ground",
"service": "03",
"container_type": "package",
"quantity": 2,
"weight": 20,
"destination_country_code": "US"
}
],
"total_weight": "40 LBS",
"ready_time": "13:30",
"close_time": "15:30",
"pickup_date": "05-01-2023"
}
}
Failed
{
"success": false,
"message": "Pickup order could not be saved"
}