Skip to main content
The updateACL method allows you to manually override access controls for a specific customer. This is useful for manually disabling a customer, marking a limit as reached, or updating their subscription status outside of the standard flow.
const { result, error } = await unprice.customers.updateACL({
  customerId: "cus_1234567890",
  updates: {
    customerDisabled: true,
    customerUsageLimitReached: false
  }
});

if (error) {
  console.error(error.message);
  return;
}

console.log("ACL updated successfully");
{}

Request

customerId
string
required
The ID of the customer to update access for
updates
object
required
The updates to apply to the customer’s access control

Response

Returns an empty object {} on success.