Billing
Validate Billing Address
client.Billing.AddressValidation(ctx, body) (*BillingAddressValidationResponse, error)
POST/billing/address-validation
BillingProfiles
Get Billing Profile
client.Billing.Profiles.Get(ctx, query) (*ProfileGetResponse, error)
GET/accounts/{account_id}/billing/profile
Create Billing Profile
client.Billing.Profiles.New(ctx, params) (*ProfileNewResponse, error)
POST/accounts/{account_id}/billing/profile
Update Billing Profile
client.Billing.Profiles.Update(ctx, params) (*ProfileUpdateResponse, error)
PUT/accounts/{account_id}/billing/profile
Delete Billing Profile
client.Billing.Profiles.Delete(ctx, body) error
DELETE/accounts/{account_id}/billing/profile
Update Billing Email
client.Billing.Profiles.UpdateBillingEmail(ctx, params) (*ProfileUpdateBillingEmailResponse, error)
PATCH/accounts/{account_id}/billing/profile
BillingProfilesPayment Method
Create Payment Intent for Billing Profile
client.Billing.Profiles.PaymentMethod.New(ctx, body) (*ProfilePaymentMethodNewResponse, error)
POST/accounts/{account_id}/billing/profile/payment-method
BillingUsage
Get Account Billable Usage Info (Version 1, Alpha)
Deprecated
client.Billing.Usage.PaygoInfo(ctx, query) (*UsagePaygoInfoResponse, error)
GET/accounts/{account_id}/billable-usage/info
Get Account Billable Usage (Version 1, Alpha)
Deprecated
client.Billing.Usage.Paygo(ctx, params) (*[]UsagePaygoResponse, error)
GET/accounts/{account_id}/billable-usage
Get Account Usage (Version 2, Alpha, Restricted)
Deprecated
client.Billing.Usage.Get(ctx, params) (*[]UsageGetResponse, error)
GET/accounts/{account_id}/billable/usage
Get Account Billable Usage Info (Version 1, Alpha)
client.Billing.Usage.GetAccountUsageInfoV1(ctx, query) (*UsageGetAccountUsageInfoV1Response, error)
GET/accounts/{account_id}/billable-usage/info
Get Account Billable Usage (Version 1, Alpha)
client.Billing.Usage.GetAccountUsageV1(ctx, params) (*[]UsageGetAccountUsageV1Response, error)
GET/accounts/{account_id}/billable-usage
Get Account Usage (Version 2, Alpha, Restricted)
client.Billing.Usage.GetAccountUsageV2(ctx, params) (*[]UsageGetAccountUsageV2Response, error)
GET/accounts/{account_id}/billable/usage
BillingCredits
Get Account Credits
client.Billing.Credits.Get(ctx, query) (*CreditGetResponse, error)
GET/accounts/{account_id}/billing/credits
BillingHistory
Get Account Billing History
client.Billing.History.List(ctx, params) (*V4PagePaginationArray[HistoryListResponse], error)
GET/accounts/{account_id}/billing/history
BillingBad Debt
Get Account Bad Debt
client.Billing.BadDebt.Get(ctx, query) (*BadDebtGetResponse, error)
GET/accounts/{account_id}/billing/bad-debt
BillingUnpaid Invoice
Get Unpaid Invoices
client.Billing.UnpaidInvoice.Get(ctx, query) (*UnpaidInvoiceGetResponse, error)
GET/accounts/{account_id}/billing/unpaid-invoice
BillingRate Plans
Get Rate Plan by Public Key
client.Billing.RatePlans.Get(ctx, publicKey) (*RatePlanGetResponse, error)
GET/billing/rate_plans/{public_key}