UPS-API / api-documentation

MIT License
32 stars 19 forks source link

Shipping: `ServiceOptionsCharges` at wrong position #105

Open xerc opened 2 months ago

xerc commented 2 months ago

@ //onlinetools.ups.com/api/shipments/v2403/ship

REQ [2024-04-23 12:26 CEST]

    $order->request->ShipmentRatingOptions->NegotiatedRatesIndicator = 'Y';
    $order->request->TaxInformationIndicator = 'Y';
    $order->request->ItemizedChargesRequestedIndicator = 'Y';

RES

    [NegotiatedRateCharges] // <<
    [PackageResults] =>
        (
            [TrackingNumber] => 1Z###
            [ServiceOptionsCharges] => // should be sub-obj. @ `[NegotiatedRateCharges]`
                (
                    [CurrencyCode] => EUR
                    [MonetaryValue] => 0.00
                )
xerc commented 2 months ago

btw/ why include ShipmentCharges if NegotiatedRateCharges are requested? may overwrite SC if NRG are req.