Billing
Validate Billing Address
client.billing.addressValidation(BillingAddressValidationParams { address, address2, city, 3 more } body, RequestOptionsoptions?): BillingAddressValidationResponse { validated_addresses }
POST/billing/address-validation
BillingProfiles
Get Billing Profile
client.billing.profiles.get(ProfileGetParams { account_id } params, RequestOptionsoptions?): ProfileGetResponse { id, account_type, address, 35 more }
GET/accounts/{account_id}/billing/profile
Create Billing Profile
client.billing.profiles.create(ProfileCreateParams { account_id, address, address2, 17 more } params, RequestOptionsoptions?): ProfileCreateResponse { id, account_type, address, 35 more }
POST/accounts/{account_id}/billing/profile
Update Billing Profile
client.billing.profiles.update(ProfileUpdateParams { account_id, address, address2, 17 more } params, RequestOptionsoptions?): ProfileUpdateResponse { id, account_type, address, 35 more }
PUT/accounts/{account_id}/billing/profile
Delete Billing Profile
client.billing.profiles.delete(ProfileDeleteParams { account_id } params, RequestOptionsoptions?): void
DELETE/accounts/{account_id}/billing/profile
Update Billing Email
client.billing.profiles.updateBillingEmail(ProfileUpdateBillingEmailParams { account_id, billing_email, preferred_locale, secondary_billing_email } params, RequestOptionsoptions?): ProfileUpdateBillingEmailResponse { id, account_type, address, 35 more }
PATCH/accounts/{account_id}/billing/profile
BillingProfilesPayment Method
Create Payment Intent for Billing Profile
client.billing.profiles.paymentMethod.create(PaymentMethodCreateParams { account_id } params, RequestOptionsoptions?): PaymentMethodCreateResponse { client_secret, intent_type }
POST/accounts/{account_id}/billing/profile/payment-method
BillingUsage
Get Account Billable Usage Info (Version 1, Alpha)
Deprecated
client.billing.usage.paygoInfo(UsagePaygoInfoParams { account_id } params, RequestOptionsoptions?): UsagePaygoInfoResponse { covered, subscriptions }
GET/accounts/{account_id}/billable-usage/info
Get Account Billable Usage (Version 1, Alpha)
Deprecated
client.billing.usage.paygo(UsagePaygoParams { account_id, from, to } params, RequestOptionsoptions?): UsagePaygoResponse { BilledCost, BillingAccountId, BillingAccountName, 24 more }
GET/accounts/{account_id}/billable-usage
Get Account Usage (Version 2, Alpha, Restricted)
Deprecated
client.billing.usage.get(UsageGetParams { account_id, from, to } params, RequestOptionsoptions?): UsageGetResponse { BillingAccountId, BillingAccountName, ChargeCategory, 33 more }
GET/accounts/{account_id}/billable/usage
Get Account Billable Usage Info (Version 1, Alpha)
client.billing.usage.getAccountUsageInfoV1(UsageGetAccountUsageInfoV1Params { account_id } params, RequestOptionsoptions?): UsageGetAccountUsageInfoV1Response { covered, subscriptions }
GET/accounts/{account_id}/billable-usage/info
Get Account Billable Usage (Version 1, Alpha)
client.billing.usage.getAccountUsageV1(UsageGetAccountUsageV1Params { account_id, from, to } params, RequestOptionsoptions?): UsageGetAccountUsageV1Response { BilledCost, BillingAccountId, BillingAccountName, 24 more }
GET/accounts/{account_id}/billable-usage
Get Account Usage (Version 2, Alpha, Restricted)
client.billing.usage.getAccountUsageV2(UsageGetAccountUsageV2Params { account_id, from, to } params, RequestOptionsoptions?): UsageGetAccountUsageV2Response { BillingAccountId, BillingAccountName, ChargeCategory, 33 more }
GET/accounts/{account_id}/billable/usage
BillingCredits
Get Account Credits
client.billing.credits.get(CreditGetParams { account_id } params, RequestOptionsoptions?): CreditGetResponse { confirmed_balance_cents, currency, days_remaining, 7 more }
GET/accounts/{account_id}/billing/credits
BillingHistory
Get Account Billing History
client.billing.history.list(HistoryListParams { account_id, page, per_page, status } params, RequestOptionsoptions?): V4PagePaginationArray<HistoryListResponse { id, action, amount, 12 more } >
GET/accounts/{account_id}/billing/history
BillingBad Debt
Get Account Bad Debt
client.billing.badDebt.get(BadDebtGetParams { account_id } params, RequestOptionsoptions?): BadDebtGetResponse { already_paid, bad_debt_status, invoices, total_debt_amount }
GET/accounts/{account_id}/billing/bad-debt
BillingUnpaid Invoice
Get Unpaid Invoices
client.billing.unpaidInvoice.get(UnpaidInvoiceGetParams { account_id } params, RequestOptionsoptions?): UnpaidInvoiceGetResponse { invoices }
GET/accounts/{account_id}/billing/unpaid-invoice
BillingRate Plans
Get Rate Plan by Public Key
client.billing.ratePlans.get(stringpublicKey, RequestOptionsoptions?): RatePlanGetResponse { id, components, currency, public_name }
GET/billing/rate_plans/{public_key}