Parameters
This method takes no parameters.Returns
CreditBalance dataclass with the wallet snapshot.
string
The client (organization) the wallet belongs to.
float
Total spendable credits across all buckets.
bool
True when the balance has fallen below the configured low-balance threshold. A good signal to surface a “top up” prompt to your operators.List[CreditBucket]
Per-source breakdown of the balance. Each
CreditBucket has:source_type(string): origin of the credits (e.g."paid","promo","redeem").balance(float): credits remaining in this bucket.expires_at(datetime | None): when this bucket expires, if applicable.Nonemeans the bucket does not expire.
Example
Raises
SynapAuthError: when the API key is missing or invalid.