I would like to get shipping costs of an order.
I can get amount, customer information, purchase date of an order... but where is the shipping cost?
Assuming that you are using the Orders API, the shipping charges for each item are stored in the shippingPrice
property of the OrderItem
type. You need to use the ListOrderItems
operation to retrieve the order's items.
See page 26 of the Orders API documentation for a description of shippingPrice
property. See page 25 for a description of the ListOrderItems
operation.