---
title: "Orders (Magento)"
description: "Orders"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/magento/Magento.Sales.Orders
original: https://documentation.invantive.eu/en/datamodels/magento/Magento.Sales.Orders
updated: 2026-11-03T19:00:58Z
license: https://documentation.invantive.eu/en/
---

# Orders: Magento Orders

`read only` `REST`

- Catalog: `Magento`
- Schema: `Sales`
- Primary Keys: `entity_id`
- Label: Orders

Lists orders 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#OrderRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.

Can only retrieve data.

## Summary

Lists orders 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#OrderRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.

## API Source

- Endpoint: `/V1/orders`
- Operation: `get /V1/orders`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 73 |
| Full scan rows per minute | 114,833 |
| Point query rows per minute | 836 |
| Write rows per minute | 599 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | 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. |

## Table Columns

The columns of the table `Orders` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `adjustment_negative` | `decimal` | Adjustment Negative | [ ] | filters on the platform, writable, `adjustment_negative` | Negative adjustment value. |
| `adjustment_positive` | `decimal` | Adjustment Positive | [ ] | filters on the platform, writable, `adjustment_positive` | Positive adjustment value. |
| `applied_rule_ids` | `varchar2` | Applied Rule IDs | [ ] | filters on the platform, writable, `applied_rule_ids` | Applied rule IDs. |
| `base_adjustment_negative` | `decimal` | Base Adjustment Negative | [ ] | filters on the platform, writable, `base_adjustment_negative` | Base negative adjustment value. |
| `base_adjustment_positive` | `decimal` | Base Adjustment Positive | [ ] | filters on the platform, writable, `base_adjustment_positive` | Base positive adjustment value. |
| `base_currency_code` | `varchar2` | Base Currency Code | [ ] | filters on the platform, writable, `base_currency_code` | Base currency code. |
| `base_discount_amount` | `decimal` | Base Discount Amount | [ ] | filters on the platform, writable, `base_discount_amount` | Base discount amount. |
| `base_discount_canceled` | `decimal` | Base Discount Canceled | [ ] | filters on the platform, writable, `base_discount_canceled` | Base discount canceled. |
| `base_discount_invoiced` | `decimal` | Base Discount Invoiced | [ ] | filters on the platform, writable, `base_discount_invoiced` | Base discount invoiced. |
| `base_discount_refunded` | `decimal` | Base Discount Refunded | [ ] | filters on the platform, writable, `base_discount_refunded` | Base discount refunded. |
| `base_discount_tax_compensation_amount` | `decimal` | Base Discount Tax Compensation Amount | [ ] | filters on the platform, writable, `base_discount_tax_compensation_amount` | Base discount tax compensation amount. |
| `base_discount_tax_compensation_invoiced` | `decimal` | Base Discount Tax Compensation Invoiced | [ ] | filters on the platform, writable, `base_discount_tax_compensation_invoiced` | Base discount tax compensation invoiced. |
| `base_discount_tax_compensation_refunded` | `decimal` | Base Discount Tax Compensation Refunded | [ ] | filters on the platform, writable, `base_discount_tax_compensation_refunded` | Base discount tax compensation refunded. |
| `base_grand_total` | `decimal` | Base Grand Total | [ ] | filters on the platform, writable, `base_grand_total` | Base grand total. |
| `base_shipping_amount` | `decimal` | Base Shipping Amount | [ ] | filters on the platform, writable, `base_shipping_amount` | Base shipping amount. |
| `base_shipping_canceled` | `decimal` | Base Shipping Canceled | [ ] | filters on the platform, writable, `base_shipping_canceled` | Base shipping canceled. |
| `base_shipping_discount_amount` | `decimal` | Base Shipping Discount Amount | [ ] | filters on the platform, writable, `base_shipping_discount_amount` | Base shipping discount amount. |
| `base_shipping_discount_tax_compensation_amnt` | `decimal` | Base Shipping Discount Tax Compensation Amount | [ ] | filters on the platform, writable, `base_shipping_discount_tax_compensation_amnt` | Base shipping discount tax compensation amount. |
| `base_shipping_incl_tax` | `decimal` | Base Shipping Including Tax | [ ] | filters on the platform, writable, `base_shipping_incl_tax` | Base shipping including tax. |
| `base_shipping_invoiced` | `decimal` | Base Shipping Invoiced | [ ] | filters on the platform, writable, `base_shipping_invoiced` | Base shipping invoiced. |
| `base_shipping_refunded` | `decimal` | Base Shipping Refunded | [ ] | filters on the platform, writable, `base_shipping_refunded` | Base shipping refunded. |
| `base_shipping_tax_amount` | `decimal` | Base Shipping Tax Amount | [ ] | filters on the platform, writable, `base_shipping_tax_amount` | Base shipping tax amount. |
| `base_shipping_tax_refunded` | `decimal` | Base Shipping Tax Refunded | [ ] | filters on the platform, writable, `base_shipping_tax_refunded` | Base shipping tax refunded. |
| `base_subtotal` | `decimal` | Base Subtotal | [ ] | filters on the platform, writable, `base_subtotal` | Base subtotal. |
| `base_subtotal_canceled` | `decimal` | Base Subtotal Canceled | [ ] | filters on the platform, writable, `base_subtotal_canceled` | Base subtotal canceled. |
| `base_subtotal_incl_tax` | `decimal` | Base Subtotal Including Tax | [ ] | filters on the platform, writable, `base_subtotal_incl_tax` | Base subtotal including tax. |
| `base_subtotal_invoiced` | `decimal` | Base Subtotal Invoiced | [ ] | filters on the platform, writable, `base_subtotal_invoiced` | Base subtotal invoiced. |
| `base_subtotal_refunded` | `decimal` | Base Subtotal Refunded | [ ] | filters on the platform, writable, `base_subtotal_refunded` | Base subtotal refunded. |
| `base_tax_amount` | `decimal` | Base Tax Amount | [ ] | filters on the platform, writable, `base_tax_amount` | Base tax amount. |
| `base_tax_canceled` | `decimal` | Base Tax Canceled | [ ] | filters on the platform, writable, `base_tax_canceled` | Base tax canceled. |
| `base_tax_invoiced` | `decimal` | Base Tax Invoiced | [ ] | filters on the platform, writable, `base_tax_invoiced` | Base tax invoiced. |
| `base_tax_refunded` | `decimal` | Base Tax Refunded | [ ] | filters on the platform, writable, `base_tax_refunded` | Base tax refunded. |
| `base_to_global_rate` | `decimal` | Base to Global Rate | [ ] | filters on the platform, writable, `base_to_global_rate` | Base-to-global rate. |
| `base_to_order_rate` | `decimal` | Base to Order Rate | [ ] | filters on the platform, writable, `base_to_order_rate` | Base-to-order rate. |
| `base_total_canceled` | `decimal` | Base Total Canceled | [ ] | filters on the platform, writable, `base_total_canceled` | Base total canceled. |
| `base_total_due` | `decimal` | Base Total Due | [ ] | filters on the platform, writable, `base_total_due` | Base total due. |
| `base_total_invoiced` | `decimal` | Base Total Invoiced | [ ] | filters on the platform, writable, `base_total_invoiced` | Base total invoiced. |
| `base_total_invoiced_cost` | `decimal` | Base Total Invoiced Cost | [ ] | filters on the platform, writable, `base_total_invoiced_cost` | Base total invoiced cost. |
| `base_total_offline_refunded` | `decimal` | Base Total Offline Refunded | [ ] | filters on the platform, writable, `base_total_offline_refunded` | Base total offline refunded. |
| `base_total_online_refunded` | `decimal` | Base Total Online Refunded | [ ] | filters on the platform, writable, `base_total_online_refunded` | Base total online refunded. |
| `base_total_paid` | `decimal` | Base Total Paid | [ ] | filters on the platform, writable, `base_total_paid` | Base total paid. |
| `base_total_qty_ordered` | `decimal` | Base Total Quantity Ordered | [ ] | filters on the platform, writable, `base_total_qty_ordered` | Base total quantity ordered. |
| `base_total_refunded` | `decimal` | Base Total Refunded | [ ] | filters on the platform, writable, `base_total_refunded` | Base total refunded. |
| `billing_address_address_type` | `varchar2` | Billing Address Address Type | [ ] | filters on the platform, writable, `billing_address.address_type` | Address type. |
| `billing_address_city` | `varchar2` | Billing Address City | [ ] | filters on the platform, writable, `billing_address.city` | City. |
| `billing_address_company` | `varchar2` | Billing Address Company | [ ] | filters on the platform, writable, `billing_address.company` | Company. |
| `billing_address_country_id` | `varchar2` | Billing Address Country ID | [ ] | filters on the platform, writable, `billing_address.country_id` | Country ID. |
| `billing_address_customer_address_id` | `int64` | Billing Address Customer Address ID | [ ] | filters on the platform, writable, `billing_address.customer_address_id` | Country address ID. |
| `billing_address_customer_id` | `int64` | Billing Address Customer ID | [ ] | filters on the platform, writable, `billing_address.customer_id` | Customer ID. |
| `billing_address_email` | `varchar2` | Billing Address Email | [ ] | filters on the platform, writable, `billing_address.email` | Email address. |
| `billing_address_entity_id` | `int64` | Billing Address Entity ID | [ ] | filters on the platform, writable, `billing_address.entity_id` | Order address ID. |
| `billing_address_extension_attributes` | `varchar2` | Billing Address Extension Attributes | [ ] | writable | The JSON text of the nested object. |
| `billing_address_fax` | `varchar2` | Billing Address Fax | [ ] | filters on the platform, writable, `billing_address.fax` | Fax number. |
| `billing_address_firstname` | `varchar2` | Billing Address First Name | [ ] | filters on the platform, writable, `billing_address.firstname` | First name. |
| `billing_address_id` | `int64` | Billing Address ID | [ ] | filters on the platform, writable, `billing_address_id` | Billing address ID. |
| `billing_address_lastname` | `varchar2` | Billing Address Last Name | [ ] | filters on the platform, writable, `billing_address.lastname` | Last name. |
| `billing_address_middlename` | `varchar2` | Billing Address Middle Name | [ ] | filters on the platform, writable, `billing_address.middlename` | Middle name. |
| `billing_address_parent_id` | `int64` | Billing Address Parent ID | [ ] | filters on the platform, writable, `billing_address.parent_id` | Parent ID. |
| `billing_address_postcode` | `varchar2` | Billing Address Postcode | [ ] | filters on the platform, writable, `billing_address.postcode` | Postal code. |
| `billing_address_prefix` | `varchar2` | Billing Address Prefix | [ ] | filters on the platform, writable, `billing_address.prefix` | Prefix. |
| `billing_address_region` | `varchar2` | Billing Address Region | [ ] | filters on the platform, writable, `billing_address.region` | Region. |
| `billing_address_region_code` | `varchar2` | Billing Address Region Code | [ ] | filters on the platform, writable, `billing_address.region_code` | Region code. |
| `billing_address_region_id` | `int64` | Billing Address Region ID | [ ] | filters on the platform, writable, `billing_address.region_id` | Region ID. |
| `billing_address_suffix` | `varchar2` | Billing Address Suffix | [ ] | filters on the platform, writable, `billing_address.suffix` | Suffix. |
| `billing_address_telephone` | `varchar2` | Billing Address Telephone | [ ] | filters on the platform, writable, `billing_address.telephone` | Telephone number. |
| `billing_address_vat_id` | `varchar2` | Billing Address VAT ID | [ ] | filters on the platform, writable, `billing_address.vat_id` | VAT ID. |
| `billing_address_vat_is_valid` | `int64` | Billing Address VAT Is Valid | [ ] | filters on the platform, writable, `billing_address.vat_is_valid` | VAT-is-valid flag value. |
| `billing_address_vat_request_date` | `varchar2` | Billing Address VAT Request Date | [ ] | filters on the platform, writable, `billing_address.vat_request_date` | VAT request date. |
| `billing_address_vat_request_id` | `varchar2` | Billing Address VAT Request ID | [ ] | filters on the platform, writable, `billing_address.vat_request_id` | VAT request ID. |
| `billing_address_vat_request_success` | `int64` | Billing Address VAT Request Success | [ ] | filters on the platform, writable, `billing_address.vat_request_success` | VAT-request-success flag value. |
| `can_ship_partially` | `int64` | Can Ship Partially | [ ] | filters on the platform, writable, `can_ship_partially` | Can-ship-partially flag value. |
| `can_ship_partially_item` | `int64` | Can Ship Partially Item | [ ] | filters on the platform, writable, `can_ship_partially_item` | Can-ship-partially-item flag value. |
| `coupon_code` | `varchar2` | Coupon Code | [ ] | filters on the platform, writable, `coupon_code` | Coupon code. |
| `created_at` | `varchar2` | Created At | [ ] | filters on the platform, writable, `created_at` | Created-at timestamp. |
| `customer_dob` | `varchar2` | Customer Date of Birth | [ ] | filters on the platform, writable, `customer_dob` | In keeping with current security and privacy best practices, be sure you are aware of any potential legal and security risks associated with the storage of customers’ full date of birth (month, day, year) along with other personal identifiers (e.g., full name) before collecting or processing such data. |
| `customer_email` | `varchar2` | Customer Email | [ ] | filters on the platform, writable, `customer_email` | Customer email address. |
| `customer_firstname` | `varchar2` | Customer First Name | [ ] | filters on the platform, writable, `customer_firstname` | Customer first name. |
| `customer_gender` | `int64` | Customer Gender | [ ] | filters on the platform, writable, `customer_gender` | Customer gender. |
| `customer_group_id` | `int64` | Customer Group ID | [ ] | filters on the platform, writable, `customer_group_id` | Customer group ID. |
| `customer_id` | `int64` | Customer ID | [ ] | filters on the platform, writable, `customer_id` | Customer ID. |
| `customer_is_guest` | `int64` | Customer Is Guest | [ ] | filters on the platform, writable, `customer_is_guest` | Customer-is-guest flag value. |
| `customer_lastname` | `varchar2` | Customer Last Name | [ ] | filters on the platform, writable, `customer_lastname` | Customer last name. |
| `customer_middlename` | `varchar2` | Customer Middle Name | [ ] | filters on the platform, writable, `customer_middlename` | Customer middle name. |
| `customer_note` | `varchar2` | Customer Note | [ ] | filters on the platform, writable, `customer_note` | Customer note. |
| `customer_note_notify` | `int64` | Customer Note Notify | [ ] | filters on the platform, writable, `customer_note_notify` | Customer-note-notify flag value. |
| `customer_prefix` | `varchar2` | Customer Prefix | [ ] | filters on the platform, writable, `customer_prefix` | Customer prefix. |
| `customer_suffix` | `varchar2` | Customer Suffix | [ ] | filters on the platform, writable, `customer_suffix` | Customer suffix. |
| `customer_taxvat` | `varchar2` | Customer VAT Number | [ ] | filters on the platform, writable, `customer_taxvat` | Customer value-added tax (VAT). |
| `discount_amount` | `decimal` | Discount Amount | [ ] | filters on the platform, writable, `discount_amount` | Discount amount. |
| `discount_canceled` | `decimal` | Discount Canceled | [ ] | filters on the platform, writable, `discount_canceled` | Discount canceled. |
| `discount_description` | `varchar2` | Discount Description | [ ] | filters on the platform, writable, `discount_description` | Discount description. |
| `discount_invoiced` | `decimal` | Discount Invoiced | [ ] | filters on the platform, writable, `discount_invoiced` | Discount invoiced. |
| `discount_refunded` | `decimal` | Discount Refunded | [ ] | filters on the platform, writable, `discount_refunded` | Discount refunded amount. |
| `discount_tax_compensation_amount` | `decimal` | Discount Tax Compensation Amount | [ ] | filters on the platform, writable, `discount_tax_compensation_amount` | Discount tax compensation amount. |
| `discount_tax_compensation_invoiced` | `decimal` | Discount Tax Compensation Invoiced | [ ] | filters on the platform, writable, `discount_tax_compensation_invoiced` | Discount tax compensation invoiced amount. |
| `discount_tax_compensation_refunded` | `decimal` | Discount Tax Compensation Refunded | [ ] | filters on the platform, writable, `discount_tax_compensation_refunded` | Discount tax compensation refunded amount. |
| `edit_increment` | `int64` | Edit Increment | [ ] | filters on the platform, writable, `edit_increment` | Edit increment value. |
| `email_sent` | `int64` | Email Sent | [ ] | filters on the platform, writable, `email_sent` | Email-sent flag value. |
| `entity_id` | `int64` | Entity ID | [ ] | filters on the platform, writable, `entity_id` | Order ID. |
| `ext_customer_id` | `varchar2` | External Customer ID | [ ] | filters on the platform, writable, `ext_customer_id` | External customer ID. |
| `ext_order_id` | `varchar2` | External Order ID | [ ] | filters on the platform, writable, `ext_order_id` | External order ID. |
| `extension_attributes_converting_from_quote` | `char` | Extension Attributes Converting From Quote | [ ] | filters on the platform, writable, `extension_attributes.converting_from_quote` |  |
| `extension_attributes_gift_message_customer_id` | `int64` | Extension Attributes Gift Message Customer ID | [ ] | filters on the platform, writable, `extension_attributes.gift_message.customer_id` | Customer ID. Otherwise, null. |
| `extension_attributes_gift_message_extension_attributes_entity_id` | `varchar2` | Extension Attributes Gift Message Extension Attributes Entity ID | [ ] | filters on the platform, writable, `extension_attributes.gift_message.extension_attributes.entity_id` |  |
| `extension_attributes_gift_message_extension_attributes_entity_type` | `varchar2` | Extension Attributes Gift Message Extension Attributes Entity Type | [ ] | filters on the platform, writable, `extension_attributes.gift_message.extension_attributes.entity_type` |  |
| `extension_attributes_gift_message_gift_message_id` | `int64` | Extension Attributes Gift Message Gift Message ID | [ ] | filters on the platform, writable, `extension_attributes.gift_message.gift_message_id` | Gift message ID. Otherwise, null. |
| `extension_attributes_gift_message_message` | `varchar2` | Extension Attributes Gift Message Message | [ ] | filters on the platform, writable, `extension_attributes.gift_message.message` | Message text. |
| `extension_attributes_gift_message_recipient` | `varchar2` | Extension Attributes Gift Message Recipient | [ ] | filters on the platform, writable, `extension_attributes.gift_message.recipient` | Recipient name. |
| `extension_attributes_gift_message_sender` | `varchar2` | Extension Attributes Gift Message Sender | [ ] | filters on the platform, writable, `extension_attributes.gift_message.sender` | Sender name. |
| `extension_attributes_notification_sent` | `int64` | Extension Attributes Notification Sent | [ ] | filters on the platform, writable, `extension_attributes.notification_sent` |  |
| `extension_attributes_pickup_location_code` | `varchar2` | Extension Attributes Pickup Location Code | [ ] | filters on the platform, writable, `extension_attributes.pickup_location_code` |  |
| `extension_attributes_send_notification` | `int64` | Extension Attributes Send Notification | [ ] | filters on the platform, writable, `extension_attributes.send_notification` |  |
| `forced_shipment_with_invoice` | `int64` | Forced Shipment With Invoice | [ ] | filters on the platform, writable, `forced_shipment_with_invoice` | Forced-shipment-with-invoice flag value. |
| `global_currency_code` | `varchar2` | Global Currency Code | [ ] | filters on the platform, writable, `global_currency_code` | Global currency code. |
| `grand_total` | `decimal` | Grand Total | [ ] | filters on the platform, writable, `grand_total` | Grand total. |
| `hold_before_state` | `varchar2` | Hold Before State | [ ] | filters on the platform, writable, `hold_before_state` | Hold before state. |
| `hold_before_status` | `varchar2` | Hold Before Status | [ ] | filters on the platform, writable, `hold_before_status` | Hold before status. |
| `increment_id` | `varchar2` | Increment ID | [ ] | filters on the platform, writable, `increment_id` | Increment ID. |
| `is_virtual` | `int64` | Is Virtual | [ ] | filters on the platform, writable, `is_virtual` | Is-virtual flag value. |
| `order_currency_code` | `varchar2` | Order Currency Code | [ ] | filters on the platform, writable, `order_currency_code` | Order currency code. |
| `original_increment_id` | `varchar2` | Original Increment ID | [ ] | filters on the platform, writable, `original_increment_id` | Original increment ID. |
| `payment_account_status` | `varchar2` | Payment Account Status | [ ] | filters on the platform, writable, `payment.account_status` | Account status. |
| `payment_additional_data` | `varchar2` | Payment Additional Data | [ ] | filters on the platform, writable, `payment.additional_data` | Additional data. |
| `payment_address_status` | `varchar2` | Payment Address Status | [ ] | filters on the platform, writable, `payment.address_status` | Address status. |
| `payment_amount_authorized` | `decimal` | Payment Amount Authorized | [ ] | filters on the platform, writable, `payment.amount_authorized` | Amount authorized. |
| `payment_amount_canceled` | `decimal` | Payment Amount Canceled | [ ] | filters on the platform, writable, `payment.amount_canceled` | Amount canceled. |
| `payment_amount_ordered` | `decimal` | Payment Amount Ordered | [ ] | filters on the platform, writable, `payment.amount_ordered` | Amount ordered. |
| `payment_amount_paid` | `decimal` | Payment Amount Paid | [ ] | filters on the platform, writable, `payment.amount_paid` | Amount paid. |
| `payment_amount_refunded` | `decimal` | Payment Amount Refunded | [ ] | filters on the platform, writable, `payment.amount_refunded` | Amount refunded. |
| `payment_anet_trans_method` | `varchar2` | Payment Authorize.Net Transaction Method | [ ] | filters on the platform, writable, `payment.anet_trans_method` | Anet transaction method. |
| `payment_auth_expiration` | `int64` | Payment Authorization Expiration | [ ] | filters on the platform, writable, `payment_auth_expiration` | Payment authorization expiration date. |
| `payment_authorization_amount` | `decimal` | Payment Authorization Amount | [ ] | filters on the platform, writable, `payment_authorization_amount` | Payment authorization amount. |
| `payment_base_amount_authorized` | `decimal` | Payment Base Amount Authorized | [ ] | filters on the platform, writable, `payment.base_amount_authorized` | Base amount authorized. |
| `payment_base_amount_canceled` | `decimal` | Payment Base Amount Canceled | [ ] | filters on the platform, writable, `payment.base_amount_canceled` | Base amount canceled. |
| `payment_base_amount_ordered` | `decimal` | Payment Base Amount Ordered | [ ] | filters on the platform, writable, `payment.base_amount_ordered` | Base amount ordered. |
| `payment_base_amount_paid` | `decimal` | Payment Base Amount Paid | [ ] | filters on the platform, writable, `payment.base_amount_paid` | Base amount paid. |
| `payment_base_amount_paid_online` | `decimal` | Payment Base Amount Paid Online | [ ] | filters on the platform, writable, `payment.base_amount_paid_online` | Base amount paid online. |
| `payment_base_amount_refunded` | `decimal` | Payment Base Amount Refunded | [ ] | filters on the platform, writable, `payment.base_amount_refunded` | Base amount refunded. |
| `payment_base_amount_refunded_online` | `decimal` | Payment Base Amount Refunded Online | [ ] | filters on the platform, writable, `payment.base_amount_refunded_online` | Base amount refunded online. |
| `payment_base_shipping_amount` | `decimal` | Payment Base Shipping Amount | [ ] | filters on the platform, writable, `payment.base_shipping_amount` | Base shipping amount. |
| `payment_base_shipping_captured` | `decimal` | Payment Base Shipping Captured | [ ] | filters on the platform, writable, `payment.base_shipping_captured` | Base shipping captured amount. |
| `payment_base_shipping_refunded` | `decimal` | Payment Base Shipping Refunded | [ ] | filters on the platform, writable, `payment.base_shipping_refunded` | Base shipping refunded amount. |
| `payment_cc_approval` | `varchar2` | Payment Credit Card Approval | [ ] | filters on the platform, writable, `payment.cc_approval` | Credit card approval. |
| `payment_cc_avs_status` | `varchar2` | Payment Credit Card AVS Status | [ ] | filters on the platform, writable, `payment.cc_avs_status` | Credit card avs status. |
| `payment_cc_cid_status` | `varchar2` | Payment Credit Card CID Status | [ ] | filters on the platform, writable, `payment.cc_cid_status` | Credit card CID status. |
| `payment_cc_debug_request_body` | `varchar2` | Payment Credit Card Debug Request Body | [ ] | filters on the platform, writable, `payment.cc_debug_request_body` | Credit card debug request body. |
| `payment_cc_debug_response_body` | `varchar2` | Payment Credit Card Debug Response Body | [ ] | filters on the platform, writable, `payment.cc_debug_response_body` | Credit card debug response body. |
| `payment_cc_debug_response_serialized` | `varchar2` | Payment Credit Card Debug Response Serialized | [ ] | filters on the platform, writable, `payment.cc_debug_response_serialized` | Credit card debug response serialized. |
| `payment_cc_exp_month` | `varchar2` | Payment Credit Card Expiration Month | [ ] | filters on the platform, writable, `payment.cc_exp_month` | Credit card expiration month. |
| `payment_cc_exp_year` | `varchar2` | Payment Credit Card Expiration Year | [ ] | filters on the platform, writable, `payment.cc_exp_year` | Credit card expiration year. |
| `payment_cc_last4` | `varchar2` | Payment Credit Card Last 4 Digits | [ ] | filters on the platform, writable, `payment.cc_last4` | Last four digits of the credit card. |
| `payment_cc_number_enc` | `varchar2` | Payment Credit Card Number Encrypted | [ ] | filters on the platform, writable, `payment.cc_number_enc` | Encrypted credit card number. |
| `payment_cc_owner` | `varchar2` | Payment Credit Card Owner | [ ] | filters on the platform, writable, `payment.cc_owner` | Credit card number. |
| `payment_cc_secure_verify` | `varchar2` | Payment Credit Card Secure Verify | [ ] | filters on the platform, writable, `payment.cc_secure_verify` | Credit card secure verify. |
| `payment_cc_ss_issue` | `varchar2` | Payment Credit Card Switch/Solo Issue Number | [ ] | filters on the platform, writable, `payment.cc_ss_issue` | Credit card SS issue. |
| `payment_cc_ss_start_month` | `varchar2` | Payment Credit Card Switch/Solo Start Month | [ ] | filters on the platform, writable, `payment.cc_ss_start_month` | Credit card SS start month. |
| `payment_cc_ss_start_year` | `varchar2` | Payment Credit Card Switch/Solo Start Year | [ ] | filters on the platform, writable, `payment.cc_ss_start_year` | Credit card SS start year. |
| `payment_cc_status` | `varchar2` | Payment Credit Card Status | [ ] | filters on the platform, writable, `payment.cc_status` | Credit card status. |
| `payment_cc_status_description` | `varchar2` | Payment Credit Card Status Description | [ ] | filters on the platform, writable, `payment.cc_status_description` | Credit card status description. |
| `payment_cc_trans_id` | `varchar2` | Payment Credit Card Transaction ID | [ ] | filters on the platform, writable, `payment.cc_trans_id` | Credit card transaction ID. |
| `payment_cc_type` | `varchar2` | Payment Credit Card Type | [ ] | filters on the platform, writable, `payment.cc_type` | Credit card type. |
| `payment_echeck_account_name` | `varchar2` | Payment eCheck Account Name | [ ] | filters on the platform, writable, `payment.echeck_account_name` | eCheck account name. |
| `payment_echeck_account_type` | `varchar2` | Payment eCheck Account Type | [ ] | filters on the platform, writable, `payment.echeck_account_type` | eCheck account type. |
| `payment_echeck_bank_name` | `varchar2` | Payment eCheck Bank Name | [ ] | filters on the platform, writable, `payment.echeck_bank_name` | eCheck bank name. |
| `payment_echeck_routing_number` | `varchar2` | Payment eCheck Routing Number | [ ] | filters on the platform, writable, `payment.echeck_routing_number` | eCheck routing number. |
| `payment_echeck_type` | `varchar2` | Payment eCheck Type | [ ] | filters on the platform, writable, `payment.echeck_type` | eCheck type. |
| `payment_entity_id` | `int64` | Payment Entity ID | [ ] | filters on the platform, writable, `payment.entity_id` | Entity ID. |
| `payment_extension_attributes_notification_message` | `varchar2` | Payment Extension Attributes Notification Message | [ ] | filters on the platform, writable, `payment.extension_attributes.notification_message` |  |
| `payment_extension_attributes_vault_payment_token_created_at` | `varchar2` | Payment Extension Attributes Vault Payment Token Created At | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.created_at` | Token creation timestamp |
| `payment_extension_attributes_vault_payment_token_customer_id` | `int64` | Payment Extension Attributes Vault Payment Token Customer ID | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.customer_id` | Customer ID. |
| `payment_extension_attributes_vault_payment_token_entity_id` | `int64` | Payment Extension Attributes Vault Payment Token Entity ID | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.entity_id` | Entity ID. |
| `payment_extension_attributes_vault_payment_token_expires_at` | `varchar2` | Payment Extension Attributes Vault Payment Token Expires At | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.expires_at` | Token expiration timestamp |
| `payment_extension_attributes_vault_payment_token_gateway_token` | `varchar2` | Payment Extension Attributes Vault Payment Token Gateway Token | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.gateway_token` | Gateway token ID |
| `payment_extension_attributes_vault_payment_token_is_active` | `char` | Payment Extension Attributes Vault Payment Token Is Active | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.is_active` | Is active. |
| `payment_extension_attributes_vault_payment_token_is_visible` | `char` | Payment Extension Attributes Vault Payment Token Is Visible | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.is_visible` | Is visible. |
| `payment_extension_attributes_vault_payment_token_payment_method_code` | `varchar2` | Payment Extension Attributes Vault Payment Token Payment Method Code | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.payment_method_code` | Payment method code |
| `payment_extension_attributes_vault_payment_token_public_hash` | `varchar2` | Payment Extension Attributes Vault Payment Token Public Hash | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.public_hash` | Public hash |
| `payment_extension_attributes_vault_payment_token_token_details` | `varchar2` | Payment Extension Attributes Vault Payment Token Token Details | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.token_details` | Token details |
| `payment_extension_attributes_vault_payment_token_type` | `varchar2` | Payment Extension Attributes Vault Payment Token Type | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.type` | Type |
| `payment_extension_attributes_vault_payment_token_website_id` | `int64` | Payment Extension Attributes Vault Payment Token Website ID | [ ] | filters on the platform, writable, `payment.extension_attributes.vault_payment_token.website_id` | website id. |
| `payment_last_trans_id` | `varchar2` | Payment Last Transaction ID | [ ] | filters on the platform, writable, `payment.last_trans_id` | Last transaction ID. |
| `payment_method` | `varchar2` | Payment Method | [ ] | filters on the platform, writable, `payment.method` | Method. |
| `payment_parent_id` | `int64` | Payment Parent ID | [ ] | filters on the platform, writable, `payment.parent_id` | Parent ID. |
| `payment_po_number` | `varchar2` | Payment Purchase Order Number | [ ] | filters on the platform, writable, `payment.po_number` | PO number. |
| `payment_protection_eligibility` | `varchar2` | Payment Protection Eligibility | [ ] | filters on the platform, writable, `payment.protection_eligibility` | Protection eligibility. |
| `payment_quote_payment_id` | `int64` | Payment Quote Payment ID | [ ] | filters on the platform, writable, `payment.quote_payment_id` | Quote payment ID. |
| `payment_shipping_amount` | `decimal` | Payment Shipping Amount | [ ] | filters on the platform, writable, `payment.shipping_amount` | Shipping amount. |
| `payment_shipping_captured` | `decimal` | Payment Shipping Captured | [ ] | filters on the platform, writable, `payment.shipping_captured` | Shipping captured. |
| `payment_shipping_refunded` | `decimal` | Payment Shipping Refunded | [ ] | filters on the platform, writable, `payment.shipping_refunded` | Shipping refunded. |
| `protect_code` | `varchar2` | Protect Code | [ ] | filters on the platform, writable, `protect_code` | Protect code. |
| `quote_address_id` | `int64` | Quote Address ID | [ ] | filters on the platform, writable, `quote_address_id` | Quote address ID. |
| `quote_id` | `int64` | Quote ID | [ ] | filters on the platform, writable, `quote_id` | Quote ID. |
| `relation_child_id` | `varchar2` | Relation Child ID | [ ] | filters on the platform, writable, `relation_child_id` | Relation child ID. |
| `relation_child_real_id` | `varchar2` | Relation Child Real ID | [ ] | filters on the platform, writable, `relation_child_real_id` | Relation child real ID. |
| `relation_parent_id` | `varchar2` | Relation Parent ID | [ ] | filters on the platform, writable, `relation_parent_id` | Relation parent ID. |
| `relation_parent_real_id` | `varchar2` | Relation Parent Real ID | [ ] | filters on the platform, writable, `relation_parent_real_id` | Relation parent real ID. |
| `remote_ip` | `varchar2` | Remote IP | [ ] | filters on the platform, writable, `remote_ip` | Remote IP address. |
| `shipping_amount` | `decimal` | Shipping Amount | [ ] | filters on the platform, writable, `shipping_amount` | Shipping amount. |
| `shipping_canceled` | `decimal` | Shipping Canceled | [ ] | filters on the platform, writable, `shipping_canceled` | Shipping canceled amount. |
| `shipping_description` | `varchar2` | Shipping Description | [ ] | filters on the platform, writable, `shipping_description` | Shipping description. |
| `shipping_discount_amount` | `decimal` | Shipping Discount Amount | [ ] | filters on the platform, writable, `shipping_discount_amount` | Shipping discount amount. |
| `shipping_discount_tax_compensation_amount` | `decimal` | Shipping Discount Tax Compensation Amount | [ ] | filters on the platform, writable, `shipping_discount_tax_compensation_amount` | Shipping discount tax compensation amount. |
| `shipping_incl_tax` | `decimal` | Shipping Including Tax | [ ] | filters on the platform, writable, `shipping_incl_tax` | Shipping including tax amount. |
| `shipping_invoiced` | `decimal` | Shipping Invoiced | [ ] | filters on the platform, writable, `shipping_invoiced` | Shipping invoiced amount. |
| `shipping_refunded` | `decimal` | Shipping Refunded | [ ] | filters on the platform, writable, `shipping_refunded` | Shipping refunded amount. |
| `shipping_tax_amount` | `decimal` | Shipping Tax Amount | [ ] | filters on the platform, writable, `shipping_tax_amount` | Shipping tax amount. |
| `shipping_tax_refunded` | `decimal` | Shipping Tax Refunded | [ ] | filters on the platform, writable, `shipping_tax_refunded` | Shipping tax refunded amount. |
| `state` | `varchar2` | State | [ ] | filters on the platform, writable, `state` | State. |
| `status` | `varchar2` | Status | [ ] | filters on the platform, writable, `status` | Status. |
| `store_currency_code` | `varchar2` | Store Currency Code | [ ] | filters on the platform, writable, `store_currency_code` | Store currency code. |
| `store_id` | `int64` | Store ID | [ ] | filters on the platform, writable, `store_id` | Store ID. |
| `store_name` | `varchar2` | Store Name | [ ] | filters on the platform, writable, `store_name` | Store name. |
| `store_to_base_rate` | `decimal` | Store to Base Rate | [ ] | filters on the platform, writable, `store_to_base_rate` | Store-to-base rate. |
| `store_to_order_rate` | `decimal` | Store to Order Rate | [ ] | filters on the platform, writable, `store_to_order_rate` | Store-to-order rate. |
| `subtotal` | `decimal` | Subtotal | [ ] | filters on the platform, writable, `subtotal` | Subtotal. |
| `subtotal_canceled` | `decimal` | Subtotal Canceled | [ ] | filters on the platform, writable, `subtotal_canceled` | Subtotal canceled amount. |
| `subtotal_incl_tax` | `decimal` | Subtotal Including Tax | [ ] | filters on the platform, writable, `subtotal_incl_tax` | Subtotal including tax amount. |
| `subtotal_invoiced` | `decimal` | Subtotal Invoiced | [ ] | filters on the platform, writable, `subtotal_invoiced` | Subtotal invoiced amount. |
| `subtotal_refunded` | `decimal` | Subtotal Refunded | [ ] | filters on the platform, writable, `subtotal_refunded` | Subtotal refunded amount. |
| `tax_amount` | `decimal` | Tax Amount | [ ] | filters on the platform, writable, `tax_amount` | Tax amount. |
| `tax_canceled` | `decimal` | Tax Canceled | [ ] | filters on the platform, writable, `tax_canceled` | Tax canceled amount. |
| `tax_invoiced` | `decimal` | Tax Invoiced | [ ] | filters on the platform, writable, `tax_invoiced` | Tax invoiced amount. |
| `tax_refunded` | `decimal` | Tax Refunded | [ ] | filters on the platform, writable, `tax_refunded` | Tax refunded amount. |
| `total_canceled` | `decimal` | Total Canceled | [ ] | filters on the platform, writable, `total_canceled` | Total canceled. |
| `total_due` | `decimal` | Total Due | [ ] | filters on the platform, writable, `total_due` | Total due. |
| `total_invoiced` | `decimal` | Total Invoiced | [ ] | filters on the platform, writable, `total_invoiced` | Total invoiced amount. |
| `total_item_count` | `int64` | Total Item Count | [ ] | filters on the platform, writable, `total_item_count` | Total item count. |
| `total_offline_refunded` | `decimal` | Total Offline Refunded | [ ] | filters on the platform, writable, `total_offline_refunded` | Total offline refunded amount. |
| `total_online_refunded` | `decimal` | Total Online Refunded | [ ] | filters on the platform, writable, `total_online_refunded` | Total online refunded amount. |
| `total_paid` | `decimal` | Total Paid | [ ] | filters on the platform, writable, `total_paid` | Total paid. |
| `total_qty_ordered` | `decimal` | Total Quantity Ordered | [ ] | filters on the platform, writable, `total_qty_ordered` | Total quantity ordered. |
| `total_refunded` | `decimal` | Total Refunded | [ ] | filters on the platform, writable, `total_refunded` | Total amount refunded. |
| `updated_at` | `varchar2` | Updated At | [ ] | filters on the platform, writable, `updated_at` | Updated-at timestamp. |
| `weight` | `decimal` | Weight | [ ] | filters on the platform, writable, `weight` | Weight. |
| `x_forwarded_for` | `varchar2` | X Forwarded For | [ ] | filters on the platform, writable, `x_forwarded_for` | X-Forwarded-For field value. |

## Sample Queries

```sql
select itm.sku
,      itm.name
,      sum(itm.qty_ordered - itm.qty_shipped) qty_to_ship
from   Magento.Sales.OrderItems itm
join   Magento.Sales.Orders ord
on     ord.entity_id = itm.order_id
where  ord.state in ('new', 'processing')
group
by     itm.sku
,      itm.name
```

```sql
select ord.state
,      count(*) order_count
,      sum(ord.grand_total) order_total
from   Magento.Sales.Orders ord
where  ord.created_at >= to_char(sysdateutc - 30, 'YYYY-MM-DD')
group
by     ord.state
```

