XML syntax for MonetaryValue, for insurance, from UPS rate API

Posted on 2007-09-29
Medium Priority
Last Modified: 2008-01-09
Re: eCommerce rate calculation using UPS XML

It appears that UPS has changed their XML that they use to communicate with their online rate calculator. In the 2007 version, I don't see anywhere to assign an InsuredValue or MonitaryValue field or something like that, that can be used to calculate the shipping rate with insurance. I see MonetaryValue associated with C.O.D., but I m pretty sure I don't want to use that XML field because then there will be a COD surcharge added.

I have found samples from the UPS 2006 XML that appear to directly address the value for insurance, but the 2007 version seems to have dropped it.

Do you know how to form the XML to ask UPS to include insurance in a rate quote? Your sample can be straight XML, ASP with XML, or PHP with XML and I can grab what I need (the XML!)




I tried this, in ASP/VBScript/XML:


strXML=strXML & "<PackageServiceOptions>"
      if shipmentdeclaredvalue <> "" then
            if isnumeric(shipmentdeclaredvalue) then
                  if shipmentdeclaredvalue > 100 then
                          strXML=strXML & "<InsuredValue><CurrencyCode>USD</CurrencyCode><MonetaryValue>" & shipmentdeclaredvalue & "</MonetaryValue></InsuredValue>"
                  end if
            end if
      end if
      strXML=strXML & "</PackageServiceOptions>"
Question by:dtleahy

Author Comment

ID: 19988996
This was solved by a response from UPS tech support:
Dear Dennis,

Thank you for your inquiry. It turns out that the elements for Insured Value are missing from the new Developer's Guides (they were in the previous versions). A defect will be opened against the RSS Guide to get it updated (this might not happen until January though).

The elements that should be included in the RSS XML request are:

<Insured Value>
<MonetaryValue>XXXXXX</MonetaryValue> (holds up to 99999999.99 but only supports up to 50,000.00)

These elements should fall under the <PackageServiceOptions> section (begins on page 28 of the new Developer's Guide).

The Insured Value charge will be returned in the <ServiceOptionCharges> section of the response.

I apologize for any confusion the missing information may have caused.

Please contact us if you need any additional assistance.

Accepted Solution

Computer101 earned 0 total points
ID: 20167069
PAQed with points refunded (500)

EE Admin

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Original post  on Monitis Blog. Web performance monitoring is broken into two camps: passive and active. Passive monitoring is defined as looking at real-world historical performance by monitoring actual log-ins, site hits, clicks, requests for …
Do online retailers and e-commerce sites even need to bother with the season? Is it lucrative to update and prepare your site for Black Friday and Cyber Monday shoppers? We'll find out now.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question