Skip to content

WooCommerce - Get Orders

This module allows querying orders from your WooCommerce store with filters by status, customer, dates, product, and more.

FieldTypeRequiredDescription
credentials_idstringYesCredentials ID
order_idnumberNoSpecific order ID
statusstringNoOrder status
customernumberNoCustomer ID
productnumberNoOrders with this product
searchstringNoText search
afterstringNoAfter date (ISO 8601)
beforestringNoBefore date (ISO 8601)
orderbystringNodate, id, include, title, slug
orderstringNoasc, desc
per_pagenumberNoOrders per page (max 100)
pagenumberNoPage number
FieldDescriptionExample
urlWooCommerce store base URLhttps://my-store.com
consumer_keyREST API Consumer Keyck_xxxx...
consumer_secretREST API Consumer Secretcs_xxxx...
ValueDescription
pendingPending payment
processingProcessing
on-holdOn hold
completedCompleted
cancelledCancelled
refundedRefunded
failedFailed
trashTrash
anyAny status
{
"success": true,
"orders": [
{
"id": 1234,
"number": "1234",
"status": "processing",
"total": "89.99",
"customer_id": 123,
"billing": {},
"shipping": {},
"line_items": [],
"date_created": "2024-01-15T10:30:00"
}
],
"total": 450,
"total_pages": 9,
"current_page": 1
}
{
"credentials_id": "woo_tienda",
"status": "processing",
"per_page": 50
}
{
"credentials_id": "woo_tienda",
"after": "2024-01-15T00:00:00",
"before": "2024-01-15T23:59:59"
}
  • The maximum limit per request is 100 orders
  • Dates must be in ISO 8601 format
  • By default sorted by date descending
  • The search field searches in order number and customer data
  • WooUpdateOrder - Update order status or tracking
  • WooGetCustomers - Get order customer data
  • WooGetProducts - Get order product data