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.
Thank You
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>