Updates an existing customer. Use this to change budgets or contact info.
Authentication
Public API: use an API key.
Authorization: Bearer YOUR_API_KEY (public API)
Path params
customer_identifier string required: Your unique identifier for this customer.
POST params
You can add these params to the body:
-
email string: Customer email address.
-
name string: Customer display name.
-
metadata object: Custom metadata associated with this customer (optional).
-
period_budget number: Budget for the current period in USD. Set to null to remove the budget limit.
-
budget_duration string: Budget renewal period. Options: daily, weekly, monthly.
-
total_budget number: Total all-time budget limit across all periods (optional).
-
markup_percentage number: Markup percentage applied to this customer’s usage (optional).
Request example
Response
Returns the updated customer object (same structure as the GET detail endpoint).
To remove a budget limit, set period_budget to null.