Users
Billing
Adjust a user's credit balance
Changed onIncreases or decreases the credit balance for the specified user. Each adjustment is recorded as a ledger entry. The idempotency_key parameter ensures that duplicate requests are safely handled.
post/users/{user_id}/billing/credits
Request
- Base URL: https://api.clerk.com/v1
- URL: https://api.clerk.com/v1/users/{user_id}/billing/credits
- Auth: HTTP bearer
Path parameters
user_idstring required
The ID of the user whose credit balance to adjust
Request body
Response
A credit ledger entry.
Changes
- breaking
the
response's property type changed fromintegertoobject, and format fromint64to no format for status - breaking
removed the required property
from the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking
- info
endpoint added
- info