Skip to main content
GET
AhaSend Go SDK
The AhaSend API returns current billing-period usage and proportional allocated cost for the parent and active sub-accounts.
Plan availability: sub-accounts are included on Pro (up to 9) and Max (no limit). There is no charge per sub-account; the volume of all sub-accounts is pooled on the parent’s plan. See plans and features.
allocated_cost is a proportional share of the parent account’s pooled invoice, not standalone pricing.

Authorizations

Authorization
string
header
required

API key for authentication. Non-empty Security Requirement values are AhaSend API-key roles. Roles listed within one requirement object are jointly required; separate requirement objects are alternatives.

Path Parameters

account_id
string<uuid>
required

Parent account ID

Response

Sub-account usage breakdown

billing_period
object
required
currency
string
required

Currency code used for cost allocation

allocation_method
enum<string>
required

Method used to allocate the pooled parent invoice cost

Available options:
proportional
allocation_note
string
required

Disclaimer explaining that allocated cost is not standalone sub-account pricing

parent
object
required
Example:
sub_accounts
object[]
required

Per-sub-account usage and allocated cost

removed_sub_accounts
object
required

Aggregated usage from sub accounts deleted during the period; still billed to the parent and not identified individually

Example:
total
object
required
Example: