Credits
List credit transactions
Returns a paginated list of the company's credit transactions, newest first.
path Parameters
companyThe company UUID
query Parameters
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List credit transactions › Responses
Array of CreditTransactionResource
Create a credit transaction
Manually adds or deducts credits for the company. Use a positive credits value to add credits
and a negative value to deduct them.
path Parameters
companyThe company UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create a credit transaction › Request Body
titlecreditsNumber of credits to add (positive) or deduct (negative).
descriptionwebsite_idUUID of the website the transaction relates to.
Create a credit transaction › Responses
CreditTransactionResource
idtitledescriptioncreditsmanualupdated_atcreated_atUpdate a credit transaction
Updates an existing credit transaction. The credit amount can only be changed on manual transactions within 24 hours of creation.
path Parameters
companyThe company UUID
creditTransactionThe credit transaction UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update a credit transaction › Request Body
titlecreditsNumber of credits (positive to add, negative to deduct).
descriptionwebsite_idUUID of the website the transaction relates to.
Update a credit transaction › Responses
CreditTransactionResource
idtitledescriptioncreditsmanualupdated_atcreated_atList credit payments
Returns a paginated list of the company's credit payments (invoiced credit purchases), newest first.
path Parameters
companyThe company UUID
query Parameters
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List credit payments › Responses
Array of CreditPaymentResource
Create a credit payment
Creates a credit purchase for the company: it generates an invoice for the given number of credits addressed to the chosen contact, and credits are added directly to the balance.
path Parameters
companyThe company UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create a credit payment › Request Body
nameDescription of the credit purchase, shown on the invoice.
contact_idUUID of the company contact the invoice is addressed to.
creditsNumber of credits purchased.
price_excluding_taxTotal price excluding tax.
tax_rate_idUUID of the tax rate applied to the invoice.
Create a credit payment › Responses
CreditPaymentResource
idcreditsstatusupdated_atcreated_at