PaybytokenDocs
Customers
API reference · Customers

Customers

Create merchant-scoped customer records for payment association and Paybytoken Pay links.

A Customer is the merchant-owned identity for associating payments and Paybytoken Pay links. It does not provision a deposit address or hold a balance. It is not a global Paybytoken consumer identity. Store its id against your own customer record and use reference as your stable, non-secret correlation value.

Endpoints

MethodEndpointPurpose
POST/api/v1/customersCreate a customer.
GET/api/v1/customersList merchant-owned customers.
GET/api/v1/customers/:customerIdRetrieve one customer.
PATCH/api/v1/customers/:customerIdUpdate status or metadata.
curl https://api-prod.paybytoken.io/api/v1/customers \
  -X POST \
  -H "Authorization: Bearer $PAYBYTOKEN_SECRET_KEY" \
  -H "Idempotency-Key: customer:merchant_customer_8" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "merchant_customer_8",
    "email": "alex@example.com",
    "name": "Alex",
    "metadata": { "segment": "pro" }
  }'

Statuses are active, restricted, and closed. Restrict a customer to stop new funds-moving operations while preserving its audit history. Do not place secrets, authentication tokens or sensitive identity documents in reference or metadata.

On this page

API Workbench

Full Explorer

Open in new tab