sdk.credit.add()

elements.sdk.api.credit

Add credits.

Add credits to the specified credit source. This is an administrative operation.

Parameters

  • credit_source_id (str) - The credit source (department) ID
  • amount (float) - The amount of credits to add
  • reason (str) - The reason for adding credits

Returns

None

Example(s)

# Add credits to a department
await sdk.credit.add(
    credit_source_id="department-uuid",
    amount=5000.0,
    reason="Annual credit allocation"
)