• Resolved carbides

    (@carbides)


    Hi guys

    If the packages are insured, the requests made to the OAuth REST API should make the request with “DeclaredValue” instead of “InsuredValue” (used in XML API) within “PackageServiceOptions”. Probably in PackageServiceOptions.php, idk I’m not a developer.

    <?php
    
    namespace UpsFreeVendor\Ups\Entity;
    
    use DOMDocument;
    use DOMElement;
    use UpsFreeVendor\Ups\NodeInterface;
    /**
     * Class PackageServiceOptions
     * @package Ups\Entity
     */
    class PackageServiceOptions implements \UpsFreeVendor\Ups\NodeInterface
    {
        /**
         * @var COD
         */
        private $cod;
        /**
         * @var InsuredValue
         */
        private $insuredValue;

    UPS responds with empty “ServiceOptionsCharges” and incomplete “TotalCharge”.

    I’ll change back to XML API until the rates for insured packages get fixed.

    Best Regards
    Pascal

    XML:

    UPS Live Rates: Request to UPS API
    Hide Content Copy Content to clipboard
    <?xml version="1.0"?>
    <RatingServiceSelectionRequest xml:lang="en-US">
      <Request>
        <TransactionReference/>
        <RequestAction>Rate</RequestAction>
        <RequestOption>Shop</RequestOption>
      </Request>
      <Shipment>
        <Service>
          <Code/>
          <Description/>
        </Service>
        <Shipper>
          <ShipperNumber>REDACTED</ShipperNumber>
          <Address>
            <AddressLine1>8009 Creedmoor Rd, Ste. 102</AddressLine1>
            <City>Raleigh</City>
            <StateProvinceCode>NC</StateProvinceCode>
            <PostalCode>27613</PostalCode>
            <CountryCode>US</CountryCode>
          </Address>
        </Shipper>
        <ShipFrom>
          <Address>
            <AddressLine1>8009 Creedmoor Rd, Ste. 102</AddressLine1>
            <City>Raleigh</City>
            <StateProvinceCode>NC</StateProvinceCode>
            <PostalCode>27613</PostalCode>
            <CountryCode>US</CountryCode>
          </Address>
        </ShipFrom>
        <ShipTo>
          <Name/>
          <CompanyName/>
          <AttentionName/>
          <Address>
            <AddressLine1>10093 Rayco Sandres Rd</AddressLine1>
            <City>Gonzales</City>
            <StateProvinceCode>LA</StateProvinceCode>
            <PostalCode>70737</PostalCode>
            <CountryCode>US</CountryCode>
          </Address>
        </ShipTo>
        <RateInformation>
          <NegotiatedRatesIndicator/>
        </RateInformation>
        <Package>
          <PackagingType>
            <Code>02</Code>
            <Description/>
          </PackagingType>
          <PackageWeight>
            <Weight>4.3</Weight>
            <UnitOfMeasurement>
              <Code>LBS</Code>
              <Description/>
            </UnitOfMeasurement>
          </PackageWeight>
          <PackageServiceOptions>
            <InsuredValue>
              <CurrencyCode>USD</CurrencyCode>
              <MonetaryValue>3400.54</MonetaryValue>
            </InsuredValue>
          </PackageServiceOptions>
        </Package>
        <ShipmentServiceOptions/>
      </Shipment>
    </RatingServiceSelectionRequest>
     
    
    Hide Id Copy Id to clipboard
    20230926113714695310 
    
    Hide Endpointurl Copy Endpointurl to clipboard
    https://onlinetools.ups.com/ups.app/xml/Rate 
    UPS Live Rates: Response from UPS API
    Hide Content Copy Content to clipboard
    <?xml version="1.0"?>
    <RatingServiceSelectionResponse>
      <Response>
        <ResponseStatusCode>1</ResponseStatusCode>
        <ResponseStatusDescription>Success</ResponseStatusDescription>
      </Response>
      <RatedShipment>
        <Service>
          <Code>01</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>5.0</Weight>
        </BillingWeight>
        <TransportationCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>120.01</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>40.25</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>160.26</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
        <ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime>
        <RatedPackage>
          <TransportationCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>120.01</MonetaryValue>
          </TransportationCharges>
          <ServiceOptionsCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>40.25</MonetaryValue>
          </ServiceOptionsCharges>
          <TotalCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>160.26</MonetaryValue>
          </TotalCharges>
          <Weight>4.3</Weight>
          <BillingWeight>
            <UnitOfMeasurement>
              <Code>LBS</Code>
            </UnitOfMeasurement>
            <Weight>5.0</Weight>
          </BillingWeight>
        </RatedPackage>
        <NegotiatedRates>
          <NetSummaryCharges>
            <GrandTotal>
              <CurrencyCode>USD</CurrencyCode>
              <MonetaryValue>129.05</MonetaryValue>
            </GrandTotal>
          </NetSummaryCharges>
        </NegotiatedRates>
      </RatedShipment>
      <RatedShipment>
        <Service>
          <Code>02</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>5.0</Weight>
        </BillingWeight>
        <TransportationCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>48.62</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>40.25</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>88.87</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery>2</GuaranteedDaysToDelivery>
        <ScheduledDeliveryTime/>
        <RatedPackage>
          <TransportationCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>48.62</MonetaryValue>
          </TransportationCharges>
          <ServiceOptionsCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>40.25</MonetaryValue>
          </ServiceOptionsCharges>
          <TotalCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>88.87</MonetaryValue>
          </TotalCharges>
          <Weight>4.3</Weight>
          <BillingWeight>
            <UnitOfMeasurement>
              <Code>LBS</Code>
            </UnitOfMeasurement>
            <Weight>5.0</Weight>
          </BillingWeight>
        </RatedPackage>
        <NegotiatedRates>
          <NetSummaryCharges>
            <GrandTotal>
              <CurrencyCode>USD</CurrencyCode>
              <MonetaryValue>77.68</MonetaryValue>
            </GrandTotal>
          </NetSummaryCharges>
        </NegotiatedRates>
      </RatedShipment>
      <RatedShipment>
        <Service>
          <Code>03</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>5.0</Weight>
        </BillingWeight>
        <TransportationCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>17.05</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>40.25</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>57.30</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery/>
        <ScheduledDeliveryTime/>
        <RatedPackage>
          <TransportationCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>17.05</MonetaryValue>
          </TransportationCharges>
          <ServiceOptionsCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>40.25</MonetaryValue>
          </ServiceOptionsCharges>
          <TotalCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>57.30</MonetaryValue>
          </TotalCharges>
          <Weight>4.3</Weight>
          <BillingWeight>
            <UnitOfMeasurement>
              <Code>LBS</Code>
            </UnitOfMeasurement>
            <Weight>5.0</Weight>
          </BillingWeight>
        </RatedPackage>
        <NegotiatedRates>
          <NetSummaryCharges>
            <GrandTotal>
              <CurrencyCode>USD</CurrencyCode>
              <MonetaryValue>54.23</MonetaryValue>
            </GrandTotal>
          </NetSummaryCharges>
        </NegotiatedRates>
      </RatedShipment>
      <RatedShipment>
        <Service>
          <Code>12</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>5.0</Weight>
        </BillingWeight>
        <TransportationCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>36.10</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>40.25</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>76.35</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery>3</GuaranteedDaysToDelivery>
        <ScheduledDeliveryTime/>
        <RatedPackage>
          <TransportationCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>36.10</MonetaryValue>
          </TransportationCharges>
          <ServiceOptionsCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>40.25</MonetaryValue>
          </ServiceOptionsCharges>
          <TotalCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>76.35</MonetaryValue>
          </TotalCharges>
          <Weight>4.3</Weight>
          <BillingWeight>
            <UnitOfMeasurement>
              <Code>LBS</Code>
            </UnitOfMeasurement>
            <Weight>5.0</Weight>
          </BillingWeight>
        </RatedPackage>
        <NegotiatedRates>
          <NetSummaryCharges>
            <GrandTotal>
              <CurrencyCode>USD</CurrencyCode>
              <MonetaryValue>70.21</MonetaryValue>
            </GrandTotal>
          </NetSummaryCharges>
        </NegotiatedRates>
      </RatedShipment>
      <RatedShipment>
        <Service>
          <Code>13</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>5.0</Weight>
        </BillingWeight>
        <TransportationCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>114.48</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>40.25</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>154.73</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
        <ScheduledDeliveryTime>3:00 P.M.</ScheduledDeliveryTime>
        <RatedPackage>
          <TransportationCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>114.48</MonetaryValue>
          </TransportationCharges>
          <ServiceOptionsCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>40.25</MonetaryValue>
          </ServiceOptionsCharges>
          <TotalCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>154.73</MonetaryValue>
          </TotalCharges>
          <Weight>4.3</Weight>
          <BillingWeight>
            <UnitOfMeasurement>
              <Code>LBS</Code>
            </UnitOfMeasurement>
            <Weight>5.0</Weight>
          </BillingWeight>
        </RatedPackage>
        <NegotiatedRates>
          <NetSummaryCharges>
            <GrandTotal>
              <CurrencyCode>USD</CurrencyCode>
              <MonetaryValue>124.97</MonetaryValue>
            </GrandTotal>
          </NetSummaryCharges>
        </NegotiatedRates>
      </RatedShipment>
      <RatedShipment>
        <Service>
          <Code>14</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>5.0</Weight>
        </BillingWeight>
        <TransportationCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>155.63</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>40.25</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>195.88</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
        <ScheduledDeliveryTime>8:30 A.M.</ScheduledDeliveryTime>
        <RatedPackage>
          <TransportationCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>155.63</MonetaryValue>
          </TransportationCharges>
          <ServiceOptionsCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>40.25</MonetaryValue>
          </ServiceOptionsCharges>
          <TotalCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>195.88</MonetaryValue>
          </TotalCharges>
          <Weight>4.3</Weight>
          <BillingWeight>
            <UnitOfMeasurement>
              <Code>LBS</Code>
            </UnitOfMeasurement>
            <Weight>5.0</Weight>
          </BillingWeight>
        </RatedPackage>
        <NegotiatedRates>
          <NetSummaryCharges>
            <GrandTotal>
              <CurrencyCode>USD</CurrencyCode>
              <MonetaryValue>195.88</MonetaryValue>
            </GrandTotal>
          </NetSummaryCharges>
        </NegotiatedRates>
      </RatedShipment>
      <RatedShipment>
        <Service>
          <Code>59</Code>
        </Service>
        <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
        <BillingWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>5.0</Weight>
        </BillingWeight>
        <TransportationCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>56.25</MonetaryValue>
        </TransportationCharges>
        <ServiceOptionsCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>40.25</MonetaryValue>
        </ServiceOptionsCharges>
        <TotalCharges>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>96.50</MonetaryValue>
        </TotalCharges>
        <GuaranteedDaysToDelivery>2</GuaranteedDaysToDelivery>
        <ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime>
        <RatedPackage>
          <TransportationCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>56.25</MonetaryValue>
          </TransportationCharges>
          <ServiceOptionsCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>40.25</MonetaryValue>
          </ServiceOptionsCharges>
          <TotalCharges>
            <CurrencyCode>USD</CurrencyCode>
            <MonetaryValue>96.50</MonetaryValue>
          </TotalCharges>
          <Weight>4.3</Weight>
          <BillingWeight>
            <UnitOfMeasurement>
              <Code>LBS</Code>
            </UnitOfMeasurement>
            <Weight>5.0</Weight>
          </BillingWeight>
        </RatedPackage>
        <NegotiatedRates>
          <NetSummaryCharges>
            <GrandTotal>
              <CurrencyCode>USD</CurrencyCode>
              <MonetaryValue>83.56</MonetaryValue>
            </GrandTotal>
          </NetSummaryCharges>
        </NegotiatedRates>
      </RatedShipment>
    </RatingServiceSelectionResponse>
     
    
    Hide Id Copy Id to clipboard
    20230926113714695310 
    
    Hide Endpointurl Copy Endpointurl to clipboard
    https://onlinetools.ups.com/ups.app/xml/Rate 

    OAuth REST API:

    UPS Live Rates: UPS API Request
    Hide Url Copy Url to clipboard
    https://onlinetools.ups.com/api/rating/v2205/Shop?additionalinfo= 
    
    Hide Body Copy Body to clipboard
    {
        "RateRequest": {
            "Shipment": {
                "Service": [],
                "ShipFrom": {
                    "Address": {
                        "AddressLine1": "8009 Creedmoor Rd, Ste. 102",
                        "City": "Raleigh",
                        "CountryCode": "US",
                        "PostalCode": "27613",
                        "StateProvinceCode": "NC"
                    }
                },
                "ShipTo": {
                    "Address": {
                        "City": "Gonzales",
                        "CountryCode": "US",
                        "PostalCode": "70737",
                        "StateProvinceCode": "LA"
                    }
                },
                "Shipper": {
                    "Address": {
                        "AddressLine1": "8009 Creedmoor Rd, Ste. 102",
                        "City": "Raleigh",
                        "CountryCode": "US",
                        "PostalCode": "27613",
                        "StateProvinceCode": "NC"
                    },
                    "ShipperNumber": "REDACTED"
                },
                "RateInformation": [],
                "Package": [
                    {
                        "PackageServiceOptions": {
    HERE --->               "InsuredValue": { <--"DeclaredValue"
                                "CurrencyCode": "USD",
                                "MonetaryValue": "3400.54"
                            }
                        },
                        "PackageWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS"
                            },
                            "Weight": "4.3"
                        },
                        "PackagingType": {
                            "Code": "02"
                        }
                    }
                ],
                "ShipmentRatingOptions": {
                    "NegotiatedRatesIndicator": "1"
                }
            }
        }
    } 
    UPS Live Rates: UPS API Response
    Hide Response Copy Response to clipboard
    {
        "RateResponse": {
            "Response": {
                "ResponseStatus": {
                    "Code": "1",
                    "Description": "Success"
                },
                "Alert": [
                    {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    }
                ],
                "TransactionReference": {
                    "CustomerContext": "Octolize Plugin",
                    "TransactionIdentifier": "xwssoat269v3F7SMB2h99R"
                }
            },
            "RatedShipment": [
                {
                    "Service": {
                        "Code": "01",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "120.01"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "120.01"
                    },
                    "NegotiatedRateCharges": {
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "TotalCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "88.80"
                        }
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "1",
                        "DeliveryByTime": "10:30 A.M."
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "120.01"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "101.06"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "ItemizedCharges": {
                            "Code": "375",
                            "CurrencyCode": "USD",
                            "MonetaryValue": "18.95"
                        },
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "120.01"
                        },
                        "NegotiatedCharges": {
                            "BaseServiceCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "74.78"
                            },
                            "TransportationCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "88.80"
                            },
                            "ServiceOptionsCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "0.00"
                            },
                            "TotalCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "88.80"
                            },
                            "ItemizedCharges": {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "14.02"
                            }
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "02",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "48.62"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "48.62"
                    },
                    "NegotiatedRateCharges": {
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "TotalCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "37.43"
                        }
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "2"
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "48.62"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "40.94"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "ItemizedCharges": {
                            "Code": "375",
                            "CurrencyCode": "USD",
                            "MonetaryValue": "7.68"
                        },
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "48.62"
                        },
                        "NegotiatedCharges": {
                            "BaseServiceCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "31.52"
                            },
                            "TransportationCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "37.43"
                            },
                            "ServiceOptionsCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "0.00"
                            },
                            "TotalCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "37.43"
                            },
                            "ItemizedCharges": {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "5.91"
                            }
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "03",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "17.05"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "17.05"
                    },
                    "NegotiatedRateCharges": {
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "TotalCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "13.98"
                        }
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "17.05"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "14.73"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "ItemizedCharges": {
                            "Code": "375",
                            "CurrencyCode": "USD",
                            "MonetaryValue": "2.32"
                        },
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "17.05"
                        },
                        "NegotiatedCharges": {
                            "BaseServiceCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "12.08"
                            },
                            "TransportationCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "13.98"
                            },
                            "ServiceOptionsCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "0.00"
                            },
                            "TotalCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "13.98"
                            },
                            "ItemizedCharges": {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "1.90"
                            }
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "12",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "36.10"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "36.10"
                    },
                    "NegotiatedRateCharges": {
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "TotalCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "29.96"
                        }
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "3"
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "36.10"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "30.40"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "ItemizedCharges": {
                            "Code": "375",
                            "CurrencyCode": "USD",
                            "MonetaryValue": "5.70"
                        },
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "36.10"
                        },
                        "NegotiatedCharges": {
                            "BaseServiceCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "25.23"
                            },
                            "TransportationCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "29.96"
                            },
                            "ServiceOptionsCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "0.00"
                            },
                            "TotalCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "29.96"
                            },
                            "ItemizedCharges": {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "4.73"
                            }
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "13",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "114.48"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "114.48"
                    },
                    "NegotiatedRateCharges": {
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "TotalCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "84.72"
                        }
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "1",
                        "DeliveryByTime": "3:00 P.M."
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "114.48"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "96.40"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "ItemizedCharges": {
                            "Code": "375",
                            "CurrencyCode": "USD",
                            "MonetaryValue": "18.08"
                        },
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "114.48"
                        },
                        "NegotiatedCharges": {
                            "BaseServiceCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "71.34"
                            },
                            "TransportationCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "84.72"
                            },
                            "ServiceOptionsCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "0.00"
                            },
                            "TotalCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "84.72"
                            },
                            "ItemizedCharges": {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "13.38"
                            }
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "14",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "155.63"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "155.63"
                    },
                    "NegotiatedRateCharges": {
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "TotalCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "155.63"
                        }
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "1",
                        "DeliveryByTime": "8:30 A.M."
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "155.63"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "131.06"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "ItemizedCharges": {
                            "Code": "375",
                            "CurrencyCode": "USD",
                            "MonetaryValue": "24.57"
                        },
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "155.63"
                        },
                        "NegotiatedCharges": {
                            "BaseServiceCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "131.06"
                            },
                            "TransportationCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "155.63"
                            },
                            "ServiceOptionsCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "0.00"
                            },
                            "TotalCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "155.63"
                            },
                            "ItemizedCharges": {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "24.57"
                            }
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "59",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "56.25"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "56.25"
                    },
                    "NegotiatedRateCharges": {
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "TotalCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "43.31"
                        }
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "2",
                        "DeliveryByTime": "10:30 A.M."
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "56.25"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "47.37"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "0.00"
                        },
                        "ItemizedCharges": {
                            "Code": "375",
                            "CurrencyCode": "USD",
                            "MonetaryValue": "8.88"
                        },
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "56.25"
                        },
                        "NegotiatedCharges": {
                            "BaseServiceCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "36.47"
                            },
                            "TransportationCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "43.31"
                            },
                            "ServiceOptionsCharges": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "0.00"
                            },
                            "TotalCharge": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "43.31"
                            },
                            "ItemizedCharges": {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "6.84"
                            }
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                }
            ]
        }
    } 
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author grola

    (@grola)

    Thank you, we are working on it.

    Plugin Author grola

    (@grola)

    Hi,

    We have just released version 2.0.11 with DeclaredValue.

    Best regards
    Grzegorz

    Thread Starter carbides

    (@carbides)

    Thank you, the plugin now correctly displays the insured package price.

    This is the fixed request, also including “InsuredValue” ??:

    UPS Live Rates: UPS API Request
    Hide Url Copy Url to clipboard
    https://onlinetools.ups.com/api/rating/v2205/Shop?additionalinfo= 
    
    Hide Body Copy Body to clipboard
    {
        "RateRequest": {
            "PickupType": {
                "Code": "01"
            },
            "Shipment": {
                "Service": [],
                "ShipFrom": {
                    "Address": {
                        "AddressLine1": "8009 Creedmoor Rd, Ste. 102",
                        "City": "Raleigh",
                        "CountryCode": "US",
                        "PostalCode": "27613",
                        "StateProvinceCode": "NC"
                    }
                },
                "ShipTo": {
                    "Address": {
                        "AddressLine1": "10093 Rayco Sandres Road",
                        "City": "Gonzales",
                        "CountryCode": "US",
                        "PostalCode": "70737",
                        "StateProvinceCode": "LA"
                    }
                },
                "Shipper": {
                    "Address": {
                        "AddressLine1": "8009 Creedmoor Rd, Ste. 102",
                        "City": "Raleigh",
                        "CountryCode": "US",
                        "PostalCode": "27613",
                        "StateProvinceCode": "NC"
                    },
                    "ShipperNumber": "REDACTED"
                },
                "RateInformation": {
                    "NegotiatedRatesIndicator": "1"
                },
                "Package": [
                    {
                        "PackageServiceOptions": {
                            "InsuredValue": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "3400.54"
                            },
                            "DeclaredValue": {
                                "CurrencyCode": "USD",
                                "MonetaryValue": "3400.54"
                            }
                        },
                        "PackageWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS"
                            },
                            "Weight": "4.3"
                        },
                        "PackagingType": {
                            "Code": "02"
                        }
                    }
                ]
            }
        }
    } 

    This is the current and fixed response:

    UPS Live Rates: UPS API Response
    Hide Response Copy Response to clipboard
    {
        "RateResponse": {
            "Response": {
                "ResponseStatus": {
                    "Code": "1",
                    "Description": "Success"
                },
                "Alert": [
                    {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    }
                ],
                "TransactionReference": {
                    "CustomerContext": "Octolize Plugin",
                    "TransactionIdentifier": "xwssoas26b34QzMh9VCVnG"
                }
            },
            "RatedShipment": [
                {
                    "Service": {
                        "Code": "01",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "128.55"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "45.50"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "174.05"
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "1",
                        "DeliveryByTime": "10:30 A.M."
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "128.55"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "108.48"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "45.50"
                        },
                        "ItemizedCharges": [
                            {
                                "Code": "400",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "45.50",
                                "SubType": "EVS"
                            },
                            {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "20.07"
                            }
                        ],
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "174.05"
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "02",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "52.83"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "45.50"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "98.33"
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "2"
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "52.83"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "44.58"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "45.50"
                        },
                        "ItemizedCharges": [
                            {
                                "Code": "400",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "45.50",
                                "SubType": "EVS"
                            },
                            {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "8.25"
                            }
                        ],
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "98.33"
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "03",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "18.35"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "45.50"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "63.85"
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "18.35"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "15.85"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "45.50"
                        },
                        "ItemizedCharges": [
                            {
                                "Code": "400",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "45.50",
                                "SubType": "EVS"
                            },
                            {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "2.50"
                            }
                        ],
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "63.85"
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "12",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "40.30"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "45.50"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "85.80"
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "3"
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "40.30"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "34.01"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "45.50"
                        },
                        "ItemizedCharges": [
                            {
                                "Code": "400",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "45.50",
                                "SubType": "EVS"
                            },
                            {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "6.29"
                            }
                        ],
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "85.80"
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "13",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "122.64"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "45.50"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "168.14"
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "1",
                        "DeliveryByTime": "3:00 P.M."
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "122.64"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "103.49"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "45.50"
                        },
                        "ItemizedCharges": [
                            {
                                "Code": "400",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "45.50",
                                "SubType": "EVS"
                            },
                            {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "19.15"
                            }
                        ],
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "168.14"
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "14",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "164.10"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "45.50"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "209.60"
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "1",
                        "DeliveryByTime": "8:30 A.M."
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "164.10"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "138.48"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "45.50"
                        },
                        "ItemizedCharges": [
                            {
                                "Code": "400",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "45.50",
                                "SubType": "EVS"
                            },
                            {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "25.62"
                            }
                        ],
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "209.60"
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                },
                {
                    "Service": {
                        "Code": "59",
                        "Description": ""
                    },
                    "RatedShipmentAlert": {
                        "Code": "110971",
                        "Description": "Your invoice may vary from the displayed reference rates"
                    },
                    "BillingWeight": {
                        "UnitOfMeasurement": {
                            "Code": "LBS",
                            "Description": "Pounds"
                        },
                        "Weight": "5.0"
                    },
                    "TransportationCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "61.69"
                    },
                    "BaseServiceCharge": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "0.00"
                    },
                    "ServiceOptionsCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "45.50"
                    },
                    "TotalCharges": {
                        "CurrencyCode": "USD",
                        "MonetaryValue": "107.19"
                    },
                    "GuaranteedDelivery": {
                        "BusinessDaysInTransit": "2",
                        "DeliveryByTime": "10:30 A.M."
                    },
                    "RatedPackage": {
                        "TransportationCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "61.69"
                        },
                        "BaseServiceCharge": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "52.06"
                        },
                        "ServiceOptionsCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "45.50"
                        },
                        "ItemizedCharges": [
                            {
                                "Code": "400",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "45.50",
                                "SubType": "EVS"
                            },
                            {
                                "Code": "375",
                                "CurrencyCode": "USD",
                                "MonetaryValue": "9.63"
                            }
                        ],
                        "TotalCharges": {
                            "CurrencyCode": "USD",
                            "MonetaryValue": "107.19"
                        },
                        "Weight": "4.3",
                        "BillingWeight": {
                            "UnitOfMeasurement": {
                                "Code": "LBS",
                                "Description": "Pounds"
                            },
                            "Weight": "5.0"
                        }
                    }
                }
            ]
        }
    } 

    I have changed back to REST API. To do this, I had do revoke the current REST API Authorization and renew it.

    Thank you very much Grzegorz!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘OAuth Rest API request: InsuredValue vs DeclaredValue’ is closed to new replies.