Customers

Customers

The Customers API in Stax allows merchants to manage their customers efficiently, providing a centralized way to create, retrieve, update, and delete customer records. Customers are tied to a merchant's account and enable seamless transactions without requiring individual Stax accounts. Once a customer completes a transaction, their record is automatically saved under the merchant's account, facilitating future interactions.

Key Features

users
Customer Management

Create, update, and delete customer records tied to a merchant's account.

search
Effortless Retrieval

Retrieve all customers or search using various filters, such as name, email, or keywords.

credit-card
Streamlined Transactions

Automatically save customer records upon transaction completion for future use.

edit
Flexible Record Updates

Modify customer information to ensure records remain accurate and up to date.

trash-alt
Soft Deletion

Remove customers from active view without permanent deletion, allowing for recovery when needed.

Common Use Cases

Customer Data Model

tableCustomer Fields Reference

The Customers API requires certain data points for creating and managing records. Here's an overview of the required and optional fields:

FieldDescription
firstnameCustomer's first name (optional, but required if lastname, email, or company is not provided).
lastnameCustomer's last name (optional, but required if firstname, email, or company is not provided).
emailCustomer's email address (optional, but required if firstname, lastname, or company is not provided).
companyCompany name associated with the customer (optional, same requirements as above).
address_countryISO 3 code for the country (optional).
referenceReference string for identifying the customer (optional).

Status and Deletion

Active vs Deleted Customers

Customers marked as deleted are hidden from active views but remain retrievable using their customer_id.

Soft Deletion

Use the Delete a Customer endpoint to soft-delete a customer record without permanently erasing it.

Benefits for Developers

cogs
Simplified Customer Management

A unified system for managing customer records tied to a merchant's account.

bolt
Efficiency in Integration

Search, retrieve, and update customer records effortlessly with powerful filtering and sorting options.

heart
Improved Customer Experience

By maintaining accurate and centralized records, merchants can provide a seamless payment experience.