Zenfulfillment MCP by usefulapi
v1.12.1Read Zenfulfillment orders and stock; import or cancel orders and mark returns done.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
zenfulfillment_list_orders List orders
List or search the fulfillment orders of this Zenfulfillment account (warehouse pick/pack/ship), with status, order reference, shop order number, totals, shipping and billing address, the products ordered/shipped and shipments (tracking number, carrier). Filter by ONE status, created/updated time or free text. The export has one row per product line; rows are grouped into orders. Paging: pass next_page back as page; an empty page is the end. GET /orders/export.
| Parameter | Type | Description |
|---|---|---|
created_after | string | Only orders created at or after this time. |
created_before | string | Only orders created at or before this time. |
page | integer | Page number, from 1 (default 1). Use the previous reply's next_page. |
per_page | integer | Results per page, 10-50 (default 25). |
query | string | Free-text search: shipping street, city, country, zip, customer name, order number or ZF number. |
status | string | Only orders in this status (one at a time). |
updated_after | string | Lower bound on the last update time (updatedAtMin). |
updated_before | string | Upper bound on the last update time (updatedAtMax). |
zenfulfillment_get_order Get order
One order by its EXTERNAL reference, i.e. the order number from the connected shop or from your own import (for example 332-11-5599), with addresses, products with quantities (ordered, shipped, returned, refunded) and shipments with tracking numbers. Not the ZF reference: use zenfulfillment_list_orders with query for that. GET /orders/external/{reference}.
| Parameter | Type | Description |
|---|---|---|
reference * | string | External order reference (the shop's order number). |
zenfulfillment_list_stock List stock levels
Stock on hand in the Zenfulfillment warehouse per SKU (sku, quantity_on_stock). Filter by SKU text and/or a maximum quantity to find low stock (then sorted lowest first). GET /products/export.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Most SKUs to return (default 200). |
max_quantity | integer | Only SKUs with at most this many units on stock (use for low-stock checks). |
sku_contains | string | Only SKUs containing this text (case-insensitive). |
zenfulfillment_list_inventory_shipments List inbound shipments
List inbound inventory shipments (goods you sent to the warehouse) with reference, SKU lines, announced quantity, quantity arrived and note. Filter by ONE status, created/updated time or free text (ZF number, tracking code, type). Rows are grouped per shipment. Paging as in list_orders. GET /inventory_shipments/export.
| Parameter | Type | Description |
|---|---|---|
created_after | string | Only shipments created at or after this time. |
created_before | string | Only shipments created at or before this time. |
page | integer | Page number, from 1 (default 1). Use the previous reply's next_page. |
per_page | integer | Results per page, 10-50 (default 25). |
query | string | Free-text search: ZF number, tracking code, type. |
status | string | Only shipments in this status (one at a time). |
updated_after | string | Lower bound on the last update time (updatedAtMin). |
updated_before | string | Upper bound on the last update time (updatedAtMax). |
zenfulfillment_get_inventory_shipment Get inbound shipment
One inbound inventory shipment by its ZF reference (for example ZF01123700): SKU lines with announced and arrived quantities and the note. GET /inventory_shipments/export/{reference}/reference.
| Parameter | Type | Description |
|---|---|---|
reference * | string | Inventory shipment ZF reference, e.g. ZF01123700. |
zenfulfillment_list_returns List returns
List returns processed by the warehouse (PROCESSED = received, DONE = marked refunded), with the return's `_id` (needed by zenfulfillment_mark_return_done), ZF reference, note, products with quantity, reason, condition and whether they were actually returned, and the original order. Filter by ONE status, time or free text. Paging as in list_orders. GET /returns/export.
| Parameter | Type | Description |
|---|---|---|
created_after | string | Only returns created at or after this time. |
created_before | string | Only returns created at or before this time. |
page | integer | Page number, from 1 (default 1). Use the previous reply's next_page. |
per_page | integer | Results per page, 10-50 (default 25). |
query | string | Free-text search: street, city, country, zip, customer name, order number or ZF number. |
status | string | Only returns in this status. |
updated_after | string | Lower bound on the last update time (updatedAtMin). |
updated_before | string | Upper bound on the last update time (updatedAtMax). |
zenfulfillment_import_order Create or update an order
WRITE: send ONE order to the Zenfulfillment warehouse for picking, packing and shipping to the given address (fulfillment and shipping fees apply per the contract). The reference is your own order number: a reference that already exists UPDATES that order instead of creating a new one. Each item becomes one CSV row (Reference;Date;Name;Company;Street1;Street2;Zip Code;City;Region;Country;Email;Phone;SKU;Quantity). Use SKUs from zenfulfillment_list_stock. Check the address with the user first. In test mode nothing ships. POST /orders/import.
| Parameter | Type | Description |
|---|---|---|
city * | string | City. |
country * | string | 2-letter ISO country code, e.g. DE. |
items * | array | The products to ship. |
name * | string | Recipient name. |
reference * | string | Your own order reference/number (for example Bestellung1). An existing reference updates that order. |
street * | string | Street and house number. |
zip * | string | Postal code. |
company | string | Recipient company. |
email | string | Recipient email (carriers use it for tracking notices). |
order_date | string | Order date, yyyy-mm-dd (default today, UTC). |
phone | string | Recipient phone number. A leading + is sent as 00 (international prefix) so spreadsheets never read it as a formula. |
region | string | Region/state. |
street2 | string | Address line 2 (c/o, floor...). |
zenfulfillment_cancel_orders Cancel orders
WRITE, cannot be undone: cancel orders by reference (up to 50). Only orders that can still be cancelled (before the warehouse has packed or shipped them) are cancelled; the others come back in `errors`. Confirm the references with the user first. POST /orders/cancel.
| Parameter | Type | Description |
|---|---|---|
references * | array | Order references to cancel (as in the Reference column, e.g. the ZF reference or your own order number). |
zenfulfillment_mark_return_done Mark return as refunded
WRITE: set a return's status to DONE (refunded) in Zenfulfillment. Zenfulfillment only records the status; refund the customer in your shop yourself. Use the `_id` from zenfulfillment_list_returns (not the ZF reference). Cannot be set back through the API. POST /returns/{returnId}/done.
| Parameter | Type | Description |
|---|---|---|
return_id * | string | The return's `_id` from zenfulfillment_list_returns. |