Skip to main content

deposit_paid_bills_debts

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

Overview​

Namedeposit_paid_bills_debts
TypeResource
Idovh.me.deposit_paid_bills_debts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
debt_idinteger (wire: debtId)
order_idintegerThe order the debt relates to (wire: orderId)
amountobjectOriginal amount of the debt
datestring (date-time)Date the debt was created on
due_amountobjectAmount you still owe for that debt (wire: dueAmount)
due_datestring (date-time)If specified, the debt will not be recovered before that date (wire: dueDate)
pending_amountobjectAmount currently being processed (wire: pendingAmount)
statusstringStatus of a debt (PAID, REFUNDED, TO_BE_PAID, UNMATURED, UNPAID, WRITE_OFF)
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
getselectbill_id, deposit_idGet this object properties
payexecbillId, depositIdCreate an order in order to pay this order's debt

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"}})
billIdstring
bill_idstring (wire: billId)
depositIdstring
deposit_idstring (wire: depositId)

SELECT examples​

Get this object properties

SELECT
debt_id,
order_id,
amount,
date,
due_amount,
due_date,
pending_amount,
status,
todo_amount,
unmatured_amount
FROM ovh.me.deposit_paid_bills_debts
WHERE bill_id = '{{ bill_id }}' -- required
AND deposit_id = '{{ deposit_id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Create an order in order to pay this order's debt

EXEC ovh.me.deposit_paid_bills_debts.pay
@billId='{{ billId }}' --required,
@depositId='{{ depositId }}' --required
;