I am seeing a few random orders in a getOrders response that don't have totals that match with the Ebay portal or within it's own json object.
For example, I have the following pricingSummary:
"pricingSummary": { "priceSubtotal": { "value": "39.99", "currency": "USD" }, "deliveryCost": { "value": "0.0", "currency": "USD" }, "total": { "value": "46.98", "currency": "USD" } }
However, one of the line items (and Ebay seller portal) displays $6.99 for shipping but the pricingSummary states $0 as you can see above. Here is the lineItem with the $6.99 shipping:
"lineItems": [ { "lineItemId": "10031539271610", "legacyItemId": "183457180350", "sku": "xxxxxx", "title": "Battery", "lineItemCost": { "value": "39.99", "currency": "USD" }, "quantity": 1, "soldFormat": "FIXED_PRICE", "listingMarketplaceId": "EBAY_US", "purchaseMarketplaceId": "EBAY_US", "lineItemFulfillmentStatus": "NOT_STARTED", "total": { "value": "46.98", "currency": "USD" }, "deliveryCost": { "shippingCost": { "value": "6.99", "currency": "USD" } }, "appliedPromotions": [ ], "taxes": [ ], "ebayCollectAndRemitTaxes": [ { "taxType": "STATE_SALES_TAX", "amount": { "value": "3.76", "currency": "USD" }, "collectionMethod": "NET" } ], "properties": { "buyerProtection": true, "soldViaAdCampaign": true }, "lineItemFulfillmentInstructions": { "minEstimatedDeliveryDate": "2020-12-08T08:00:00.000Z", "maxEstimatedDeliveryDate": "2020-12-08T08:00:00.000Z", "shipByDate": "2020-12-01T07:59:59.000Z", "guaranteedDelivery": false } } ]
Also, you'll notice the ebayCollectAndRemitTaxes contains a $3.76 charge but it's not reflected in the pricing summary either. I've been using this in production for a year without issues until last week when one of my validations flagged the error. Is pricingSummary no longer a valid source for retrieving order totals?
Here are the docs regarding the pricingSummary which states all of the totals should be available inside the object.
https://developer.ebay.com/api-docs/sell/fulfillment/types/sel:PricingSummary
For getOrders: https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/getOrders