Skip to main content

billing_accounts

Creates, updates, deletes, gets or lists a billing_accounts resource.

Overview​

Namebilling_accounts
TypeResource
Idovh.telephony.billing_accounts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
allowed_outplanobjectAllowed outplan (wire: allowedOutplan)
billing_accountstringName of the billing account (wire: billingAccount)
credit_thresholdobjectAllowed threshold credit (wire: creditThreshold)
current_outplanobjectCurrent outplan (wire: currentOutplan)
descriptionstringDescription of the billing account
has_special_numbersbooleanCheck if the billing account contains at least one special number (wire: hasSpecialNumbers)
hidden_external_numberbooleanHide called numbers in end-of-month call details CSV (wire: hiddenExternalNumber)
iamobjectIAM resource metadata
override_displayed_numberbooleanOverride number display for calls between services of your billing account (wire: overrideDisplayedNumber)
security_depositobjectSecurity deposit amount (wire: securityDeposit)
statusstringCurrent status of billing account (closed, deleted, enabled, expired)
trustedbooleanIs the billing account trusted

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_accountGet a billing account
listselectiam_tags, x_pagination_modeList billing accounts
updateupdatebilling_accountUpdate a billing account
deletedeletebilling_account, reasondetailsTerminate a billing account
reseller_panel_generate_passwordexecGenerate a reseller panel password
set_default_sip_domainexeccountry, domain, typeSet the default SIP domain
can_transfer_security_depositexecbillingAccount, billingAccountDestinationCheck a security deposit transfer
cancel_terminationexecbillingAccountCancel the billing account termination
change_contactexecbillingAccountChange service contacts. Starts a procedure to change the admin, tech or billing contact of the service.
transfer_security_depositexecbillingAccount, amount, billingAccountDestinationTransfer the security deposit

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
billingAccountstringThe name of your billingAccount
billing_accountstringThe name of your billingAccount (wire: billingAccount)
reasonstringTermination reason
detailsstringTermination reason details
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a billing account

SELECT
allowed_outplan,
billing_account,
credit_threshold,
current_outplan,
description,
has_special_numbers,
hidden_external_number,
iam,
override_displayed_number,
security_deposit,
status,
trusted
FROM ovh.telephony.billing_accounts
WHERE billing_account = '{{ billing_account }}' -- required
;

UPDATE examples​

Update a billing account

UPDATE ovh.telephony.billing_accounts
SET
credit_threshold = '{{ credit_threshold }}',
description = '{{ description }}',
hidden_external_number = {{ hidden_external_number }},
override_displayed_number = {{ override_displayed_number }}
WHERE
billing_account = '{{ billing_account }}' --required;

DELETE examples​

Terminate a billing account

DELETE FROM ovh.telephony.billing_accounts
WHERE billing_account = '{{ billing_account }}' --required
AND reason = '{{ reason }}' --required
AND details = '{{ details }}'
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Generate a reseller panel password

EXEC ovh.telephony.billing_accounts.reseller_panel_generate_password
;