UPS API在英国的运费回收率过高

时间:2011-01-27 02:33:37

标签: api magento shipping ups

我正在建立一家Magento商店,美国和英国的店面使用UPS运送。由API返还的UPS费率在美国是好的,但对于英国来说非常高 - 在英国的地址和相当近似的地址运送2.5 KG包裹的费用为20英镑。我觉得这是从英国到美国的运费退货,所以也许我需要制作一个特定于英国的帐户,或使用不同的访问URL,我不太确定。这是我的要求:

<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
    <AccessLicenseNumber>(my license number)</AccessLicenseNumber>
    <UserId>(my username)</UserId>
    <Password>(my password)</Password>
</AccessRequest>

<?xml version="1.0"?>
<RatingServiceSelectionRequest xml:lang="en-US">
    <Request>
        <TransactionReference>
            <CustomerContext>Rating and Service</CustomerContext>
            <XpciVersion>1.0</XpciVersion>
        </TransactionReference>
        <RequestAction>Rate</RequestAction>
        <RequestOption>Shop</RequestOption>
    </Request>

    <PickupType>
        <Code>01</Code>
        <Description>Regular Daily Pickup</Description>
    </PickupType>

    <Shipment>
        <Shipper>
            <ShipperNumber>(shipper number)</ShipperNumber>
            <Address>
                <City>Lambourn Woodlands</City>
                <PostalCode>RG177TJ</PostalCode>
                <CountryCode>GB</CountryCode>
                <StateProvinceCode>Berkshire</StateProvinceCode>
            </Address>
        </Shipper>

        <ShipTo>
            <Address>
                <PostalCode>W1F 7SD</PostalCode>
                <CountryCode>GB</CountryCode>
                <ResidentialAddress>01</ResidentialAddress>
                <StateProvinceCode></StateProvinceCode><ResidentialAddressIndicator>01</ResidentialAddressIndicator>
            </Address>
        </ShipTo>

        <ShipFrom>
            <Address>
                <PostalCode>RG177TJ</PostalCode>
                <CountryCode>GB</CountryCode>
                <StateProvinceCode>Berkshire</StateProvinceCode>
            </Address>
        </ShipFrom>

        <Package>
            <PackagingType><Code>00</Code></PackagingType>
            <PackageWeight>
                <UnitOfMeasurement><Code>KGS</Code></UnitOfMeasurement>
                <Weight>2.5</Weight>
            </PackageWeight>
        </Package>

        <RateInformation><NegotiatedRatesIndicator/></RateInformation>
    </Shipment>
</RatingServiceSelectionRequest>

......这是回复:

<?xml version="1.0"?>
<RatingServiceSelectionResponse>
    <Response>
        <TransactionReference>
            <CustomerContext>Rating and Service</CustomerContext>
            <XpciVersion>1.0</XpciVersion>
        </TransactionReference>
        <ResponseStatusCode>1</ResponseStatusCode>
        <ResponseStatusDescription>Success</ResponseStatusDescription>
    </Response>
    <RatedShipment>
        <Service>
            <Code>11</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
            <UnitOfMeasurement>
                <Code>KGS</Code>
            </UnitOfMeasurement>
            <Weight>3.0</Weight>
        </BillingWeight>
        <TransportationCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>22.63</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>0.00</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>22.63</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery/>
        <ScheduledDeliveryTime/>
        <RatedPackage>
            <TransportationCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </TransportationCharges>
            <ServiceOptionsCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </ServiceOptionsCharges>
            <TotalCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </TotalCharges>
            <Weight>2.5</Weight>
            <BillingWeight>
                <UnitOfMeasurement>
                    <Code/>
                </UnitOfMeasurement>
                <Weight/>
            </BillingWeight>
        </RatedPackage>
    </RatedShipment>
    <RatedShipment>
        <Service>
            <Code>65</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
            <UnitOfMeasurement>
                <Code>KGS</Code>
            </UnitOfMeasurement>
            <Weight>2.5</Weight>
        </BillingWeight>
        <TransportationCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>42.01</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>0.00</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>42.01</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
        <ScheduledDeliveryTime>12:00 Noon</ScheduledDeliveryTime>
        <RatedPackage>
            <TransportationCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </TransportationCharges>
            <ServiceOptionsCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </ServiceOptionsCharges>
            <TotalCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </TotalCharges>
            <Weight>2.5</Weight>
            <BillingWeight>
                <UnitOfMeasurement>
                    <Code/>
                </UnitOfMeasurement>
                <Weight/>
            </BillingWeight>
        </RatedPackage>
    </RatedShipment>
    <RatedShipment>
        <Service>
            <Code>54</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
            <UnitOfMeasurement>
                <Code>KGS</Code>
            </UnitOfMeasurement>
            <Weight>2.5</Weight>
        </BillingWeight>
        <TransportationCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>73.02</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>0.00</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>73.02</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
        <ScheduledDeliveryTime>9:00 A.M.</ScheduledDeliveryTime>
        <RatedPackage>
            <TransportationCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </TransportationCharges>
            <ServiceOptionsCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </ServiceOptionsCharges>
            <TotalCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </TotalCharges>
            <Weight>2.5</Weight>
            <BillingWeight>
                <UnitOfMeasurement>
                    <Code/>
                </UnitOfMeasurement>
                <Weight/>
            </BillingWeight>
        </RatedPackage>
    </RatedShipment>
    <RatedShipment>
        <Service>
            <Code>07</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
            <UnitOfMeasurement>
                <Code>KGS</Code>
            </UnitOfMeasurement>
            <Weight>2.5</Weight>
        </BillingWeight>
        <TransportationCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>43.26</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>0.00</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
            <CurrencyCode>GBP</CurrencyCode>
            <MonetaryValue>43.26</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
        <ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime>
        <RatedPackage>
            <TransportationCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </TransportationCharges>
            <ServiceOptionsCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </ServiceOptionsCharges>
            <TotalCharges>
                <CurrencyCode/>
                <MonetaryValue/>
            </TotalCharges>
            <Weight>2.5</Weight>
            <BillingWeight>
                <UnitOfMeasurement>
                    <Code/>
                </UnitOfMeasurement>
                <Weight/>
            </BillingWeight>
        </RatedPackage>
    </RatedShipment>
</RatingServiceSelectionResponse>

有谁知道我做错了什么?

0 个答案:

没有答案