SellGate API

Customers API

Access customer data aggregated from orders

Customers API

Retrieve customer information aggregated from order data.

List Customers

GET /v1/customers

Returns unique customers based on email addresses from orders.

Query Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
limitintegerItems per page (default: 25, max: 100)
emailstringSearch by email (partial match)

Response

{
  "data": [
    {
      "email": "customer@example.com",
      "order_count": 5,
      "completed_orders": 4,
      "total_spent": 149.95,
      "first_order": "2025-01-10T10:00:00Z",
      "last_order": "2025-01-25T14:30:00Z",
      "country": "United States",
      "country_code": "US"
    }
  ],
  "meta": {
    "total": 234,
    "limit": 25,
    "offset": 0
  }
}

Example Request

curl -X GET "https://api.sellgate.cc/v1/customers" \
  -H "Authorization: Bearer sg_live_your_api_key"

Search by Email

curl -X GET "https://api.sellgate.cc/v1/customers?email=john" \
  -H "Authorization: Bearer sg_live_your_api_key"

Customer Object

FieldTypeDescription
emailstringCustomer email address
order_countintegerTotal number of orders
completed_ordersintegerNumber of completed orders
total_spentnumberTotal amount spent (completed orders only)
first_orderstringFirst order timestamp
last_orderstringMost recent order timestamp
countrystringCountry name (from most recent order)
country_codestringCountry code (from most recent order)

Customer data is aggregated from orders. The API does not maintain a separate customer database.

On this page