SchedulePickup Method
This method schedules a courier pickup.
Syntax
function SchedulePickup(): String;Remarks
Schedules a courier pickup and returns a confirmation number for the scheduled pickup.
The following properties are applicable:
- CarrierType (required, valid values are ctFDXG (FedEx Ground) or ctFDXE (FedEx Express))
- CompanyCloseTime
- Packages (required if PackageCount is not set)
- PackageLocation
- SenderAddress1 (required when UseAccountAddress is false)
- SenderAddress2 (optional)
- SenderCity (required when UseAccountAddress is false)
- SenderState (required when UseAccountAddress is false)
- SenderZipCode (required when UseAccountAddress is false)
- SenderCountryCode (required when UseAccountAddress is false)
- SenderCompany (required when UseAccountAddress is false)
- SenderEmail (optional)
- SenderFax (optional)
- SenderFirstName (required when UseAccountAddress is false)
- SenderLastName (required when UseAccountAddress is false)
- SenderMiddleInitial (optional)
- SenderPhone (required when UseAccountAddress is false)
- ShipDate
- ShipTime
- PackageCount (optional)
- TotalWeight (required)
- SpecialInstructions (optional)
- UseAccountAddress (optional)
If the courier pickup service is available for the supplied address, the confirmation number will be returned by this method. The Location property will also be populated.
Prior to making a SchedulePickup call, it is recommended to first call the PickupAvailability method to confirm that the pickup service is available.