eBay API 通过 PHP 使用 GetOrders 获取总金额

eBay API to get Total Amount using GetOrders by PHP

现在,我正在使用 GetOrders 将我所有的订单发送到我的数据库。通常,它工作正常。我可以使用以下方式获得总金额(包括商品价格和税金):

$totalAmount = $order->AmountPaid;

但是,当我尝试导入国际订单时,金额不对。

问题是:我只收了他 102.90 美元,但这里的金额给我 157.62 美元

有谁知道如何在eBay 中获取"Total" 栏下的总价?我需要使用什么样的价值?或者如何计算国际订单的价格?

与订单价格相关的字段很少

OrderArray.Order.AmountPaid

This value indicates the total amount of the order. This amount includes the sale price of each line item, shipping and handling charges, shipping insurance (if offered and selected by the buyer), additional services, and any applied sales tax. This value is returned after the buyer has completed checkout (the CheckoutStatus.Status output field reads 'Complete').

OrderArray.Order.Total

The Total amount equals the Subtotal value plus the shipping/handling, shipping insurance, and sales tax costs.

OrderArray.Order.Subtotal

The subtotal amount for the order is the total cost of all order line items. This value does not include any shipping/handling, shipping insurance, or sales tax costs.

我建议您尝试 Order.Total 获取订单的接收价格。