SchedulePickup Method
This method schedules a courier pickup.
Syntax
[VB.NET] Public Function SchedulePickup() As String
[C#] public string SchedulePickup();
Remarks
Schedules a courier pickup and returns a confirmation number for the scheduled pickup.
The following properties are applicable:
- ApprovedBy
- Company (optional)
- Email (optional)
- Fax (optional)
- FirstName (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- LastName (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- MiddleInitial (optional)
- Phone (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- BookingNumber (required when ServiceType is set to stFedEx1DayFreight, stFedExInternationalPriorityFreight, or stFedExInternationalEconomyFreight)
- CarrierType (required, should be set to ctFXFR only if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority, otherwise should be set to ctFDXE.)
- Commodities
- FreightPackagingType (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- Weight (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- HandlingUnits (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- PONumber (optional, only applies if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- CompanyCloseTime (required)
- PackageLocation (required)
- Packages (optional)
- PackageCount (required if Packages are not provided)
- PickupPaymentType (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- RecipientAddress
- Address1 (optional)
- Address2 (optional)
- City(required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- State(required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- ZipCode(required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- CountryCode (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- SenderAddress
- Address1 (required when UseAccountAddress is false)
- Address2 (optional)
- City (required when UseAccountAddress is false)
- State (required when UseAccountAddress is false)
- ZipCode (required when UseAccountAddress is false)
- CountryCode (required when UseAccountAddress is false)
- SenderContact
- Company (required when UseAccountAddress is false)
- Email (optional)
- Fax (optional)
- FirstName (required when UseAccountAddress is false)
- LastName (required when UseAccountAddress is false)
- MiddleInitial (optional)
- Phone (required when UseAccountAddress is false)
- ServiceType (required)
- ShipDate (required)
- ShipmentInfo
- AlternateBillingAccountNumber (optional)
- AlternateBillingPersonName (optional)
- AlternateBillingCompanyName (optional)
- AlternateBillingStreetAddress (optional)
- AlternateBillingCity (optional)
- AlternateBillingState (optional)
- AlternateBillingZipCode (optional)
- AlternateBillingCountryCode (optional)
- Role(required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- TotalHeight (required when ServiceType is set to an Express Freight type, such as stFedEx1DayFreight, stFedEx2DayFreight, stFedEx3DayFreight, stFedExFirstFreight, stFedExInternationalPriorityFreight, or stFedExInternationalEconomyFreight)
- TotalLength (required when ServiceType is set to an Express Freight type, such as stFedEx1DayFreight, stFedEx2DayFreight, stFedEx3DayFreight, stFedExFirstFreight, stFedExInternationalPriorityFreight, or stFedExInternationalEconomyFreight)
- TotalWidth (required when ServiceType is set to an Express Freight type, such as stFedEx1DayFreight, stFedEx2DayFreight, stFedEx3DayFreight, stFedExFirstFreight, stFedExInternationalPriorityFreight, or stFedExInternationalEconomyFreight)
- ShipTime (optional)
- SpecialInstructions (optional)
- SubmittedBy
- Company (optional)
- Email (optional)
- Fax (optional)
- FirstName (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- LastName (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- MiddleInitial (optional)
- Phone (required if ServiceType is set to stFedExFreightEconomy or stFedExFreightPriority)
- TotalWeight (required)
- TruckType (required when ServiceType is set to an Express Freight type, such as stFedEx1DayFreight, stFedEx2DayFreight, stFedEx3DayFreight, stFedExFirstFreight, stFedExInternationalPriorityFreight, or stFedExInternationalEconomyFreight)
- TrailerSize (required when ServiceType is set to an Express Freight type, such as stFedEx1DayFreight, stFedEx2DayFreight, stFedEx3DayFreight, stFedExFirstFreight, stFedExInternationalPriorityFreight, or stFedExInternationalEconomyFreight)
- 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.
NOTE: This method has a corresponding asynchronous version (SchedulePickupAsync) for use in the WinRT environment.