Customers API
The Customers API allows you to create and manage customer information. Storing customer data makes it easier to process payments and track customer activity.
The Customer Object
Customer Object Properties
Unique identifier for the customer
Customer’s full name
Customer’s email address
Customer’s phone number
Additional data attached to the customer
Timestamp when the customer was created
Timestamp when the customer was last updated
API Endpoints
Create a Customer
Best Practices
Collect Complete Information
Collect as much customer information as possible to improve payment success rates and reduce fraud.Include both email and phone when available.
Use Metadata Effectively
Use the metadata field to store additional information about your customers that’s relevant to your business.This can include user IDs from your system, subscription information, or other custom data.
Validate Customer Data
Validate email addresses and phone numbers before sending them to the API to ensure they’re in the correct format.This helps prevent errors and improves the quality of your customer data.
Implement Customer Search
Use the search parameter when listing customers to quickly find existing customers instead of creating duplicates.Search by email, phone, or name to find matching customers.