Schedule a pickup for your shipments
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide describes how to schedule a pickup for shipments.
The Pickup object allows you to schedule a pickup from a carrier to your place of business on a requested time window.
After a Pickup is successfully created, it will include a confirmationCode which serves as the carrier's unique identifier for the pickup.
In order to request pickups in production you need to have a registered account with the carrier with the required credentials for the Pickup service.
You need to enter your carrier specific credentials using the Kublau dashboard:
From your Kublau dashboard, go to Settings > Carrier Accounts.
Click on New Carrier Account.
Select the carrier and enter the corresponding credentials.
To follow along the steps in this guide we'll provide an interactive environment with our .
You'll need to provide an address, an estimated amount of parcels, their average size, the requested time window and the contact details of the person responsible for the pickup.
Here is an example of how to create a pickup:
Field
Type
Description
carrier
Carrier!
The carrier for which the pickup is being requested.
quantity
Integer!
The estimated amount of packages that will be picked up.
requestedStartAt
Time!
The earliest time at which the package is available for pick up. Represented in ISO 8601.
requestedEndAt
Time!
The latest time at which the package is available for pick up. Must be later than the requestedStartAt
. Represented in ISO 8601.
address
AddressContactSegmentedInput!
The pickup address
parcel
Parcel!
The parcel's size and weight in centimeters and grams.
line1
String!
The first line of the address. Typically the street address or PO Box number.
line2
String!
The second line of the address. Typically the number of the apartment, suite, or unit.
houseNumber
String!
External (street-facing) building number. In some countries this may be a compount, hyphenated number which also includes an apartment number, or a block number
city
String!
An apartment, unit, office, lot, or other secondary unit designation.
locality
String!
Usually an unofficial neighborhood name like "Harlem", "South Bronx", or "Crown Heights".
state
String!
The code for the region of the address, such as the state, province, or district. For example MEX for Estado de México, México.
country
String!
The two-letter code for the country of the address. For example, MX.
postalCode
String!
The postal code or zip of the address.
name
String!
The full name of the person responsible for the pickup.
phone
String!
A unique phone number for pickup contact details. Formatted using E.164 standard. For example, +525529785632.
String!
The pickup contact email where confirmation details and cancellation notices will be sent to.
When you request a pickup, the API responds again with a Pickup
object that includes a carrier unique confirmationCode
.
Field
Type
Description
confirmationCode
String!
The confirmation number for a booked pickup with the carrier
carrier
Carrier!
A list of carriers to fetch rates for. Normally you will only include one.
quantity
Integer!
The earliest time at which the package is available to pick up
requestedStartAt
Time!
The earliest time at which the package is available for pick up. Represented in ISO 8601.
requestedEndAt
Time!
The latest time at which the package is available for pick up. Must be later than the requestedStartAt
. Represented in ISO 8601.
address
Address!
The pickup address
parcel
Parcel!
The parcel's size and weight in centimeters and grams.
This is all that is required to request a pickup. The carrier should arrive at the specified address according to the requested pickup window.