Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.unprice.dev/llms.txt

Use this file to discover all available pages before exploring further.

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

customerId
string
required
The customer ID to update.
updates
object
required
Access-control fields to update for the customer.
updates.customerDisabled
boolean
Disable or re-enable all feature access for the customer.
updates.customerUsageLimitReached
boolean
Manually mark whether the customer reached a usage limit.
updates.subscriptionStatus
string
Override the subscription status used for access checks.

Response

Returns an empty object on success.