Class SubAccount
Represents a subaccount under a primary Vonage account. Subaccounts allow you to segment your usage and manage access for different parts of your organization.
public class SubAccount
- Inheritance
-
SubAccount
- Inherited Members
Properties
ApiKey
The unique API key for this subaccount.
[JsonProperty("api_key")]
public string ApiKey { get; set; }
Property Value
Balance
The current balance of the subaccount, in EUR. Only present if the subaccount does not use the primary account balance.
[JsonProperty("balance")]
public double? Balance { get; set; }
Property Value
CreatedAt
The timestamp when this subaccount was created, in ISO 8601 format.
[JsonProperty("created_at")]
public string CreatedAt { get; set; }
Property Value
CreditLimit
The credit limit for this subaccount. Only applicable when the subaccount does not use the primary account balance.
[JsonProperty("credit_limit")]
public double? CreditLimit { get; set; }
Property Value
Name
The friendly name of the subaccount.
[JsonProperty("name")]
public string Name { get; set; }
Property Value
PrimaryAccountApiKey
The API key of the primary account that owns this subaccount.
[JsonProperty("primary_account_api_key")]
public string PrimaryAccountApiKey { get; set; }
Property Value
Secret
The API secret for this subaccount. Only returned when creating a new subaccount.
[JsonProperty("secret")]
public string Secret { get; set; }
Property Value
Suspended
Indicates whether this subaccount is currently suspended. Suspended subaccounts cannot make API calls.
[JsonProperty("suspended")]
public bool Suspended { get; set; }
Property Value
UsePrimaryAccountBalance
Indicates whether this subaccount uses the primary account's balance for API calls.
When true, charges are deducted from the primary account.
[JsonProperty("use_primary_account_balance")]
public bool UsePrimaryAccountBalance { get; set; }