Skip to main content

corrective_invoices

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

Overview​

Namecorrective_invoices
TypeResource
Idovh.me.corrective_invoices

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
corrected_invoice_idstring (wire: correctedInvoiceId)
corrective_invoice_idstring (wire: correctiveInvoiceId)
e_invoicing_idstring (wire: eInvoicingId)
order_idinteger (wire: orderId)
categorystringTypes of plans (autorenew, earlyrenewal, purchase, purchase-cloud, purchase-servers, purchase-telecom, purchase-web)
datestring (date-time)
e_invoicing_statusstringList of available eInvoicing Status types (accepted, error, ignored, invalid, new, ok, processing, readyToSubmit, rejected, submitted) (wire: eInvoicingStatus)
passwordstring
pdf_urlstring (wire: pdfUrl)
price_with_taxobjectPrice with its currency and textual representation (wire: priceWithTax)
price_without_taxobjectPrice with its currency and textual representation (wire: priceWithoutTax)
taxobjectPrice with its currency and textual representation
urlstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcorrective_invoice_idGet this object properties
listselectcategory, date.from, date.to, order_id, x_pagination_modeList of all the correctiveInvoice the logged account has

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"}})
corrective_invoice_idstring (wire: correctiveInvoiceId)
categorystringFilter the value of category property (=)
date.fromstring (date-time)Filter the value of date property (>=)
date.tostring (date-time)Filter the value of date property (<=)
order_idintegerFilter the value of orderId property (=) (wire: orderId)
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 this object properties

SELECT
corrected_invoice_id,
corrective_invoice_id,
e_invoicing_id,
order_id,
category,
date,
e_invoicing_status,
password,
pdf_url,
price_with_tax,
price_without_tax,
tax,
url
FROM ovh.me.corrective_invoices
WHERE corrective_invoice_id = '{{ corrective_invoice_id }}' -- required
;