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

Customer data in order details

PreviousOrders management overviewNextProduct prices in order details

Last updated 2 months ago

Was this helpful?

Get the following data about the customer who placed the order with Ecwid API:

  • Customer email

  • Shipping and billing address left by the customer at the checkout

  • Customer's phone number

  • Order comments left by the customer at the checkout

  • Internal IDs of the customer and their group for REST API calls

  • Browser/device used by the customer to place the order

  • Customer's IP address

Configured order API call

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

Request example:

GET /api/v3/STOREID/orders/ORDERID?responseFields=email,shippingPerson,billingPerson,orderComments,customerId,customerGroupId,customerUserAgent,ipAddress 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 example:

{
    "email": "ec.apps@lightspeedhq.com",
    "billingPerson": {
        "name": "API Support team",
        "firstName": "API",
        "lastName": "Support team",
        "companyName": "Ecwid",
        "street": "Anhalter Strasse 98",
        "city": "Niederhausen An Der Appel",
        "countryCode": "ES",
        "countryName": "Spain",
        "postalCode": "08003",
        "stateOrProvinceCode": "AL",
        "stateOrProvinceName": "Alava",
        "phone": "+1(234)56-78-90"
    },
    "orderComments": "Test order",
    "customerId": 270919557,
    "customerUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
    "ipAddress": "80.241.251.10"
}

If some fields are missing in the response, Ecwid couldn't get these details at the checkout, or the order wasn't placed through it. The only fields that should always be in the response are: email and customerId.

find order ID