LogoLogo
Build appsContact API support
Orders
  • Build apps
  • Site Templates
  • API Reference
  • Changelog
Orders
  • Orders management overview
  • Get order details
    • Customer data in order details
    • Product prices in order details
    • Discounts in order details
  • Taxes in order details
  • Create orders with API
    • Place new order with API
    • Calculate order details
  • Place a new order from the abandoned cart
  • Sync orders with external services
    • Sync orders manually
    • Automated orders sync

Lightspeed® 2025

On this page

Was this helpful?

  1. Get order details

Product prices in order details

PreviousCustomer data in order detailsNextDiscounts in order details

Last updated 2 months ago

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

Configured order API call

You can filter out everything in the order details except for the prices with the responseFields query param.

Request example:

GET /api/v3/STOREID/orders/ORDERID?responseFields=subtotal,subtotalWithoutTax,items(id,price,priceWithoutTax,productPrice,isCustomerSetPrice,selectedPrice(value)) HTTP/1.1
Host: app.ecwid.com
Authorization: Bearer secret_token

Change STOREID with your store ID, ORDERID with the order ID (), and the secret_token with the secret access token of your app.

Response examples:

{
    "subtotal": 10,
    "subtotalWithoutTax": 9.09,
    "items": [
        {
            "id": 1828115520,
            "price": 10,
            "priceWithoutTax": 9.09,
            "productPrice": 10
        }
    ]
}
{
    "subtotal": 200,
    "subtotalWithoutTax": 200,
    "items": [
        {
            "id": 1917576131,
            "price": 100,
            "priceWithoutTax": 100,
            "productPrice": 25,
            "isCustomerSetPrice": true,
            "selectedPrice": {
                "value": 100
            }
        }
    ]
}

If priceWithoutTax < price, the product has taxes included in the price. Check the pricesIncludeTax value and process the order accordingly.

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.

find order ID