Accounts
List Accounts
client.accounts.list(AccountListParams { direction, name, page, per_page } query?, RequestOptionsoptions?): V4PagePaginationArray<Account { id, name, type, 3 more } >
GET/accounts
Account Details
client.accounts.get(AccountGetParams { account_id } params, RequestOptionsoptions?): Account { id, name, type, 3 more }
GET/accounts/{account_id}
Create an account
client.accounts.create(AccountCreateParams { name, type, unit } body, RequestOptionsoptions?): Account { id, name, type, 3 more }
POST/accounts
Update Account
client.accounts.update(AccountUpdateParams { account_id, id, name, 3 more } params, RequestOptionsoptions?): Account { id, name, type, 3 more }
PUT/accounts/{account_id}
Delete a specific account
client.accounts.delete(AccountDeleteParams { account_id } params, RequestOptionsoptions?): AccountDeleteResponse { id } | null
DELETE/accounts/{account_id}
AccountsAccount Organizations
AccountsAccount Profile
AccountsMembers
List Members
client.accounts.members.list(MemberListParams { account_id, direction, order, 3 more } params, RequestOptionsoptions?): V4PagePaginationArray<Member { id, email, policies, 3 more } >
GET/accounts/{account_id}/members
Member Details
client.accounts.members.get(stringmemberID, MemberGetParams { account_id } params, RequestOptionsoptions?): Member { id, email, policies, 3 more }
GET/accounts/{account_id}/members/{member_id}
Add Member
client.accounts.members.create(MemberCreateParamsparams, RequestOptionsoptions?): Member { id, email, policies, 3 more }
POST/accounts/{account_id}/members
Update Member
client.accounts.members.update(stringmemberID, MemberUpdateParamsparams, RequestOptionsoptions?): Member { id, email, policies, 3 more }
PUT/accounts/{account_id}/members/{member_id}
Remove Member
client.accounts.members.delete(stringmemberID, MemberDeleteParams { account_id } params, RequestOptionsoptions?): MemberDeleteResponse { id } | null
DELETE/accounts/{account_id}/members/{member_id}
AccountsRoles
List Roles
Deprecated
client.accounts.roles.list(RoleListParams { account_id, page, per_page } params, RequestOptionsoptions?): V4PagePaginationArray<Role { id, description, name, permissions } >
GET/accounts/{account_id}/roles
Role Details
Deprecated
client.accounts.roles.get(stringroleID, RoleGetParams { account_id } params, RequestOptionsoptions?): Role { id, description, name, permissions }
GET/accounts/{account_id}/roles/{role_id}
AccountsSubscriptions
List Subscriptions
client.accounts.subscriptions.get(SubscriptionGetParams { account_id, zone_id } params?, RequestOptionsoptions?): SinglePage<Subscription { id, currency, current_period_end, 5 more } >
GET/{accounts_or_zones}/{account_or_zone_id}/subscriptions
Get Subscription
client.accounts.subscriptions.getByIdentifier(stringsubscriptionIdentifier, SubscriptionGetByIdentifierParams { account_id } params, RequestOptionsoptions?): Subscription { id, currency, current_period_end, 5 more }
GET/accounts/{account_id}/subscriptions/{subscription_identifier}
Create Subscription
client.accounts.subscriptions.create(SubscriptionCreateParams { account_id, zone_id, frequency, rate_plan } params, RequestOptionsoptions?): Subscription { id, currency, current_period_end, 5 more }
POST/{accounts_or_zones}/{account_or_zone_id}/subscriptions
Update Subscription
client.accounts.subscriptions.update(stringsubscriptionIdentifier, SubscriptionUpdateParams { account_id, frequency, rate_plan } params, RequestOptionsoptions?): Subscription { id, currency, current_period_end, 5 more }
PUT/accounts/{account_id}/subscriptions/{subscription_identifier}
Delete Subscription
client.accounts.subscriptions.delete(stringsubscriptionIdentifier, SubscriptionDeleteParams { account_id } params, RequestOptionsoptions?): SubscriptionDeleteResponse { subscription_id }
DELETE/accounts/{account_id}/subscriptions/{subscription_identifier}
Cancel Delayed Downgrade
client.accounts.subscriptions.cancelDowngrade(SubscriptionCancelDowngradeParams { account_id, subscription_ids } params, RequestOptionsoptions?): SubscriptionCancelDowngradeResponse
POST/accounts/{account_id}/subscriptions/cancel-downgrade
AccountsSubscriptionsCancel Reason
Create Cancel Reason
client.accounts.subscriptions.cancelReason.create(stringsubscriptionIdentifier, CancelReasonCreateParams { account_id, other, reason_code } params, RequestOptionsoptions?): CancelReasonCreateResponse { id, other, reason_code, 2 more }
POST/accounts/{account_id}/subscriptions/{subscription_identifier}/cancel-reason
Get Cancel Reason
client.accounts.subscriptions.cancelReason.get(stringsubscriptionIdentifier, CancelReasonGetParams { account_id } params, RequestOptionsoptions?): CancelReasonGetResponse { id, other, reason_code, 2 more }
GET/accounts/{account_id}/subscriptions/{subscription_identifier}/cancel-reason
AccountsSubscriptionsActions
Append Subscription Action
client.accounts.subscriptions.actions.append(stringsubscriptionIdentifier, ActionAppendParams { account_id, frequency, rate_plan } params, RequestOptionsoptions?): Subscription { id, currency, current_period_end, 5 more }
POST/accounts/{account_id}/subscriptions/{subscription_identifier}/action/append
AccountsSubscriptionsBulk
Create Subscriptions
client.accounts.subscriptions.bulk.create(BulkCreateParams { account_id, idemp_key, coupon_code, 3 more } params, RequestOptionsoptions?): BulkCreateResponse | null
POST/accounts/{account_id}/bulk/subscriptions
AccountsTokens
List Tokens
client.accounts.tokens.list(TokenListParams { account_id, direction, include_expired, 2 more } params, RequestOptionsoptions?): V4PagePaginationArray<Token { id, condition, expires_on, 7 more } >
GET/accounts/{account_id}/tokens
Token Details
client.accounts.tokens.get(stringtokenID, TokenGetParams { account_id } params, RequestOptionsoptions?): Token { id, condition, expires_on, 7 more }
GET/accounts/{account_id}/tokens/{token_id}
Create Token
client.accounts.tokens.create(TokenCreateParams { account_id, name, policies, 3 more } params, RequestOptionsoptions?): TokenCreateResponse { id, condition, expires_on, 8 more }
POST/accounts/{account_id}/tokens
Update Token
client.accounts.tokens.update(stringtokenID, TokenUpdateParams { account_id, name, policies, 4 more } params, RequestOptionsoptions?): Token { id, condition, expires_on, 7 more }
PUT/accounts/{account_id}/tokens/{token_id}
Delete Token
client.accounts.tokens.delete(stringtokenID, TokenDeleteParams { account_id } params, RequestOptionsoptions?): TokenDeleteResponse { id } | null
DELETE/accounts/{account_id}/tokens/{token_id}
Verify Token
client.accounts.tokens.verify(TokenVerifyParams { account_id } params, RequestOptionsoptions?): TokenVerifyResponse { id, status, expires_on, not_before }
GET/accounts/{account_id}/tokens/verify
AccountsTokensPermission Groups
List Permission Groups
client.accounts.tokens.permissionGroups.list(PermissionGroupListParams { account_id, name, scope } params, RequestOptionsoptions?): SinglePage<PermissionGroupListResponse { id, category, name, scopes } >
GET/accounts/{account_id}/tokens/permission_groups
List Permission Groups
client.accounts.tokens.permissionGroups.get(PermissionGroupGetParams { account_id, name, scope } params, RequestOptionsoptions?): PermissionGroupGetResponse { id, category, name, scopes }
GET/accounts/{account_id}/tokens/permission_groups
AccountsTokensValue
Roll Token
client.accounts.tokens.value.update(stringtokenID, ValueUpdateParams { account_id, body } params, RequestOptionsoptions?): TokenValue
PUT/accounts/{account_id}/tokens/{token_id}/value
AccountsLogs
AccountsLogsAudit
Get account audit logs (Version 2)
client.accounts.logs.audit.list(AuditListParams { account_id, before, since, 26 more } params, RequestOptionsoptions?): CursorPaginationAfter<AuditListResponse { id, account, action, 4 more } >
GET/accounts/{account_id}/logs/audit
Get resource change history from an account audit log entry (Version 2)
client.accounts.logs.audit.history(stringid, AuditHistoryParams { account_id, action_time, before, 4 more } params, RequestOptionsoptions?): AuditHistoryResponse { id, account, action, 4 more }
GET/accounts/{account_id}/logs/audit/{id}/history
List account audit log product categories (Version 2)
client.accounts.logs.audit.productCategories(AuditProductCategoriesParams { account_id } params, RequestOptionsoptions?): SinglePage<AuditProductCategoriesResponse { label, products, value } >
GET/accounts/{account_id}/logs/audit/product_categories
AccountsSpeed Settings
AccountsSpeed SettingsTransformations
List Image Resizing configurations for account
client.accounts.speedSettings.transformations.get(TransformationGetParams { account_id } params, RequestOptionsoptions?): SinglePage<TransformationsConfig { id, cf_zone_tag, editable, 2 more } >
GET/accounts/{account_id}/settings/transformations
AccountsPayment Methods
List Payment Methods
client.accounts.paymentMethods.list(PaymentMethodListParams { account_id, page, per_page } params, RequestOptionsoptions?): V4PagePaginationArray<PaymentMethodListResponse { id, address, address2, 22 more } >
GET/accounts/{account_id}/payment-methods
Create Payment Method
client.accounts.paymentMethods.create(PaymentMethodCreateParams { account_id, address, address2, 20 more } params, RequestOptionsoptions?): PaymentMethodCreateResponse { id, address, address2, 22 more }
POST/accounts/{account_id}/payment-methods
Get Payment Method
client.accounts.paymentMethods.get(stringpaymentMethodID, PaymentMethodGetParams { account_id } params, RequestOptionsoptions?): PaymentMethodGetResponse { id, address, address2, 22 more }
GET/accounts/{account_id}/payment-methods/{payment_method_id}
Update Payment Method
client.accounts.paymentMethods.update(stringpaymentMethodID, PaymentMethodUpdateParams { account_id, address, address2, 20 more } params, RequestOptionsoptions?): PaymentMethodUpdateResponse { id, address, address2, 22 more }
PUT/accounts/{account_id}/payment-methods/{payment_method_id}
Delete Payment Method
client.accounts.paymentMethods.delete(stringpaymentMethodID, PaymentMethodDeleteParams { account_id } params, RequestOptionsoptions?): PaymentMethodDeleteResponse
DELETE/accounts/{account_id}/payment-methods/{payment_method_id}
Set Default Payment Method
client.accounts.paymentMethods.setAsDefault(stringpaymentMethodID, PaymentMethodSetAsDefaultParams { account_id } params, RequestOptionsoptions?): PaymentMethodSetAsDefaultResponse
POST/accounts/{account_id}/payment-methods/{payment_method_id}/set-as-default
AccountsPay Invoice
Pay Invoice
client.accounts.payInvoice.create(PayInvoiceCreateParams { account_id, invoice_id, payment_method_id, validate_payment_method } params, RequestOptionsoptions?): PayInvoiceCreateResponse { client_secret }
POST/accounts/{account_id}/pay-invoice
AccountsPay Bad Debt
Pay Bad Debt
client.accounts.payBadDebt.create(PayBadDebtCreateParams { account_id, payment_method_id } params, RequestOptionsoptions?): PayBadDebtCreateResponse { client_secret }
POST/accounts/{account_id}/pay-bad-debt
AccountsReceipts
Get Receipt PDF
client.accounts.receipts.pdf(stringreceiptID, ReceiptPDFParams { account_id, doctype } params, RequestOptionsoptions?): Response
GET/accounts/{account_id}/receipts/{receipt_id}/pdf
AccountsInvoices
Toggle PDF Invoices
client.accounts.invoices.edit(InvoiceEditParams { account_id, toggle } params, RequestOptionsoptions?): InvoiceEditResponse
PATCH/accounts/{account_id}/invoices
AccountsClient Secret
Create Setup Intent
client.accounts.clientSecret.create(ClientSecretCreateParams { account_id } params, RequestOptionsoptions?): ClientSecretCreateResponse { client_secret }
POST/accounts/{account_id}/client-secret