Skip to content

Billing Get Account Billing Returns Username

This example assumes using Fal; is in scope and apiKey contains your Fal API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
var client = GetAuthorizedApi();

try
{
    var response = await client.Account.GetAccountBillingAsync();

}
catch (ApiException ex) when (ex.Message.Contains("Admin API key"))
{
}