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.
GET
/V1/invoices
curl \
--request GET 'https://magento2.winkelstraat.mac/rest/all/V1/invoices'
Response examples (200)
{
"items": [
{
"base_currency_code": "string",
"base_discount_amount": 42.0,
"base_grand_total": 42.0,
"base_discount_tax_compensation_amount": 42.0,
"base_shipping_amount": 42.0,
"base_shipping_discount_tax_compensation_amnt": 42.0,
"base_shipping_incl_tax": 42.0,
"base_shipping_tax_amount": 42.0,
"base_subtotal": 42.0,
"base_subtotal_incl_tax": 42.0,
"base_tax_amount": 42.0,
"base_total_refunded": 42.0,
"base_to_global_rate": 42.0,
"base_to_order_rate": 42.0,
"billing_address_id": 42,
"can_void_flag": 42,
"created_at": "string",
"discount_amount": 42.0,
"discount_description": "string",
"email_sent": 42,
"entity_id": 42,
"global_currency_code": "string",
"grand_total": 42.0,
"discount_tax_compensation_amount": 42.0,
"increment_id": "string",
"is_used_for_refund": 42,
"order_currency_code": "string",
"order_id": 42,
"shipping_address_id": 42,
"shipping_amount": 42.0,
"shipping_discount_tax_compensation_amount": 42.0,
"shipping_incl_tax": 42.0,
"shipping_tax_amount": 42.0,
"state": 42,
"store_currency_code": "string",
"store_id": 42,
"store_to_base_rate": 42.0,
"store_to_order_rate": 42.0,
"subtotal": 42.0,
"subtotal_incl_tax": 42.0,
"tax_amount": 42.0,
"total_qty": 42.0,
"transaction_id": "string",
"updated_at": "string",
"items": [
{
"additional_data": "string",
"base_cost": 42.0,
"base_discount_amount": 42.0,
"base_discount_tax_compensation_amount": 42.0,
"base_price": 42.0,
"base_price_incl_tax": 42.0,
"base_row_total": 42.0,
"base_row_total_incl_tax": 42.0,
"base_tax_amount": 42.0,
"description": "string",
"discount_amount": 42.0,
"entity_id": 42,
"discount_tax_compensation_amount": 42.0,
"name": "string",
"parent_id": 42,
"price": 42.0,
"price_incl_tax": 42.0,
"product_id": 42,
"row_total": 42.0,
"row_total_incl_tax": 42.0,
"sku": "string",
"tax_amount": 42.0,
"extension_attributes": {
"list_price": 42.0,
"size": "string",
"color": "string",
"merchant_product_reference": "string",
"category_code": "string",
"image": "string",
"mpn": "string",
"msrp": 42.0,
"manufacturer_code": "string",
"manufacturer_name": "string",
"merchant_code": "string",
"merchant_name": "string",
"merchant_city": "string",
"merchant_commission_percentage": 42.0,
"merchant_deficiency_percentage": 42.0,
"merchant_handling_fee": 42.0,
"is_sale": true,
"return_item_fee": 42.0,
"base_return_item_fee": 42.0,
"is_outlet": true
},
"order_item_id": 42,
"qty": 42.0
}
],
"comments": [
{
"is_customer_notified": 42,
"parent_id": 42,
"extension_attributes": {},
"comment": "string",
"is_visible_on_front": 42,
"created_at": "string",
"entity_id": 42
}
],
"extension_attributes": {
"base_customer_balance_amount": 42.0,
"customer_balance_amount": 42.0,
"base_gift_cards_amount": 42.0,
"gift_cards_amount": 42.0,
"gw_base_price": "string",
"gw_price": "string",
"gw_items_base_price": "string",
"gw_items_price": "string",
"gw_card_base_price": "string",
"gw_card_price": "string",
"gw_base_tax_amount": "string",
"gw_tax_amount": "string",
"gw_items_base_tax_amount": "string",
"gw_items_tax_amount": "string",
"gw_card_base_tax_amount": "string",
"gw_card_tax_amount": "string",
"company_id": 42
}
}
],
"search_criteria": {
"filter_groups": [
{
"filters": [
{
"field": "string",
"value": "string",
"condition_type": "string"
}
]
}
],
"sort_orders": [
{
"field": "string",
"direction": "string"
}
],
"page_size": 42,
"current_page": 42
},
"total_count": 42
}
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<items type="array">
<item>
<base-currency-code>string</base-currency-code>
<base-discount-amount type="float">42.0</base-discount-amount>
<base-grand-total type="float">42.0</base-grand-total>
<base-discount-tax-compensation-amount type="float">42.0</base-discount-tax-compensation-amount>
<base-shipping-amount type="float">42.0</base-shipping-amount>
<base-shipping-discount-tax-compensation-amnt type="float">42.0</base-shipping-discount-tax-compensation-amnt>
<base-shipping-incl-tax type="float">42.0</base-shipping-incl-tax>
<base-shipping-tax-amount type="float">42.0</base-shipping-tax-amount>
<base-subtotal type="float">42.0</base-subtotal>
<base-subtotal-incl-tax type="float">42.0</base-subtotal-incl-tax>
<base-tax-amount type="float">42.0</base-tax-amount>
<base-total-refunded type="float">42.0</base-total-refunded>
<base-to-global-rate type="float">42.0</base-to-global-rate>
<base-to-order-rate type="float">42.0</base-to-order-rate>
<billing-address-id type="integer">42</billing-address-id>
<can-void-flag type="integer">42</can-void-flag>
<created-at>string</created-at>
<discount-amount type="float">42.0</discount-amount>
<discount-description>string</discount-description>
<email-sent type="integer">42</email-sent>
<entity-id type="integer">42</entity-id>
<global-currency-code>string</global-currency-code>
<grand-total type="float">42.0</grand-total>
<discount-tax-compensation-amount type="float">42.0</discount-tax-compensation-amount>
<increment-id>string</increment-id>
<is-used-for-refund type="integer">42</is-used-for-refund>
<order-currency-code>string</order-currency-code>
<order-id type="integer">42</order-id>
<shipping-address-id type="integer">42</shipping-address-id>
<shipping-amount type="float">42.0</shipping-amount>
<shipping-discount-tax-compensation-amount type="float">42.0</shipping-discount-tax-compensation-amount>
<shipping-incl-tax type="float">42.0</shipping-incl-tax>
<shipping-tax-amount type="float">42.0</shipping-tax-amount>
<state type="integer">42</state>
<store-currency-code>string</store-currency-code>
<store-id type="integer">42</store-id>
<store-to-base-rate type="float">42.0</store-to-base-rate>
<store-to-order-rate type="float">42.0</store-to-order-rate>
<subtotal type="float">42.0</subtotal>
<subtotal-incl-tax type="float">42.0</subtotal-incl-tax>
<tax-amount type="float">42.0</tax-amount>
<total-qty type="float">42.0</total-qty>
<transaction-id>string</transaction-id>
<updated-at>string</updated-at>
<items type="array">
<item>
<additional-data>string</additional-data>
<base-cost type="float">42.0</base-cost>
<base-discount-amount type="float">42.0</base-discount-amount>
<base-discount-tax-compensation-amount type="float">42.0</base-discount-tax-compensation-amount>
<base-price type="float">42.0</base-price>
<base-price-incl-tax type="float">42.0</base-price-incl-tax>
<base-row-total type="float">42.0</base-row-total>
<base-row-total-incl-tax type="float">42.0</base-row-total-incl-tax>
<base-tax-amount type="float">42.0</base-tax-amount>
<description>string</description>
<discount-amount type="float">42.0</discount-amount>
<entity-id type="integer">42</entity-id>
<discount-tax-compensation-amount type="float">42.0</discount-tax-compensation-amount>
<name>string</name>
<parent-id type="integer">42</parent-id>
<price type="float">42.0</price>
<price-incl-tax type="float">42.0</price-incl-tax>
<product-id type="integer">42</product-id>
<row-total type="float">42.0</row-total>
<row-total-incl-tax type="float">42.0</row-total-incl-tax>
<sku>string</sku>
<tax-amount type="float">42.0</tax-amount>
<extension-attributes>
<list-price type="float">42.0</list-price>
<size>string</size>
<color>string</color>
<merchant-product-reference>string</merchant-product-reference>
<category-code>string</category-code>
<image>string</image>
<mpn>string</mpn>
<msrp type="float">42.0</msrp>
<manufacturer-code>string</manufacturer-code>
<manufacturer-name>string</manufacturer-name>
<merchant-code>string</merchant-code>
<merchant-name>string</merchant-name>
<merchant-city>string</merchant-city>
<merchant-commission-percentage type="float">42.0</merchant-commission-percentage>
<merchant-deficiency-percentage type="float">42.0</merchant-deficiency-percentage>
<merchant-handling-fee type="float">42.0</merchant-handling-fee>
<is-sale type="boolean">true</is-sale>
<return-item-fee type="float">42.0</return-item-fee>
<base-return-item-fee type="float">42.0</base-return-item-fee>
<is-outlet type="boolean">true</is-outlet>
</extension-attributes>
<order-item-id type="integer">42</order-item-id>
<qty type="float">42.0</qty>
</item>
</items>
<comments type="array">
<comment>
<is-customer-notified type="integer">42</is-customer-notified>
<parent-id type="integer">42</parent-id>
<extension-attributes>
</extension-attributes>
<comment>string</comment>
<is-visible-on-front type="integer">42</is-visible-on-front>
<created-at>string</created-at>
<entity-id type="integer">42</entity-id>
</comment>
</comments>
<extension-attributes>
<base-customer-balance-amount type="float">42.0</base-customer-balance-amount>
<customer-balance-amount type="float">42.0</customer-balance-amount>
<base-gift-cards-amount type="float">42.0</base-gift-cards-amount>
<gift-cards-amount type="float">42.0</gift-cards-amount>
<gw-base-price>string</gw-base-price>
<gw-price>string</gw-price>
<gw-items-base-price>string</gw-items-base-price>
<gw-items-price>string</gw-items-price>
<gw-card-base-price>string</gw-card-base-price>
<gw-card-price>string</gw-card-price>
<gw-base-tax-amount>string</gw-base-tax-amount>
<gw-tax-amount>string</gw-tax-amount>
<gw-items-base-tax-amount>string</gw-items-base-tax-amount>
<gw-items-tax-amount>string</gw-items-tax-amount>
<gw-card-base-tax-amount>string</gw-card-base-tax-amount>
<gw-card-tax-amount>string</gw-card-tax-amount>
<company-id type="integer">42</company-id>
</extension-attributes>
</item>
</items>
<search-criteria>
<filter-groups type="array">
<filter-group>
<filters type="array">
<filter>
<field>string</field>
<value>string</value>
<condition-type>string</condition-type>
</filter>
</filters>
</filter-group>
</filter-groups>
<sort-orders type="array">
<sort-order>
<field>string</field>
<direction>string</direction>
</sort-order>
</sort-orders>
<page-size type="integer">42</page-size>
<current-page type="integer">42</current-page>
</search-criteria>
<total-count type="integer">42</total-count>
</root>
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (401)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>