Zenfulfillment MCP by usefulapi

v1.12.1
io.usefulapi/zenfulfillment Checked 3 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
created_afterstringOnly orders created at or after this time.
created_beforestringOnly orders created at or before this time.
pageintegerPage number, from 1 (default 1). Use the previous reply's next_page.
per_pageintegerResults per page, 10-50 (default 25).
querystringFree-text search: shipping street, city, country, zip, customer name, order number or ZF number.
statusstringOnly orders in this status (one at a time).
updated_afterstringLower bound on the last update time (updatedAtMin).
updated_beforestringUpper 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}.

ParameterTypeDescription
reference *stringExternal 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.

ParameterTypeDescription
limitintegerMost SKUs to return (default 200).
max_quantityintegerOnly SKUs with at most this many units on stock (use for low-stock checks).
sku_containsstringOnly 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.

ParameterTypeDescription
created_afterstringOnly shipments created at or after this time.
created_beforestringOnly shipments created at or before this time.
pageintegerPage number, from 1 (default 1). Use the previous reply's next_page.
per_pageintegerResults per page, 10-50 (default 25).
querystringFree-text search: ZF number, tracking code, type.
statusstringOnly shipments in this status (one at a time).
updated_afterstringLower bound on the last update time (updatedAtMin).
updated_beforestringUpper 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.

ParameterTypeDescription
reference *stringInventory 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.

ParameterTypeDescription
created_afterstringOnly returns created at or after this time.
created_beforestringOnly returns created at or before this time.
pageintegerPage number, from 1 (default 1). Use the previous reply's next_page.
per_pageintegerResults per page, 10-50 (default 25).
querystringFree-text search: street, city, country, zip, customer name, order number or ZF number.
statusstringOnly returns in this status.
updated_afterstringLower bound on the last update time (updatedAtMin).
updated_beforestringUpper 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.

ParameterTypeDescription
city *stringCity.
country *string2-letter ISO country code, e.g. DE.
items *arrayThe products to ship.
name *stringRecipient name.
reference *stringYour own order reference/number (for example Bestellung1). An existing reference updates that order.
street *stringStreet and house number.
zip *stringPostal code.
companystringRecipient company.
emailstringRecipient email (carriers use it for tracking notices).
order_datestringOrder date, yyyy-mm-dd (default today, UTC).
phonestringRecipient phone number. A leading + is sent as 00 (international prefix) so spreadsheets never read it as a formula.
regionstringRegion/state.
street2stringAddress 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.

ParameterTypeDescription
references *arrayOrder 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.

ParameterTypeDescription
return_id *stringThe return's `_id` from zenfulfillment_list_returns.