Skip to content

Customers

A stable identifier for the end-buyers you serve.

Updated Jul 15, 2026API 2026-07-01 Edit on GitHubReport an issue

Overview

Attaching a customer to payments unlocks lifetime value reports, saved payment methods, and unified receipt history.

Endpoints

MethodPathDescription
POST/v1/customersCreate a customer.
GET/v1/customers/{id}Retrieve.
PATCH/v1/customers/{id}Update fields or metadata.
DELETE/v1/customers/{id}Soft delete (payments retained for audit).
GET/v1/customersList / search by email or metadata.

POST /v1/customers

POST/v1/customers

Create a customer.

FieldTypeDescription
email
stringPrimary contact.
phone
stringE.164 format.
name
stringFull name.
metadata
objectFree-form key/value.
{ "id": "cus_01HT3P…", "email": "jean@example.ht", "created": 1794902400 }

GET /v1/customers/{id}

GET/v1/customers/{id}

Retrieve.

PATCH /v1/customers/{id}

PATCH/v1/customers/{id}

Update fields or metadata.

DELETE /v1/customers/{id}

DELETE/v1/customers/{id}

Soft delete (payments retained for audit).

GET /v1/customers

GET/v1/customers

List / search by email or metadata.