get_revenue

GET api.warenquelle.store/mcp/revenue.php

Returns order count and gross/net revenue for a given date range.

Parameters

ParameterTypeRequiredDescription
fromstringYesStart date YYYY-MM-DD
tostringYesEnd date YYYY-MM-DD

Example response

{
  "merch_uuid": "OELMAA",
  "market_uuid": "CH001",
  "period": { "from": "2026-05-01", "to": "2026-05-31" },
  "revenue": [
    {
      "order_count": "12",
      "revenue_gross": "1840.00",
      "revenue_net": "1520.00"
    }
  ]
}

get_orders

GET api.warenquelle.store/mcp/orders.php

Returns a list of orders with customer address. Filterable by status or customer name/email.

Parameters

ParameterTypeRequiredDescription
statusstringNoplaced · shipped · approved · cancelled
customerstringNoName or email (partial match)
limitintegerNoMax results (default 50, max 100)

get_customers

GET api.warenquelle.store/mcp/customers.php

Returns customer statistics and top buyers by revenue for a given period.

Parameters

ParameterTypeRequiredDescription
periodstringEither/orlast7days · last30days · last90days · thismonth · lastmonth
fromstringEither/orStart date YYYY-MM-DD
tostringEither/orEnd date YYYY-MM-DD

get_order_items

GET api.warenquelle.store/mcp/order_items.php

Returns order line items with product name and customer info. When filtering by product or SKU, also returns a top_buyers aggregation.

Parameters

ParameterTypeRequiredDescription
productstringNoProduct name (partial match)
skustringNoExact SKU
limitintegerNoMax results (default 100, max 500)

get_stock

GET api.warenquelle.store/mcp/stock.php

Returns current warehouse stock levels calculated from inventory movements (inventory_IN – inventory_OUT via v_merchant_stock view).

Parameters

ParameterTypeRequiredDescription
productstringNoProduct name (partial match)
skustringNoExact SKU
lowintegerNoOnly products with stock ≤ this value
sortstringNoasc (low first) · desc (high first)
limitintegerNoMax results (default 100, max 500)