ServiceType Property
Indicates the service type in the list of available services returned.
Syntax
canadapostrates.getServiceType(index, [callback])
Possible Values
0 (stUnspecified), 10 (stFedExPriorityOvernight), 11 (stFedExStandardOvernight), 12 (stFedExFirstOvernight), 13 (stFedEx2Day), 14 (stFedExExpressSaver), 15 (stFedExGround), 16 (stFedExGroundHomeDelivery), 17 (stFedEx1DayFreight), 18 (stFedEx2DayFreight), 19 (stFedEx3DayFreight), 20 (stFedExInternationalPriority), 21 (stFedExInternationalEconomy), 22 (stFedExInternationalFirst), 23 (stFedExInternationalPriorityFreight), 24 (stFedExInternationalEconomyFreight), 25 (stFedExEuropeFirstInternationalPriority), 26 (stFedExSmartPost), 27 (stFedEx2DayAM), 28 (stFedExFirstFreight), 29 (stFedExInternationalGround), 30 (stFedExFreightEconomy), 31 (stFedExFreightPriority), 35 (stUPSFirstClass), 36 (stUPSPriorityMail), 37 (stUPSExpeditedMailInnovations), 38 (stUPSPriorityMailInnovations), 39 (stUPSEconomyMailInnovations), 40 (stUPSNextDayAir), 41 (stUPSExpress), 42 (stUPS2ndDayAir), 43 (stUPSGround), 44 (stUPSWorldwideExpress), 45 (stUPSWorldwideExpedited), 46 (stUPSExpedited), 47 (stUPSStandard), 48 (stUPS3DaySelect), 49 (stUPSNextDayAirSaver), 50 (stUPSSaver), 51 (stUPSNextDayAirEarlyAM), 52 (stUPSExpressEarlyAM), 53 (stUPSWorldwideExpressPlus), 54 (stUPSExpressPlus), 55 (stUPS2ndDayAirAM), 56 (stUPSTodayStandard), 57 (stUPSTodayCourrier), 58 (stUPSTodayInterCity), 59 (stUPSTodayExpress), 60 (stUPSTodayExpressSaver), 61 (stUPSWorldwideExpressFreight), 62 (stUPSSurePostLessThan1LB), 63 (stUPSSurePost1LBOrGreater), 64 (stUPSSurePostBPM), 65 (stUPSSurePostMedia), 70 (stUSPSExpress), 71 (stUSPSFirstClass), 72 (stUSPSPriority), 73 (stUSPSParcelPost), 75 (stUSPSMedia), 76 (stUSPSLibrary), 77 (stUSPSOnline), 78 (stUSPSGlobalExpress), 79 (stUSPSParcelSelect), 80 (stUSPSCriticalMail), 81 (stUSPSStandardMail), 82 (stUSPSExpressMailInternational), 83 (stUSPSFirstClassMailInternational), 84 (stUSPSPriorityMailInternational), 90 (stCanadaRegularParcel), 91 (stCanadaExpeditedParcel), 92 (stCanadaXpresspost), 93 (stCanadaLibrary), 94 (stCanadaPriority), 95 (stCanadaPriorityEnvelopeUSA), 96 (stCanadaPriorityPakUSA), 97 (stCanadaPriorityParcelUSA), 98 (stCanadaXpresspostUSA), 99 (stCanadaExpeditedParcelUSA), 100 (stCanadaSmallPacketAirUSA), 101 (stCanadaTrackedPacketUSA), 102 (stCanadaTrackedPacketLVMUSA), 103 (stCanadaPriorityEnvelopeInternational), 104 (stCanadaPriorityPakInternational), 105 (stCanadaPriorityParcelInternational), 106 (stCanadaXpresspostInternational), 107 (stCanadaSmallPacketAirInternational), 108 (stCanadaSmallPacketLandInternational), 109 (stCanadaParcelAirInternational), 110 (stCanadaParcelLandInternational), 111 (stCanadaTrackedPacketInternational), 120 (stFedExDistanceDeferred), 121 (stFedExNextDayAfternoon), 122 (stFedExNextDayEarlyMorning), 123 (stFedExNextDayEndOfDay), 124 (stFedExNextDayFreight), 125 (stFedExNextDayMidMorning)
Default Value
0
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getServiceType([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setServiceType([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
Indicates the service type in the list of available services returned.
This is populated when the GetShippingTime or GetRates methods are called.
Valid values for FedEx are:
stUnspecified (0) | |
stFedExPriorityOvernight (10) | |
stFedExStandardOvernight (11) | |
stFedExFirstOvernight (12) | |
stFedEx2Day (13) | |
stFedExExpressSaver (14) | |
stFedExGround (15) | |
stFedExGroundHomeDelivery (16) | |
stFedEx1DayFreight (17) | |
stFedEx2DayFreight (18) | |
stFedEx3DayFreight (19) | |
stFedExInternationalPriority (20) | |
stFedExInternationalEconomy (21) | |
stFedExInternationalFirst (22) | |
stFedExInternationalPriorityFreight (23) | |
stFedExInternationalEconomyFreight (24) | |
stFedExEuropeFirstInternationalPriority (25) | For intra-Europe shipments only. |
stFedExSmartPost (26) | |
stFedEx2DayAM (27) | |
stFedExFirstFreight (28) | |
stFedExFreightEconomy (30) | |
stFedExFreightPriority (31) | |
stFedExDistanceDeferred (120) | For intra-UK shipments only. |
stFedExNextDayAfternoon (121) | For intra-UK shipments only. |
stFedExNextDayEarlyMorning (122) | For intra-UK shipments only. |
stFedExNextDayEndOfDay (123) | For intra-UK shipments only. |
stFedExNextDayFreight (124) | For intra-UK shipments only. |
stFedExNextDayMidMorning (125) | For intra-UK shipments only. |
Valid values for UPS are:
Value | Applicable for |
stUnspecified (0) | |
stUPSNextDayAir (40) | US Domestic Shipments; Originating in US/PR |
stUPSExpress (41) | Polish Domestic Shipments; All Origins |
stUPS2ndDayAir (42) | US Domestic Shipments; Originating in US/PR |
stUPSGround (43) | US Domestic Shipments; Originating in US/PR |
stUPSWorldwideExpress (44) | Originating in US/PR |
stUPSWorldwideExpedited (45) | US/PR, Canada and Non-EU origins, EXCEPT Mexico |
stUPSExpedited (46) | Polish Domestic Shipments; Originating in EU or Mexico |
stUPSStandard (47) | Polish Domestic Shipments; All Origins |
stUPS3DaySelect (48) | US Domestic Shipments; Originating in CA or US |
stUPSNextDayAirSaver (49) | US Domestic Shipments |
stUPSSaver (50) | US or Polish Domestic Shipments; All Origins |
stUPSNextDayAirEarlyAM (51) | US Domestic Shipments; Originating in CA or US/PR |
stUPSExpressEarlyAM (52) | Originating in CA |
stUPSWorldwideExpressPlus (53) | Polish Domestic Shipments; All Origins EXCEPT Canada and Mexico |
stUPSExpressPlus (54) | Originating in Mexico |
stUPS2ndDayAirAM (55) | US Domestic Shipments; Originating in US |
stUPSTodayStandard (56) | Polish Domestic Shipments (Stolica) |
stUPSTodayCourrier (57) | Polish Domestic Shipments (Stolica) |
stUPSTodayInterCity (58) | Polish Domestic Shipments (Stolica) |
stUPSTodayExpress (59) | Polish Domestic Shipments (Stolica) |
stUPSTodayExpressSaver (60) | Polish Domestic Shipments (Stolica) |
Valid values for USPS are:
stUnspecified (0) | |
stUSPSExpress (70) | |
stUSPSFirstClass (71) | |
stUSPSPriority (72) | |
stUSPSParcelPost (73) | |
stUSPSMedia (75) | |
stUSPSLibrary (76) | |
stUSPSOnline (77) (USPS Only) | |
stUSPSParcelSelect (79) (Endicia only) | |
stUSPSCriticalMail (80) (Endicia only) | |
stUSPSStandardMail (81) (Endicia only) |
Please note that the RequestedService stUSPSBoundPrintedMatter (74) is no longer supported by USPS or Endicia.
Valid values for Canada Post are:
stCanadaRegularParcel (90) | |
stCanadaExpeditedParcel (91) | |
stCanadaXpresspost (92) | |
stCanadaXpresspostCertified (93) | |
stCanadaPriority (94) | |
stCanadaPriorityEnvelopeUSA (95) | |
stCanadaPriorityPakUSA (96) | |
stCanadaPriorityParcelUSA (97) | |
stCanadaXpresspostUSA (98) | |
stCanadaExpeditedParcelUSA (99) | |
stCanadaSmallPacketAirUSA (100) | |
stCanadaSmallPacketLandUSA (101) | |
stCanadaPriorityEnvelopeInternational (102) | |
stCanadaPriorityPakInternational (103) | |
stCanadaPriorityParcelInternational (104) | |
stCanadaXpresspostInternational (105) | |
stCanadaSmallPacketAirInternational (106) | |
stCanadaSmallPacketLandInternational (107) | |
stCanadaParcelAirInternational (108) | |
stCanadaParcelLandInternational (109) |
The size of the array is controlled by the ServiceCount property.
This property is read-only and not available at design time.
Data Type
Integer