Skip to content

Magento - Get Orders

This module allows querying orders from your Magento 2 store with filters by status, customer, dates, and amounts.

FieldTypeRequiredDescription
credentials_idstringYesCredentials ID
order_idstringNoOrder ID (entity_id)
increment_idstringNoOrder number
statusstringNoOrder status
customer_idstringNoCustomer ID
customer_emailstringNoCustomer email
created_at_fromstringNoCreated since
created_at_tostringNoCreated until
grand_total_minnumberNoMinimum total
grand_total_maxnumberNoMaximum total
sort_fieldstringNoSort field
sort_directionstringNoASC or DESC
page_sizenumberNoOrders per page
current_pagenumberNoCurrent page
FieldDescription
store_urlMagento store base URL (e.g.: https://mystore.com)
access_tokenIntegration access token with sales read permissions
ValueDescription
pendingPending
pending_paymentPayment pending
processingProcessing
completeCompleted
closedClosed
canceledCanceled
holdedOn hold
{
"success": true,
"orders": [
{
"entity_id": 123,
"increment_id": "100000001",
"status": "processing",
"grand_total": 99.99,
"customer_email": "cliente@ejemplo.com",
"items": [],
"billing_address": {},
"shipping_address": {}
}
],
"total": 500,
"page_size": 20,
"current_page": 1,
"message": "20 orders retrieved"
}
{
"credentials_id": "magento_tienda",
"status": "processing",
"page_size": 50
}
{
"credentials_id": "magento_tienda",
"customer_email": "cliente@ejemplo.com",
"sort_field": "created_at",
"sort_direction": "DESC"
}
{
"credentials_id": "magento_tienda",
"grand_total_min": 500,
"status": "complete"
}
  • The entity_id is the internal ID, increment_id is the visible number
  • Orders include all item and address information
  • Default sorting is by date descending
  • Default pagination is 20 orders
  • MagentoUpdateOrder - Update order status
  • MagentoGetCustomers - Get customer data
  • MagentoGetProducts - Get product data