sdk.credit.refund()
elements.sdk.api.credit
Refund credits.
Refund credits to a user collection. This is an administrative operation typically used when a computation failed or was cancelled.
Parameters
- credit_source_id (str) - The credit source (department) ID
- amount (float) - The amount of credits to refund
- reason (str) - The reason for the refund
Returns
None
Example(s)
# Refund credits to a department
await sdk.credit.refund(
credit_source_id="department-uuid",
amount=250.0,
reason="Computation failed due to system error"
)Updated 6 months ago