sdk.credit.summary()

elements.sdk.api.credit

Get credit summary.

Retrieves the credit summary for the specified user's department. As credits are associated with a department, all users of a department see the same credit summary.

Parameters

  • credit_source_id (str) - The credit source (department) ID

Returns

Credit - Credit object containing available, reserved, and used amounts

Example(s)

# Get credit summary
credit = await sdk.credit.summary(credit_source_id="department-uuid")

# Output (Credit)
available: 10000.0
reserved: 500.0
used: 2500.0