Authorizations
- Authorization string required header
Generate a store API key from the store's Metorik API settings in Metorik, and choose the scopes needed for the endpoints you want to call.
Query Parameters
- filters string
Optional JSON-encoded filter array. See Order Filters Reference. Example: [{"field":"total","operator":"gte","value":100},{"field":"status","operator":"eq","value":"completed"}]
- order_by string enum
Sort field. Example: order_created_at
- order_dir string enum
Sort direction. Example: desc
- page integer
Page number for pagination. Example: 1
- per_page integer
Number of orders per page. Min 1, max 100. Example: 10
- search string
Search term to filter orders. Example: 1001
Headers
- Accept string required
Response format header. Example: application/json
Response
application/json- data[] object array
+ - Show Child Attributes
- order_id integer
- customer_id integer
- order_number string
- order_name string
- status string
- order_created_at string
- order_updated_at string
- order_paid_at string
- order_completed_at string
- currency string
- billing_address_first_name string
- billing_address_last_name string
- billing_address_company string
- billing_address_phone string
- billing_address_address_1 string
- billing_address_address_2 string
- billing_address_city string
- billing_address_state string
- billing_address_postcode string
- billing_address_country string
- billing_address_email string
- shipping_address_first_name string
- shipping_address_last_name string
- shipping_address_company string
- shipping_address_phone string
- shipping_address_address_1 string
- shipping_address_address_2 string
- shipping_address_city string
- shipping_address_state string
- shipping_address_postcode string
- shipping_address_country string
- payment_method string
- payment_method_title string
- shipping_method_title string
- customer_note string
- created_via string
- total integer
- total_items integer
- total_refunds integer
- net integer
- net_original integer
- cogs number
- product_cogs number
- shipping_cogs number
- transaction_cogs number
- extra_cogs integer
- gross_profit number
- resource_link string
- pagination object
+ - Show Child Attributes
- current_page integer
- per_page integer
- has_more_pages boolean