Customer data in order details

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 (find order ID), and the secret_token with the secret access token of your app.

Response example:

{
    "email": "[email protected]",
    "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.

Last updated

Was this helpful?