You can use the Products API to create specific clusters for your customers. This is commonly used when you want to allocate your customers into different tiers, such as:
Standard: Customers who have just registered on the platform.
Gold: Customers who have had an account for at least one year or spend more than $5,000 per month.
VIP: Customers with over $1M invested in the app.
To do this, call the Create a Product endpoint with the following example payload:
POST /v1/organizations/{{id}}/ledgers/{{id}}/products
Body:
{"name":"Gold","status": {"code":"001","description":"Ready to use" },"metadata": {"monthlyExpenses":5000,"minumumYears":1 }}
201:
{"id":"aca9abcc-4dcd-454c-8ec1-b22df0e88795","ledgerId":"44d5e310-5caa-4d51-812f-2d56c1bbcacd","organizationId":"5f3a4c55-8b28-4276-bed7-f7c8a4bb44e8","name":"Gold","status": {"code":"001","description":"Ready to use" },"metadata": {"monthlyExpenses":5000,"minumumYearsAsACustomer":1 },"createdAt":"2024-01-29T00:12:00+0300","updatedAt":"2024-01-29T00:12:00+0300","deletedAt":null}
After that, accounts that meet these requirements can have their productId updated using the Update an Account endpoint with the following payload.