Customers
Learn how to create a customer with the Customers API.
The Customer object represents your users and is a core resource within Yorlet. You can use it to store profile and legal information, as well as collecting Payment Methods and setting up Subscriptions.
Include the following code on your server to create a new customer.
curl https://api.yorlet.com/v1/customers \
-H "Authorization: Bearer {{API_KEY}}" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'
At the least, you must provide a valid email address for the customer to create a Customer object. The email will be used to send notifications of past due invoices and payment receipts.
We also recommed storing your applciations internal reference to your customer within the metadata attribute.
Last modified 2yr ago