Schedule a Pickup

HTTP Request

POST /api/v1/pickups

Parameters

AttributeRequiredTypeSpecification
carrierrequiredstringThe Carrier pickup_carrier key from the previous step
companyrequiredstringName of the organization
contact_namerequiredstringName of the person.
phoneoptionalstringPhone number to reach the person or organization
address_1requiredstringFirst line of the address
address_2optionalstringSecond line of the address
cityrequiredstringCity the address is located in
zip_postalrequiredstringZIP or postal code the address is located in
province_staterequiredstringFor Canadian Provinces and US states use two letter abbreviation.
countryrequiredstringTwo-letter ISO 3166 country code.
min_datetimerequireddatetimeExpecting in the following format Y-m-d H:i:s
max_datetimerequireddatetimeSame format as min_datetime. Has to later than the min_datetime.
pickup_instructionsoptionalstringFor example: Please use side door
number_of_boxesrequirednumericNumber of boxes to be picked-up
total_weightrequirednumericFirst line of the address
weight_unitrequiredstringLB or KG

Example

  carrier: 'FedEx'
  company: 'LABELNSHIP CORP'
  contact_name: 'LABELNSHIP CORP'
  phone: '514-555-5555'
  address_1: '22 ATLAS AVE'
  city: 'YORK'
  province_state: 'ON'
  country: 'CA'
  zip_postal: 'L4J3J8'
  min_datetime: '2021-10-20 12:00:00'
  max_datetime: '2022-10-20 17:00:00'
  pickup_instructions: 'Please use side door'
  number_of_boxes: 1
  total_weight: 1
  weight_unit: 'LB'
  {
      "success": true,
      "pickup_id": 1324,
      "pickup_confirmation_number": "YKZA-131"
  }
  {
    "success": false,
    "errors": [
      "Severity: ERROR",
      "Source: disp",
      "Code: 508C",
      "Message: Cannot schedule a pickup request for a previous day",
      "LocalizedMessage: Cannot schedule a pickup request for a previous day"
    ]
  }