Skip to main content
POST
Allocate credits to a client

Authorizations

Authorization
string
header
required

Enter your API key (starts with lindo_sk_)

Body

application/json
client_id
string
required

The ID of the client to allocate credits to

Example:

"client_abc123"

credit_type
enum<string>
required

Type of credits to allocate

Available options:
monthly,
purchased,
daily
Example:

"purchased"

amount
number
required

Number of credits to allocate (must be positive)

Required range: x >= 1
Example:

100

source
string

Source of the allocation (e.g. bonus, purchase)

Example:

"bonus"

notes
string

Optional notes for the allocation

Example:

"Monthly credit top-up"

Response

Credits allocated successfully

success
enum<boolean>
required
Available options:
true
result
object
required