Product prices in order details
Last updated
Was this helpful?
Last updated
Was this helpful?
Get the following data about the product prices in order details with Ecwid API:
Price of each product in the order with and without taxes
Sum of product prices in the order (subtotal) with and without taxes
Base product price (before any price modifiers) as in the Ecwid admin
State and value of the "customer-selected price" for products in the order
You can filter out everything in the order details except for the prices with the responseFields
query param.
Change STOREID
with your store ID, ORDERID
with the order ID (), and the secret_token
with the secret access token of your app.
where:
subtotal
- Sum of all product prices before any fees or discounts.
subtotalWithoutTax
- Sum of all product prices before any fees, discounts, and taxes apply.
items.id
- Internal product ID for API calls.
items.price
- Product price in the order that includes taxes.
items.priceWithoutTax
- Product price in the order without taxes.
items.productPrice
- Base product price as in the Ecwid admin without any price modifiers from the order applied.
items.isCustomerSetPrice
- If true
, customers can enter their own price for the product.
items.selectedPrice.value
- Price entered for the product by the customer. If exists, overrides other price values except for the productPrice
.