Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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 1 replies (of 1 total)