LogoLogo
Contact API support
  • Build apps
  • Site Templates
  • REST API Reference
  • Storefronts (JS API)
  • Webhook automations
  • Discounts
  • Guides
  • Changelog
  • Overview
  • Payments
    • Online payments overview
    • Provide additional online payment method
    • Process online payment requests
      • Step 1. Decode and parse payment request from Ecwid
      • Step 2. Collect essential data for payment processing
      • Step 3. Initialize the transaction from payment provider
      • Step 4. Place order and return customer back to the store
    • Customize payments
      • Set up payment fees
      • Collect tips/donations at the checkout
      • Add payment instructions to the checkout
      • Show payment icons near your payment method at the checkout
      • Collect additional information before payment
      • Limit payments by selected shipping method
  • Shipping methods
    • Online shipping methods overview
    • Provide additional online shipping method
    • Process online shipping requests
      • Step 1. Parse shipping request
      • Step 2. Calculate shipping rates externally
      • Step 3. Send a response with shipping options
    • Shipping glossary
  • Orders
    • Get order details
      • Customer data in order details
      • Product prices in order details
      • Discounts in order details
      • Taxes in order details
    • Create orders
      • Calculate order details
      • Place new order with API
      • 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. Orders
  2. Get order details

Customer data in order details

PreviousGet order detailsNextProduct prices in order details

Last updated 2 days 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