deposit_paid_bills_debts
Creates, updates, deletes, gets or lists a deposit_paid_bills_debts resource.
Overview​
| Name | deposit_paid_bills_debts |
| Type | Resource |
| Id | ovh.me.deposit_paid_bills_debts |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
debt_id | integer | (wire: debtId) |
order_id | integer | The order the debt relates to (wire: orderId) |
amount | object | Original amount of the debt |
date | string (date-time) | Date the debt was created on |
due_amount | object | Amount you still owe for that debt (wire: dueAmount) |
due_date | string (date-time) | If specified, the debt will not be recovered before that date (wire: dueDate) |
pending_amount | object | Amount currently being processed (wire: pendingAmount) |
status | string | Status of a debt (PAID, REFUNDED, TO_BE_PAID, UNMATURED, UNPAID, WRITE_OFF) |
todo_amount | object | Reserved amount awaiting payment (wire: todoAmount) |
unmatured_amount | object | Unmatured amount for deferred payment term (wire: unmaturedAmount) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | bill_id, deposit_id | Get this object properties | |
pay | exec | billId, depositId | Create 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
billId | string | |
bill_id | string | (wire: billId) |
depositId | string | |
deposit_id | string | (wire: depositId) |
SELECT examples​
- get
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.
- pay
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
;