const { result, error } = await unprice.customers.resetEntitlements({
customerId: "cus_1234567890"
});
if (error) {
// handle potential network or bad request error
// a link to our docs will be in the `error.docs` field
console.error(error.message);
return;
}
console.log(result);
{
"success": true,
"message": "Entitlements reset successfully"
}
Request
The ID of the customer to reset entitlements for
Response
Whether the entitlements were reset successfully
A message describing the result of the operation