The customer object
A customer represents a buyer who has interacted with your business through Orafi. Customers are typically created automatically during payment flows.Unique identifier for the customer.
Customer’s first name.
Customer’s last name.
Customer’s email address.
Environments the customer has interacted in. Contains
test, live, or both.Aggregate amount the customer has spent across all completed transactions.
When the customer record was created.
When the customer record was last updated.
Create a customer
POST
Manually creates a customer record.
/customers/createIn most flows, customers are created automatically when a payment is completed. Manual creation is intended for pre-registration, data migrations, or account-based billing.
Request body
Customer’s first name.
Customer’s last name.
Customer’s email address.
List customers
GET
Returns a paginated list of customers. All query parameters are optional.
/customersQuery parameters
Filter by spending range. One of
BELOW10USDT, FROM10TO30USDT, FROM30TO100USDT, FROM100TO200USDT, FROM200TO500USDT, ABOVE500USDT.Filter by environment.
test or live.Maximum number of results per page.
Pagination cursor. Results start after the referenced customer.
Retrieve a customer
GET
Returns the details of a specific customer.
/customers/{customerId}Path parameters
The customer ID to retrieve.
Delete a customer
DELETE
Permanently deletes a customer record. This action cannot be undone.
/customers/{customerId}Path parameters
The customer ID to delete.
