Skip to main content

debt_accounts

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

Overview​

Namedebt_accounts
TypeResource
Idovh.me.debt_accounts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
activeboolean
due_amountobjectAmount of debts the account has (wire: dueAmount)
pending_amountobjectAmount currently being processed (wire: pendingAmount)
todo_amountobjectReserved amount awaiting payment (wire: todoAmount)
unmatured_amountobjectUnmatured amount for deferred payment term (wire: unmaturedAmount)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGet this object properties
payexecCreate an order in order to pay all your due debts

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"}})

SELECT examples​

Get this object properties

SELECT
active,
due_amount,
pending_amount,
todo_amount,
unmatured_amount
FROM ovh.me.debt_accounts
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Create an order in order to pay all your due debts

EXEC ovh.me.debt_accounts.pay
;