Customers API

Endpoints

GET/customersList customers
GET/customers/:idGet customer
POST/customersCreate customer
PUT/customers/:idUpdate customer
DELETE/customers/:idDeactivate customer

List customers - GET /customers

ParameterDescription
searchSearch by name, email, or phone
is_activeFilter by status (default: true)
page, per_pagePagination

Customer response object

{
  "id": "7d2e1f09-...",
  "name": "Sarah Johnson",
  "email": "[email protected]",
  "phone": "+1-555-0100",
  "address": "123 Main St",
  "city": "New York",
  "country": "US",
  "is_active": true,
  "loyalty_points": 1450,
  "total_orders": 12,
  "total_spent": 1450.75,
  "last_purchase_date": "2026-06-01T10:30:00.000Z",
  "created_at": "2025-12-01T09:00:00.000Z"
}

Create customer - POST /customers

FieldTypeRequired
nameStringrequired
emailStringoptional
phoneStringoptional
addressStringoptional
cityStringoptional
countryStringoptional
notesStringoptional