Untitled Document
Results 1 to 3 of 3

Thread: Shipping to Puerto Rico

  1. #1
    We are trying to generate a shipping label via the Web API and getting the error message "Invalid number of products. [128039]".
    We selected UPS 2nd Day Air for the service type. Can you provide some clarity on the cause of the problem and how we can get around it?
    Here is what I'm sending, with personal data changed for privacy.

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <ShipRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <ShipSettings>
            <PrinterShippingLabel>
                <LabelType>PNG</LabelType>
            </PrinterShippingLabel>
        </ShipSettings>
        <ShipTransaction>
            <Shipment>
                <IsTest>1</IsTest>
                <UPSServiceType>02</UPSServiceType>
                <CurrencyCode>USD</CurrencyCode>
                <Residential>1</Residential>
                <Carrier>0</Carrier>
                <Package>
                    <PackageActualWeight>4</PackageActualWeight>
                    <PackagingType>02</PackagingType>
                    <PkgLength>11</PkgLength>
                    <PkgWidth>16</PkgWidth>
                    <PkgHeight>4</PkgHeight>
                    <PackageReference1>201455</PackageReference1>
                    <InsuranceAmount>0</InsuranceAmount>
                    <InsuranceCurrency>USD</InsuranceCurrency>
                </Package>
                <DeliveryAddress>
                    <Address>
                        <FirstName>Some Name</FirstName>
                        <Company>Some Place</Company>
                        <Address1>Redacted</Address1>
                        <Address2 />
                        <City>Barceloneta</City>
                        <Country>PR</Country>
                        <CountryAsString>PR</CountryAsString>
                        <PostalCode>00617</PostalCode>
                        <Phone>000-000-0000</Phone>
                    </Address>
                </DeliveryAddress>
                <ShipperAddress>
                    <Address>
                        <FirstName>Another Name</FirstName>
                        <Company>Another Place</Company>
                        <Address1>Also Redacted</Address1>
                        <Address2>Ditto</Address2>
                        <City>City</City>
                        <State>State</State>
                        <Country>US</Country>
                        <StateAsString>TN</StateAsString>
                        <CountryAsString>US</CountryAsString>
                        <PostalCode>Zip</PostalCode>
                        <Phone>000-000-0000</Phone>
                    </Address>
                </ShipperAddress>
            </Shipment>
        </ShipTransaction>
    </ShipRequest>
    Thank You

  2. #2

    Join Date
    Apr 2004
    Posts
    16,336
    SYSOPS is offline
    UPS and FedEx Shipments to Puerto Rico are treated as INTL. Your shipment XML needs be INTL based.

    Only USPS treats it as Domestic (where PR is set as the state).

    HTH,
    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  3. #3
    Ok, thank you!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •