deposits
Creates, updates, deletes, gets or lists a deposits resource.
Overview​
| Name | deposits |
| Type | Resource |
| Id | ovh.me.deposits |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
deposit_id | string | (wire: depositId) |
order_id | integer | (wire: orderId) |
amount | object | Price with its currency and textual representation |
date | string (date-time) | |
password | string | |
payment_info | object | The payment infos linked to this debt entry (wire: paymentInfo) |
pdf_url | string | (wire: pdfUrl) |
url | string |
Details about a deposit
| Name | Datatype | Description |
|---|---|---|
deposit_id | string | (wire: depositId) |
order_id | integer | (wire: orderId) |
amount | object | Price with its currency and textual representation |
date | string (date-time) | |
password | string | |
payment_info | object | The payment infos linked to this debt entry (wire: paymentInfo) |
pdf_url | string | (wire: pdfUrl) |
url | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | deposit_id | Get this object properties | |
list | select | date.from, date.to, order_id, x_pagination_mode | List of all the deposits made to your prepaid account or debt account |
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"}}) |
deposit_id | string | (wire: depositId) |
date.from | string (date-time) | Filter the value of date property (>=) |
date.to | string (date-time) | Filter the value of date property (<=) |
order_id | integer | Filter the value of orderId property (=) (wire: orderId) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get this object properties
SELECT
deposit_id,
order_id,
amount,
date,
password,
payment_info,
pdf_url,
url
FROM ovh.me.deposits
WHERE deposit_id = '{{ deposit_id }}' -- required
;
List of all the deposits made to your prepaid account or debt account
SELECT
deposit_id,
order_id,
amount,
date,
password,
payment_info,
pdf_url,
url
FROM ovh.me.deposits
WHERE date.from = '{{ date.from }}'
AND date.to = '{{ date.to }}'
AND order_id = '{{ order_id }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;