Customers API

Customers are contacts linked to your merchant account. A customer is created automatically when a payment link with Collect Customer Info enabled is paid. You can also create and manage customers directly via the API and attach them to payments using customer_id.

The customer object

{
  "data": {
    "id":         1,
    "name":       "Rahim Uddin",
    "email":      "[email protected]",
    "phone":      "01512345678",
    "address":    null,
    "notes":      null,
    "created_at": "2026-06-12T14:30:00+06:00",
    "updated_at": "2026-06-12T14:30:00+06:00"
  }
}

Create a customer

POST /api/v1/customers

{
  "name":    "Rahim Uddin",        // required — max 255 chars
  "phone":   "01512345678",        // required — max 20 chars
  "email":   "[email protected]",  // optional
  "address": "Dhaka, Bangladesh",  // optional — max 500 chars
  "notes":   "VIP customer"        // optional — max 2000 chars
}

Returns the created customer with HTTP 201.

Retrieve a customer

GET /api/v1/customers/{id}

Update a customer

PATCH /api/v1/customers/{id}

{
  "name":    "Rahim Uddin Jr.",
  "phone":   "01898765432",
  "email":   "[email protected]",
  "address": "Chittagong, Bangladesh",
  "notes":   "Updated note"
}

Only the fields you send are updated. Returns the updated customer.

List customers

GET /api/v1/customers?per_page=25
GET /api/v1/[email protected]   // filter by email
GET /api/v1/customers?phone=01512345678         // filter by phone

Returns a paginated list, newest first. email, phone, and per_page (max 100, default 25) are optional filters.

Linking customers to payments

Every payment object includes a customer_id field. This is populated automatically when a customer completes a payment link that has Collect Customer Info enabled. You can then use the customer_id to look up the customer or correlate payments to contacts in your system.