List EDD Orders


Lists Easy Digital Downloads orders, newest first, with each one's status, customer, totals in the order's currency, how much has been refunded, and its items with the order item IDs that mosmcp/edd-create-refund needs for a partial refund. Read-only. Filter by status, date range, customer, email or download. Orders hold customers' names and email addresses, so share only what the person asking needs.

Also known as: sales, purchases, payments, transactions, order history.

Property Value
Ability slug mosmcp/edd-list-orders
Wire tool name mosmcp__edd-list-orders
Category Easy Digital Downloads (mosmcp-edd)
Plan Pro

 

Required access

Requirement Value
Capability edit_shop_payments
Minimum default role Shop Accountant (Easy Digital Downloads)
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
order_id integer (min 1) — Optional. Return only this order.
status string — Optional EDD order status: complete, pending, processing, refunded, partially_refunded, revoked, failed, abandoned, on_hold or trash. Leave out for every status except the trash.
customer_id integer (min 1) — Optional. Only this customer's orders, as returned by mosmcp/edd-list-customers.
email string — Optional. Only orders placed with this email address.
download_id integer (min 1) — Optional. Only orders that include this download, as returned by mosmcp/edd-list-downloads.
search string — Optional order number, email address or payment key to search for.
since string — Optional date, YYYY-MM-DD in the site's timezone. Only orders placed from that day on.
until string — Optional date, YYYY-MM-DD in the site's timezone. Only orders placed up to the end of that day.
per_page integer (1–100) 20 Maximum number of orders to return.
page integer (min 1) 1 Page number, starting at 1.

 

Output schema

Field Type Required Description
total integer Yes How many match in all, across every page.
showing integer Yes How many are in this response.
page integer
total_pages integer
has_more boolean Whether another page follows. Ask for it rather than assuming this is everything.
currency string The store currency. Each order also states its own.
orders object[] Yes
orders[].order_id integer Yes
orders[].number string The order number shown to the customer.
orders[].status string Yes
orders[].status_label string
orders[].created_at string When the order was placed, in the site's timezone.
orders[].completed_at string
orders[].customer_id integer
orders[].customer_name string
orders[].email string
orders[].gateway string
orders[].mode string "live" or "test". Test orders took no real money.
orders[].currency string
orders[].subtotal number
orders[].discount number
orders[].tax number
orders[].total number Yes
orders[].refunded number How much of the total has been refunded so far.
orders[].items object[] Yes
orders[].view_url string
notes string[]

 

Example

Sample prompt
Show me the EDD orders placed by jane@example.com.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 629,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__edd-list-orders",
    "arguments": {
      "input": {
        "email": "jane@example.com"
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 629,
  "result": {
    "isError": false,
    "structuredContent": {
      "total": 1,
      "showing": 1,
      "page": 1,
      "total_pages": 1,
      "has_more": false,
      "currency": "USD",
      "orders": [
        {
          "order_id": 1052,
          "number": "1052",
          "status": "complete",
          "status_label": "Completed",
          "created_at": "2026-11-12 14:03:27",
          "completed_at": "2026-11-12 14:03:29",
          "customer_id": 87,
          "customer_name": "Jane Cooper",
          "email": "jane@example.com",
          "gateway": "Stripe",
          "mode": "live",
          "currency": "USD",
          "subtotal": 178,
          "discount": 0,
          "tax": 0,
          "total": 178,
          "refunded": 0,
          "items": [
            {
              "order_item_id": 2210,
              "download_id": 198,
              "name": "WordPress Theme Starter — Agency licence",
              "price_id": 2,
              "quantity": 1,
              "total": 149,
              "status": "complete"
            },
            {
              "order_item_id": 2211,
              "download_id": 214,
              "name": "Lightroom Preset Pack",
              "price_id": null,
              "quantity": 1,
              "total": 29,
              "status": "complete"
            }
          ],
          "view_url": "https://example.com/wp-admin/edit.php?post_type=download&page=edd-payment-history&view=view-order-details&id=1052"
        }
      ],
      "notes": []
    }
  }
}

 

Edge cases / errors

  • order_id that does not exist → mosmcp_edd_order_not_found; the ID of a refund record → mosmcp_edd_order_is_refund, with the original order's ID in the error data.
  • status that is not an EDD order status → mosmcp_edd_status_invalid; the error lists the valid ones and a close match.
  • email that is not a full address → mosmcp_edd_email_invalid; use search for part of one.
  • since later than until → mosmcp_date_range_reversed; dates must be YYYY-MM-DD (mosmcp_date_invalid). Trashed orders appear only with status "trash".

 


<< Previous Next >>
List EDD Customers

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.