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"
}
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

customerId
string
required

The ID of the customer to reset entitlements for

Response

success
boolean
required

Whether the entitlements were reset successfully

message
string

A message describing the result of the operation