const { result, error } = await unprice.access.update({
customerId: "cus_1234567890",
updates: {
customerDisabled: true,
customerUsageLimitReached: false
}
});
if (error) {
console.error(error.message);
return;
}
console.log(result);
Request
The customer ID to update.
Access-control fields to update for the customer.
Disable or re-enable all feature access for the customer.
updates.customerUsageLimitReached
Manually mark whether the customer reached a usage limit.
updates.subscriptionStatus
Override the subscription status used for access checks.
Response
Returns an empty object on success.