Billing

Check if user has enough credits for a job (Internal endpoint)

post/v1/billing/credits-commit

Request body

job_idstring uuid required

The ID of the job

user_idstring uuid required

The ID of the user

usage_amountinteger required

The amount of usage

usage_unit'token' required

The unit of usage

service_namestring required

The name of the service

Response

Successful response

has_enough_creditsboolean

Whether the user has enough credits for the job

Changes