# Invoices Lists invoices that match specified search criteria. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See https://developer.adobe.com/commerce/webapi/rest/attributes#InvoiceRepositoryInterface to determine which call to use to get detailed information about all attributes for an object. ## Documentation Lists invoices that match specified search criteria. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See https://developer.adobe.com/commerce/webapi/rest/attributes#InvoiceRepositoryInterface to determine which call to use to get detailed information about all attributes for an object. - Catalog: `Magento` - Schema: `Sales` - Primary Keys: `entity_id` This is a read-only table function. The Magento API may not support changing the data or the Invantive UniversalSQL driver for Magento does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Magento API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `Invoices`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `searchCriteria[currentPage]` | `` | ☐ | | Current page. | | `searchCriteria[filterGroups][0][filters][0][conditionType]` | `` | ☐ | | Condition type | | `searchCriteria[filterGroups][0][filters][0][field]` | `` | ☐ | | Field | | `searchCriteria[filterGroups][0][filters][0][value]` | `` | ☐ | | Value | | `searchCriteria[pageSize]` | `` | ☐ | | Page size. | | `searchCriteria[sortOrders][0][direction]` | `` | ☐ | | Sorting direction. | | `searchCriteria[sortOrders][0][field]` | `` | ☐ | | Sorting field. | ## Columns of Table Function The columns of the table function `Invoices` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `base_currency_code` | `varchar2` | | ☐ | Base currency code. | | `base_discount_amount` | `decimal` | | ☐ | Base discount amount. | | `base_discount_tax_compensation_amount` | `decimal` | | ☐ | Base discount tax compensation amount. | | `base_grand_total` | `decimal` | | ☐ | Base grand total. | | `base_shipping_amount` | `decimal` | | ☐ | Base shipping amount. | | `base_shipping_discount_tax_compensation_amnt` | `decimal` | | ☐ | Base shipping discount tax compensation amount. | | `base_shipping_incl_tax` | `decimal` | | ☐ | Base shipping including tax. | | `base_shipping_tax_amount` | `decimal` | | ☐ | Base shipping tax amount. | | `base_subtotal_incl_tax` | `decimal` | | ☐ | Base subtotal including tax. | | `base_subtotal` | `decimal` | | ☐ | Base subtotal. | | `base_tax_amount` | `decimal` | | ☐ | Base tax amount. | | `base_to_global_rate` | `decimal` | | ☐ | Base-to-global rate. | | `base_to_order_rate` | `decimal` | | ☐ | Base-to-order rate. | | `base_total_refunded` | `decimal` | | ☐ | Base total refunded. | | `billing_address_id` | `int64` | | ☐ | Billing address ID. | | `can_void_flag` | `int64` | | ☐ | Can void flag value. | | `created_at` | `varchar2` | | ☐ | Created-at timestamp. | | `discount_amount` | `decimal` | | ☐ | Discount amount. | | `discount_description` | `varchar2` | | ☐ | Discount description. | | `discount_tax_compensation_amount` | `decimal` | | ☐ | Discount tax compensation amount. | | `email_sent` | `int64` | | ☐ | Email-sent flag value. | | `entity_id` | `int64` | | ☐ | Invoice ID. | | `extension_attributes` | `varchar2` | | ☐ | The JSON text of the nested object. | | `global_currency_code` | `varchar2` | | ☐ | Global currency code. | | `grand_total` | `decimal` | | ☐ | Grand total. | | `increment_id` | `varchar2` | | ☐ | Increment ID. | | `is_used_for_refund` | `int64` | | ☐ | Is-used-for-refund flag value. | | `order_currency_code` | `varchar2` | | ☐ | Order currency code. | | `order_id` | `int64` | | ☐ | Order ID. | | `shipping_address_id` | `int64` | | ☐ | Shipping address ID. | | `shipping_amount` | `decimal` | | ☐ | Shipping amount. | | `shipping_discount_tax_compensation_amount` | `decimal` | | ☐ | Shipping discount tax compensation amount. | | `shipping_incl_tax` | `decimal` | | ☐ | Shipping including tax. | | `shipping_tax_amount` | `decimal` | | ☐ | Shipping tax amount. | | `state` | `int64` | | ☐ | State. | | `store_currency_code` | `varchar2` | | ☐ | Store currency code. | | `store_id` | `int64` | | ☐ | Store ID. | | `store_to_base_rate` | `decimal` | | ☐ | Store-to-base rate. | | `store_to_order_rate` | `decimal` | | ☐ | Store-to-order rate. | | `subtotal_incl_tax` | `decimal` | | ☐ | Subtotal including tax. | | `subtotal` | `decimal` | | ☐ | Subtotal. | | `tax_amount` | `decimal` | | ☐ | Tax amount. | | `total_qty` | `decimal` | | ☐ | Total quantity. | | `transaction_id` | `varchar2` | | ☐ | Transaction ID. | | `updated_at` | `varchar2` | | ☐ | Updated-at timestamp. |