Update a customer
Update customer profile and budget settings. Customers are created automatically from usage; use this endpoint to configure budgets or update profile fields after creation.
Path parameters
customer_identifier
Your unique identifier for this customer.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Query parameters
environment
Optional environment filter. If omitted, the backend uses the environment implied by your auth context when applicable.
Allowed values:
Request
This endpoint expects an object.
email
Customer email address.
name
Customer display name.
metadata
Custom key-value metadata.
period_budget
Spending budget per period in USD.
budget_duration
Budget renewal period.
Allowed values:
total_budget
Total lifetime spending budget in USD.
period_start
Optional custom budget period start.
period_end
Optional custom budget period end.
markup_percentage
Markup percentage applied to usage reports for this customer.
Response
Updated customer details.
id
Customer identifier used by the detail serializer.
name
Customer display name.
email
Customer email address.
customer_identifier
Your unique identifier for the customer.
environment
Customer environment.
Allowed values:
total_budget
Lifetime spending budget in USD.
period_budget
Current period budget in USD.
organization_name
Owning organization name.
total_period_usage
Usage in the current budget period in USD.
period_start
Start of the current budget period.
period_end
End of the current budget period.
budget_duration
Budget renewal period.
Allowed values:
updated_at
Last update timestamp.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error