A customer represents a person or entity that pays through StellarTools. Customers hold wallets, subscriptions, and payment history.
The customer object
Unique identifier. Prefixed with cus_.
Email address of the customer.
Full name of the customer.
Phone number of the customer.
URL to the customer’s profile image.
Stellar wallets linked to this customer.
Unique identifier for the wallet. Prefixed with cwl_.
Arbitrary key-value metadata.
Arbitrary key-value data you can attach to the customer.
Create a customer
POST /customers
Creates one customer. You can also pass an array to create multiple at once.
Body
Customer’s email address.
Arbitrary key-value string pairs to attach to the customer.
List customers
GET /customers
Returns all customers for your account.
Returns a list object containing customer objects.
Retrieve a customer
GET /customers/{customer_id}
Update a customer
PUT /customers/{customer_id}
Body
Merged with existing metadata.
Delete a customer
DELETE /customers/{customer_id}
Returns null on success.