![]() |
![]() |
![]() |
![]() |
|
| |
|
|
|
|
|
|
AuctionInc Shipping API Request SchemaResponse Schema
Request SchemaCarrier SchemaThe Carrier schema appears in the request XML of the XS method to indicate which carriers will be included in the ratings.
Carrier Schema Example: <CarrierList><Carrier code="UPS"> <EntryPoint>D</EntryPoint> <ServiceList> <Service code="UPSGND"> <PkgMaxWeight>25</PkgMaxWeight> </Service> <Service code="UPSNDA"> <PkgMaxWeight>25</PkgMaxWeight> </Service> </ServiceList> </Carrier> <Carrier code="DHL"> <EntryPoint>P</EntryPoint> <AccessKey>12345678</AccessKey> <PostalCode>01610</PostalCode> <ServiceList> <Service code="DHLGND" /> <Service code="DHL2D" /> </ServiceList> </Carrier> <Carrier code="USPS"> <EntryPoint></EntryPoint> <FlatRatePackaging>PKG</FlatRatePackaging> <ServiceList> <Service code="USPPM" /> <Service code="USPMM"> <OnDemand>true</OnDemand> </Service> </ServiceList> </Carrier> </CarrierList> Service SchemaThe Service schema appears as a sub-element within the Carrier schema in the request XML of the XS method to indicate which carrier services should be rated.
Service Schema Example: <ServiceList>
|
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Version |
Description |
|---|---|---|---|---|---|---|
|
ResidentialDelivery |
X |
X |
xs:boolean |
5 |
1.0 |
Set to true if the delivery address is going to a residential address. Most carriers charge additional fees for delivering to residential addresses. Possible values: true/false (Optional, default=true) |
|
CountryCode |
X |
X |
xs:string |
2 |
1.0 |
The country code to where the shipment will be delivered. For a list of country codes see Appendix F. |
|
PostalCode |
X |
X |
xs:string |
11 |
1.0 |
The Postal Code to the shipment will be delivered. |
|
StateOrProvinceCode |
X |
X |
xs:string |
2 |
1.0 |
The State or Province Code to where the shipment will be delivered. Only required when destination is to USA or Canada. |
Destination Address Example:
<DestinationAddress>
<ResidentialDelivery>true</ResidentialDelivery>
<CountryCode>US</CountryCode>
<PostalCode>90210</PostalCode>
<StateOrProvinceCode>CA</StateOrProvinceCode>
</DestinationAddress>
The Item schema is used in various request schemas and represents an object with physical, monetary, and shipping characteristics.
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Version |
Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
RefCode |
X |
X |
xs:string |
128 |
1.0 |
User-definable item code that is passed thru to the Packaging Detail (Detail Level = 3) of the reply ShipRate schema | |||||||||
|
Quantity |
X |
X |
xs:integer |
8 |
1.0 |
Quantity of the item to be packaged. | |||||||||
|
CalcMethod |
X |
X |
xs:element |
1 |
1.0 |
This element contains the attribute code that indicates the method that the shipping calculator should use to determine shipping. Each calculation method has its own schema for the appropriate attributes. The CalcMethod element will contain the appropriate schema as indicated below. Items in the shipment may utilize carrier rates and/or fixed fees (including, for SS calls, fixed fee codes). See our Knowledgebase article for the business logic employed when these calculations methods are mixed together.
|
Item Schema Example:
<Item>
<RefCode>keyboard-101e</RefCode>
<Quantity>2</Quantity >
<CalcMethod Code="C">
<CarrierCalcProps>
...
</CarrierCalcProps>
</CalcMethod>
</Item>
The CarrierCalcProps schema to represent various characteristics of an item relevant to a Carrier Calculation Method.
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Version |
Description |
|---|---|---|---|---|---|---|
|
Weight |
X |
X |
xs:decimal |
5.4 |
1.0 |
Weight of item (required) |
|
WeightUOM |
X |
X |
xs:string |
3 |
1.0 |
Unit of measure associated with the item weight. Possible values include:
(Optional, default = LBS) |
|
Length |
X |
X |
xs:decimal |
6.2 |
1.0 |
Length dimension of individual item. |
|
Width |
X |
X |
xs:decimal |
6.2 |
1.0 |
Width dimension of individual item. |
|
Height |
X |
X |
xs:decimal |
6.2 |
1.0 |
Height dimension of individual item . |
|
DimUOM |
X |
X |
xs:string |
2 |
1.0 |
Dimension unit of measure. Possible values include:
|
|
LotSize |
X |
X |
xs:integer |
6 |
1.0 |
Number of units an item breaks into (with each unit typically packed seperately). This property simplifies shipping calculations for a product that consists of multiple units (i.e., four tires). Primarily used with units that are packed separately; when setting Item PackMethod to "S" in conjunction with lot size > 1, each item unit will be packed seperately. When setting lot size > 1, set the weight/dims to those of the item unit rather than the item. (Optional, default=1) |
|
DeclaredValue |
X |
X |
xs:decimal |
6.2 |
1.0 |
Insurable value of the item. In XS calls carrier insurance will be calculated based on this value. In SS calls your configured insurance thresholds will be utilized. Your inclusion of a nonzero declared value will result in insurance being calculated and added to the shipping rate (if over your threshold, for SS calls). |
|
PackMethod |
X |
X |
xs:string |
1 |
1.0 |
Indicates if this item should be packaged seperately by our packaging engine, or whether it is combinable with other items from the same origin (or origin code, if you are assigning them) that are also flagged as packagable together. Possible values are:
Important Note: For items that are packaged seperately, item weight and dimensions should be that of the package rather than the item. (For SS calls, any Packaging Weight settngs will be ignored for items packaged seperately.) |
| OnDemandServices |
X |
X |
|
2.0 |
List of on-demand carrier services to be applied to the package containing this item. See OnDemandServices schema. All the items in the package must be qualified for the service for it to be rated. (Optional) | |
| SpecialServices |
X |
X |
|
2.0 |
List of special services to be applied to the package containing this item. See SpecialServices schema. (Optional) | |
|
OriginCode |
X |
X |
xs:string |
20 |
2.0 |
This user-defined code either refers to configured origin codes set up in account preferences (SS) or to addresses included in the OrginAddress schema (XS). Links this item to the origin address defined by the code. Use OriginCode if the items in your shipment are originating in different ship locations. (Optional) |
|
SuppHandlingFee |
X |
X |
xs:decimal |
6.2 |
2.0 |
A handling fee that is applied at the item level. (For SS calls, this fee will supplement your configured package and/or order level fees.) The fee is applied for each unit of quantity of the item. (Optional) |
|
SuppHandlingCode |
X |
|
xs:string |
20 |
2.0 |
This user-defined code references configured supplemental item-level handling codes set up in account preferences (SS). (Optional) (SS only) |
CarrierCalcProps Schema Example:
<CarrierCalcProps>
<Weight>2.5</Weight>
<WeightUOM>LBS</WeightUOM>
<Length>6</Length>
<Width>4</Width>
<Height>3</Height>
<DimUOM>IN</DimUOM>
<DeclaredValue>18.50</DeclaredValue>
<PackMethod>T</PackMethod>
<SpecialServices>
...
</SpecialServices>
<OriginCode>CA-WHS</OriginCode>
<SuppHandlingFee>10</SuppHandlingFee>
</CarrierCalcProps>
The FixedCalcProps schema represent various characteristics of an item relevant to a Fixed Calculation Method.
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Version |
Description |
|---|---|---|---|---|---|---|
|
FeeType |
X |
X |
xs:string |
1 |
1.0 |
Identifies which values are used to calculate the fixed fee. Use either fee1 and fee2 OR FeeCode, but not both. Possible values are:
|
|
Fee1 |
X |
X |
xs:decimal |
6.2 |
1.0 |
Fixed fee applied to first item. |
|
Fee2 |
X |
X |
xs:decimal |
6.2 |
1.0 |
Fixed fee applied to additional fixed fee items or when quantity of the fixed fee item > 1. When there is more than one fixed fee item in package, the largest fee1 is applied first, and then fee2 for the additional items. If you do not set Fee2, it will default to your Fee1 value. (Optional, default=Fee1) |
|
FeeCode |
X |
|
xs:string |
20 |
2.0 |
References stored Fixed Fee Codes in the account preferences which allow for greater flexibility of Fixed Fees. Fees can be based on geography and also allows for setting unique fixed fees for each carrier or carrier service. (Optional) |
|
OriginCode |
|
X |
xs:string |
20 |
2.1 |
Required if XS API call is submitting multiple origin address schemas; in this case all items, including fixed fee items, need to be linked to one of the origin codes defined in your origin address schemas. (Optional) |
FixedCalcProps Schema Example:
<FixedCalcProps>
<FeeType>F</FeeType>
<Fee1>3.00</Fee1>
<Fee2>2.50</Fee2>
</FixedCalcProps>
OR
<FixedCalcProps>
<FeeType>C</FeeType>
<FeeCode>PictureFee</FeeCode>
</FixedCalcProps>
On Demand Services qualify an item to be rated for the indicated on-demand carrier service.
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Version |
Description |
|---|---|---|---|---|---|---|
|
ODService |
X |
X |
xs:string |
5 |
2.0 |
Carrier Services code which qualifies this item for a service which has been set to on-demand. All items in the package must be flagged as on-demand for same service for the service to be rated for the package. If multiple items are being rated from different ship origins, rating engine will rate all services shared by all resulting packages. If there are no shared services, a "mixed" service rate will be constructed by accruing the cost of the least expensive service supported by each package. |
OnDemandServices Schema Example:
<OnDemandServices>
<ODService>USPMM</ODService>
<ODService>USPBPM</ODService>
</OnDemandServices>
Special services apply additional fees to packages to account for the cost of extra services offered by the carrier, such as Proof of Delivery, additional handling,
hazardous package handling, etc.
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Version |
Description |
|---|---|---|---|---|---|---|
|
AddlHandling |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional handling charges to ship rates of all supporting carriers. Possible values: true/false |
|
AddlHandlingUPS |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional handling charges to UPS ship rates. For more info read here. Possible values: true/false |
|
AddlHandlingDHL |
X |
X |
xs:boolean |
5 |
2.0 |
|
|
AddlHandlingFDX |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional handling charges to Fedex ship rates. For more info read here. Possible values: true/false |
|
Hazard |
X |
X |
xs:boolean |
5 |
2.0 |
Indicate that this package qualifies as hazardous content for all carriers. Possible values: true/false |
|
HazardUPS |
X |
X |
xs:boolean |
5 |
2.0 |
Indicate that this package qualifies as hazardous content for UPS. For more info read here. Possible values: true/false |
|
HazardDHL |
X |
X |
xs:boolean |
5 |
2.0 |
Indicate that this package qualifies as hazardous content for DHL. For more info read here. Possible values: true/false |
|
HazardFDX |
X |
X |
xs:boolean |
5 |
2.0 |
Indicate that this package qualifies as hazardous content for Fedex. For more info read here. Possible values: true/false |
|
SignatureReq |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for signature required for all supporting carriers. Possible values: true/false |
|
SignatureReqUPS |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for signature required for UPS. For more info read here. Possible values: true/false |
|
SignatureReqDHL |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for signature required for DHL. For more info read here. Possible values: true/false |
|
SignatureReqFDX |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for (indirect) signature required for FedEx. For more info read here. Possible values: true/false |
|
SignatureReqUSP |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for signature required for USPS. For more info read here. Possible values: true/false |
|
UPSAdultSignature |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for adult signature required for UPS. For more info read here. Possible values: true/false |
|
DHLAdultSignature |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for adult signature required for DHL. For more info read here. Possible values: true/false |
|
FDXAdultSignature |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for adult signature required for FedEx. For more info read here. Possible values: true/false |
|
DHLPrefSignature |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for signature preferred for DHL. For more info read here. Possible values: true/false |
|
FDXDirectSignature |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for direct signature required for FedEx. For more info read here. Possible values: true/false |
|
FDXHomeCertain |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for home date certain delivery for FedEx Home Delivery (FDXHD) carrier service. For more info read here. Possible values: true/false |
|
FDXHomeEvening |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for home evening delivery for FedEx Home Delivery (FDXHD) carrier service. For more info read here. Possible values: true/false |
|
FDXHomeAppmnt |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for home appointment delivery for FedEx Home Delivery (FDXHD) carrier service. For more info read here. Possible values: true/false |
|
Pod |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for proof of delivery for all supporting carriers. Possible values: true/false |
|
PodUPS |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for proof of delivery for UPS. For more info read here. Possible values: true/false |
|
PodDHL |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for proof of delivery for DHL. For more info read here. Possible values: true/false |
|
PodFDX |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for proof of delivery for FedEx. For more info read here. Possible values: true/false |
|
PodUSP |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for proof of delivery for USPS. For more info read here. Possible values: true/false |
|
UPSDelivery |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for delivery confirmation for UPS. For more info read here. Possible values: true/false |
|
USPCertified |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for certified delivery for USPS. For more info read here. Possible values: true/false |
|
USPRestricted |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for restricted delivery for USPS. For more info read here. Possible values: true/false |
|
USPDelivery |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for delivery confirmation for USPS. For more info read here. Possible values: true/false |
|
USPReturn |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for return receipt for USPS. For more info read here. Possible values: true/false |
|
USPReturnMerchandise |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for return receipt for merchandise for USPS. For more info read here. Possible values: true/false |
|
USPRegistered |
X |
X |
xs:boolean |
5 |
2.0 |
Apply additional charge for registered mail for USPS. For more info read here. Possible values: true/false |
|
IrregularUSP |
X |
X |
xs:boolean |
5 |
2.0 |
Indicate that this package qualifies for the USPS dimensional weighting discount for irregularly-shaped items. When set to true, must be used in conjunction with PackMethod = "S" to be valid.For more info read here. Possible values: true/false |
SpecialServices Schema Example:
<SpecialServices>
<AddlHandlingUPS>true</AddlHandlingUPS>
<AddlHandlingFDX>true</AddlHandlingFDX>
<Hazard>true</Hazard>
</SpecialServices>
| The OriginAddress represents the address location from which the shipment will originate from (XS calls) Multiple OriginAddress schemas may be included if items in the shipment have multiple shipping origin locations. |
Multiple origin addresses are often used in conjunction with on-demand services, to account for different carrier services supported by different origins. In these cases, the services shared by all origins will be rated. If there are no shared services, a "mixed" service rate is constructed and returned which accrues the least expensive service available from each origin. |
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Version |
Description |
|---|---|---|---|---|---|---|
|
OriginCode |
|
X |
xs:string |
20 |
1.0 |
Origin Codes provide the functionality to connect each of multiple items in a shipment to different origin addresses. This user-defined code "names" the addresses included in the OrginAddress schema (XS). Reference to this defined code at the item level connects each item to a particular origin. Not needed if you are using a single origin address for your shipment. (Optional) |
|
CountryCode |
|
X |
xs:string |
2 |
1.0 |
The country code from where the shipment will originate. For a list of country codes see Appendix F. |
|
PostalCode |
|
X |
xs:string |
11 |
1.0 |
The Postal Code from where the shipment will originate. |
|
StateOrProvinceCode |
|
X |
xs:string |
2 |
1.0 |
The State or Province Code from where the shipment will originate. Only required when origination is from USA or Canada. |
OriginAddress Schema Example:
<OriginAddress>
<OriginCode>CA-WHS</OriginCode>
<CountryCode>US</CountryCode>
<PostalCode>90210</Postal Code>
<StateOrProvinceCode>CA</StateOrProvinceCode>
</OriginAddress>
<OriginAddress>
<OriginCode>MA-RST</OriginCode>
<CountryCode>US</CountryCode>
<PostalCode>01609</Postal Code>
<StateOrProvinceCode>MA</StateOrProvinceCode>
</OriginAddress>
...then link your items to your OriginCode:
<Item>
<RefCode>Instruction Book</RefCode>
<Quantity>1</Quantity>
<CalcMethod code="C">
<CarrierCalcProps>
...
<OriginCode>CA-WHS</OriginCode>
...
</CarrierCalcProps>
</CalcMethod>
</Item>
A ShipRate schema appears in AuctionInc's response for the ship rate methods. The detail returned is dependent upon the Detail Level indicated in the rating call.
Higher detail levels include all the information provided in lower detail levels.
Detail Level = 1: Summary rate data for the service
Detail Level = 2: Rate component breakdown for each rate
Detail Level = 3: Packaging detail for each rate
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Detail Level |
Version |
Description |
|---|---|---|---|---|---|---|---|
|
Valid |
X |
X |
xs:string |
5 |
1 |
1.0 |
Indicates if rate engine was successful in computing the shipping rate of the carrier service. Possible values: true/false |
|
CarrierCode |
X |
X |
xs:string |
10 |
1 |
1.0 |
Rated Carrier Code. (see Appendix C). |
|
ServiceCode |
X |
X |
xs:string |
10 |
1 |
1.0 |
Rated Carrier Service Code. (see Appendix D). |
| ServiceName |
X |
X |
xs:string |
30 |
1 |
1.0 |
Rated Carrier Service Name. (see Appendix D) |
| CalcMethod |
X |
X |
xs:string |
1 |
1 |
1.0 |
Method that the shipping calculator used determine rate for this carrier service.
|
| Rate |
X |
X |
xs:decimal |
6.2 |
1 |
1.0 |
Total rate for this carrier service for all packages in shipment. |
| ErrorList |
X |
X |
Error |
|
1 |
1.0 |
The presence of this element indicates that rating for the carrier service failed and will contain one or more Error Schema datasets that identify the cause of the error(s). |
| CarrierRate |
X |
X |
xs:decimal |
6.2 |
2 |
2.0 |
Aggregate of the base rates returned from carrier APIs for all packages in shipment. |
| FixedRate |
X |
X |
xs:decimal |
6.2 |
2 |
2.2 |
Aggregate of the fixed rates returned by our rating engine for all packages in shipment. Returned only if fixed rates are used for one or more items. |
| Surcharges |
X |
X |
xs:decimal |
6.2 |
2 |
2.0 |
Aggregate of the surcharges for all packages in shipment. |
| FuelSurcharges |
X |
X |
xs:decimal |
6.2 |
2 |
2.0 |
Aggregate of the fuel surcharges for all packages in shipment (not all carriers report this seperately from surcharges). |
| HandlingFees |
X |
|
xs:decimal |
6.2 |
2 |
2.0 |
Aggregate of the handling fees calculated for all packages in shipment. Calculated for SS calls only. |
| DeclaredValue |
X |
X |
xs:decimal |
6.2 |
2 |
2.0 |
Aggregate of the value for all items in shipment |
| InsuranceCharges |
X |
X |
xs:decimal |
6.2 |
2 |
2.0 |
Aggregate of the insurance calculated for all packages in shipment. |
| Weight |
X |
X |
xs:decimal |
6.2 |
2 |
2.0 |
Total weight for all packages in shipment (LBS). |
| PackageCount |
X |
X |
xs:integer |
3 |
2 |
2.0 |
Number of packages constructed by AuctionInc shipping engine. |
| FlatRateCode |
X |
X |
xs:string |
5 |
2 |
2.1 |
For USPS & FEDEX services which support flat rate packaging, identifies if one or more packages in the shipment has qualified for a flat rate. This element will only be returned if a) the appropriate configuration setting has been enabled (SS calls) or 2) the FlatRatePackaging element has been set in the call (XS calls). Item dimensions must be included in your API call for AuctionInc to attempt to qualify the items. Possible values are:
Additional information: |
| PackageDetail |
X |
X |
Package Schema Collection |
|
3 |
2.1 |
One or more Package schema which provides details on each of the packages created by our packaging engine. |
ShipRate Example #1 (Detail Level = 1)
<ItemShipRate>
<Currency>USD</Currency>
<ShipRateList>
<ShipRate>
<Valid>true</Valid>
<CarrierCode>USPS</CarrierCode>
<ServiceCode>USPPM</ServiceCode>
<ServiceName>USPS Priority Mail</ServiceName>
<CalcMethod>C</CalcMethod>
<Rate>11.50</Rate>
</ShipRate>
<ShipRate>
<Valid>true</Valid>
<CarrierCode>UPS</CarrierCode>
<ServiceCode>UPSGND</ServiceCode>
<ServiceName>UPS Ground</ServiceName>
<CalcMethod>C</CalcMethod>
<Rate>11.30</Rate>
</ShipRate>
<ShipRate>
<Valid>true</Valid>
<CarrierCode>UPS</CarrierCode>
<ServiceCode>UPS2ND</ServiceCode>
<ServiceName>UPS 2 Day</ServiceName>
<CalcMethod>C</CalcMethod>
<Rate>27.47</Rate>
</ShipRate>
</ShipRateList>
</ItemShipRate>
ShipRate Example #2 (Detail Level = 2)
<ItemShipRate>
<Currency>USD</Currency>
<ShipRateList>
<ShipRate>
<Valid>true</Valid>
<CarrierCode>USPS</CarrierCode>
<ServiceCode>USPPM</ServiceCode>
<ServiceName>USPS Priority Mail</ServiceName>
<CalcMethod>C</CalcMethod>
<Rate>11.50</Rate>
<CarrierRate>9.80</CarrierRate>
<Surcharges>0.00</Surcharges>
<FuelSurcharges>0.00</FuelSurcharges>
<HandlingFees>0.00</HandlingFees>
<DeclaredValue>19.95</DeclaredValue>
<InsuranceCharges>1.70</InsuranceCharges>
<Weight>10.00</Weight>
<PackageCount>1</PackageCount>
<FlatRateCode>FRB1</FlatRateCode>
</ShipRate>
<ShipRate>
<Valid>true</Valid>
<CarrierCode>UPS</CarrierCode>
<ServiceCode>UPSGND</ServiceCode>
<ServiceName>UPS Ground</ServiceName>
<CalcMethod>C</CalcMethod>
<Rate>11.30</Rate>
<CarrierRate>10.81</CarrierRate>
<Surcharges>0.00</Surcharges>
<FuelSurcharges>0.49</FuelSurcharges>
<HandlingFees>0.00</HandlingFees>
<DeclaredValue>19.95</DeclaredValue>
<InsuranceCharges>0.00</InsuranceCharges>
<Weight>10.00</Weight>
<PackageCount>1</PackageCount>
</ShipRate>
<ShipRate>
<Valid>true</Valid>
<CarrierCode>UPS</CarrierCode>
<ServiceCode>UPS2ND</ServiceCode>
<ServiceName>UPS 2 Day</ServiceName>
<CalcMethod>C</CalcMethod>
<Rate>27.47</Rate>
<CarrierRate>24.20</CarrierRate>
<Surcharges>0.00</Surcharges>
<FuelSurcharges>3.27</FuelSurcharges>
<HandlingFees>0.00</HandlingFees>
<DeclaredValue>19.95</DeclaredValue>
<InsuranceCharges>1.70</InsuranceCharges>
<Weight>10.00</Weight>
<PackageCount>1</PackageCount>
</ShipRate>
</ShipRateList>
</ItemShipRate>
ShipRate Example #3 (Detail Level = 3)
<ItemShipRate>
<Currency>USD</Currency>
<ShipRateList>
<ShipRate>
<Valid>true</Valid>
<CarrierCode>USPS</CarrierCode>
<ServiceCode>USPPM</ServiceCode>
<ServiceName>USPS Priority Mail</ServiceName>
<CalcMethod>C</CalcMethod>
<Rate>39.67</Rate>
<CarrierRate>30.50</CarrierRate>
<Surcharges>2.40</Surcharges>
<FuelSurcharges>1.67</FuelSurcharges>
<HandlingFees>0.00</HandlingFees>
<DeclaredValue>19.95</DeclaredValue>
<InsuranceCharges>5.10</InsuranceCharges>
<Weight>20.00</Weight>
<PackageCount>2</PackageCount>
<FlatRateCode>NONE</FlatRateCode>
<PackageDetail>
< Package>
...
</Package>
< Package>
; ...
</Package>
</PackageDetail>
</ShipRate>
</ShipRateList>
</ItemShipRate>
A Package schema represents package details for the package.
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Detail Level |
Version |
Description |
|---|---|---|---|---|---|---|---|
|
Quantity |
X |
X |
xs:integer |
8 |
3 |
2.1 |
Quantity of packages this package schema represents. When packaging an item packaged seperately which has a quantity > 1, multiple identical packages will be created. In this case, this quantity figure will represent the number of identical multiple packages. |
|
PackMethod |
X |
X |
xs:string |
1 |
3 |
2.1 |
The pack method for the items in this package. |
|
CarrierService |
X |
X |
xs:string |
10 |
3 |
2.2 |
The carrier service rated for this package. Returned only for shipments with a MIXED service rate. |
|
Origin |
X |
X |
xs:string |
5 |
3 |
2.1 |
The origin postal code for the items in this package. |
|
DeclaredValue |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
The declared value of this package. If package quantity > 1, this represents the value for one package. |
|
Weight |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
The weight of this package. If package quantity > 1, this represents the value for one package. |
|
Length |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
The length of this package. If package quantity > 1, this represents the value for one package. |
|
Width |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
The width of this package. If package quantity > 1, this represents the value for one package. |
|
Height |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
The height of this package. If package quantity > 1, this represents the value for one package. |
|
OversizeCode |
X |
X |
xs:string |
20 |
3 |
2.1 |
The carrier oversize code, if any for this package. If package quantity > 1, this represents the value for one package.
|
|
FlatRateCode |
X |
X |
xs:string |
5 |
3 |
2.1 |
Identifies whether USPS services which support flat rate packaging have qualified for a flat rate. Please see FlatRateCode in the ShipRate schema for additional information. |
|
CarrierRate |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
The base carrier rate for this package. If package quantity > 1, this represents the value for one package. |
|
FixedRate |
X |
X |
xs:demical |
6.2 |
3 |
2.2 |
The fixed rate for this package. Returned only if fixed rate exists for this package. |
|
Surcharge |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
Carrier surcharge for this package. If package quantity > 1, this represents the value for one package. |
|
FuelSurcharge |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
Fuel surcharge forthis package. If package quantity > 1, this represents the value for one package. (Not all carriers report their fuel surcharge seperately from surcharges.) |
|
Insurance |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
Insurance cost for this package. If package quantity > 1, this represents the value for one package> |
|
Handling |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
Handling charge calculated for this package. If package quantity > 1, this represents the value for one package. Calculated for SS calls only. |
|
ShipRate |
X |
X |
xs:demical |
6.2 |
3 |
2.1 |
Shipping rate for this package. Includes total of carrier rate, surcharge, fuel surcharge, insurance & handling. If package quantity > 1, this represents the value for one package. |
|
PkgItem |
X |
X |
PkgItem Collection |
|
3 |
2.1 |
One or more PkgItem schema which identifies of the items in this package. |
Package Example:
<Package>
<Quantity>1</Quantity>
<PackMethod>T</PackMethod>
<Origin>01610</Origin>
<DeclaredValue>19.95</DeclaredValue>
<Weight>10</Weight>
<Length>5</Length>
<Width>3</Width>
<Height>4</Height>
<OversizeCode>NONE</OversizeCode>
<FlatRateCode>NONE</FlatRateCode>
<CarrierRate>9.80</CarrierRate>
<Surcharge>2.40</Surcharge>
<FuelSurcharge>1.67</FuelSurcharge>
<Insurance>1.70</Insurance>
<Handling>0</Handling>
<ShipRate>15.57</ShipRate>
<PkgItem>
<RefCode>keyboard-101-e</RefCode>
<Qty>2</Qty>
<Weight>5</Weight>
</PkgItem>
</Package>
<Package>
<Quantity>2</Quantity>
<PackMethod>S</PackMethod>
<Origin>01610</Origin>
<DeclaredValue>19.95</DeclaredValue>
<Weight>1</Weight>
<Length>1</Length>
<Width>1</Width>
<Height>1</Height>
<OversizeCode>NONE</OversizeCode>
<FlatRateCode>NONE</FlatRateCode>
<CarrierRate>10.35</CarrierRate>
<Surcharge>0</Surcharge>
<FuelSurcharge>0</FuelSurcharge>
<Insurance>1.70</Insurance>
<Handling>0</Handling>
<ShipRate>12.05</ShipRate>
<PkgItem>
<RefCode>mouse</RefCode>
<Qty>1</Qty>
<Weight>1</Weight>
</PkgItem>
</Package>
The PkgItem Schema contains data on an item in the Package schema.
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Detail Level |
Version |
Description |
|---|---|---|---|---|---|---|---|
|
RefCode |
X |
X |
xs:string |
1 |
3 |
2.1 |
Pass-thru value from the Item schema in the incoming call. |
|
Qty |
X |
X |
xs:string |
64 |
3 |
2.1 |
Quantity of this item in the package |
|
Weight |
X |
X |
xs:string |
64 |
3 |
2.1 |
Item weight. If pkgitem quantity > 1, this represents the value for one item. |
PkgItem Schema Example:
<PkgItem>
<RefCode>QU-510</Code>
<Qty>1</Qty>
<Weight>10</Weight>
</PkgItem>
| The Error Schema contains error, warning or notice information that may be generated during a method call. The Error node can appear in the reply (root) level which would indicate a failed API call or at a sub-node level indicating a failure for individual services. Error schema appear only in response schemas. |
|
Element Name |
SS Calls |
XS Calls |
Data Type |
Max Size |
Version |
Description |
|---|---|---|---|---|---|---|
|
Code |
X |
X |
xs:string |
1 |
1.0 |
Identifies the error that occurred. See Appendix A for error details. |
|
Message |
X |
X |
xs:string |
64 |
1.0 |
Contains descriptive error message pertaining to the error code. |
|
Detail |
X |
X |
xs:string |
64 |
1.0 |
One or more optional elements containing descriptive detail pertaining to the error message. |
|
Severity |
X |
X |
xs:string |
10 |
1.0 |
Indicates the severity of the error. Possible values are:
|
Error Schema Example:
<Error>
<Code>510</Code>
<Message>
Packaging Engine unable to determine any services to be rated
</Message>
<Detail>USPPM:Item weight exceeds limit</Detail>
<Detail>USPPP:Item weight exceeds limit</Detail>
<Severity>CRITICAL</Severity>
</Error>
| Home | About Us | Contact Us | Partnerships | User Agreement | Privacy Policy | ||
|
Copyright © 2010 AuctionInc. A division of Paid, Inc. Paid Inc. 4 Brussels St, Worcester, MA 01610. 1-866-323-8833. |