Receiving orders as a fulfiller
You produce and ship for other businesses, and you run your own system — a warehouse management system, an ERP or a production planner. Your clients hand orders to you through the Meykt fulfillment network. With the fulfiller endpoints your system reads those orders with everything needed to make and ship them, reports progress, talks to the client and reports the shipment. Meykt passes every report on to the client, in their dashboard and to their own system.
This is the other side of Fulfillment via API, which describes the client's view.
#Before the first order
- Fulfiller area. In Meykt, switch on Fulfillment for your organization (it is part of your plan). Without it, every fulfiller endpoint answers
403. - Partnership. Each client is connected with you in Meykt. Only people send and accept that invitation.
- A live key with
fulfillment:read(read orders, files and messages) and, to report back,fulfillment:write. Addwebhooks:manageto register endpoints. Received orders are real orders of other businesses: test keys never see them and get403 unsupported_test_operation.
Received orders do not belong to an API connection. Every key of your organization with fulfillment:read sees all of them.
#The loop
- New order. Subscribe to
fulfillment_order.received, or pollGET /v1/fulfillment/orders?acknowledged=false. The event comes only once the order has arrived completely, with all items and files. - Read it.
GET /v1/fulfillment/orders/{id}returns the shipping address, the end customer's contact, the items with SKU, EAN, variant, quantity and personalization, the files, notes and the client's requests. - Download the files. Each file has a
download_path;GET /v1/fulfillment/orders/{id}/files/{fileId}returns a download URL valid for 300 seconds. - Take it over.
POST /v1/fulfillment/orders/{id}/acknowledgewith your own reference. From then on the order no longer appears underacknowledged=false. - Report progress.
POST /v1/fulfillment/orders/{id}/status— for examplein_progress, oron_holdwith a reason. - Ship.
POST /v1/fulfillment/orders/{id}/completionwithkind: "shipped"and tracking numbers (any carrier), orkind: "handed_over". The client receivesorder.shippedororder.handed_over.
If warehouse work was started in Meykt, settle its goods before reporting completion through your own system. Physically confirm raw goods put back, or owner return or scrap of processed goods, and release all reservations. Once that work is fully settled, its history does not prevent a separate completion report. Open warehouse work, active reservations, an existing Meykt warehouse shipment or partial deliveries still block it. Returning or scrapping goods never reports shipment: call /completion separately only for the shipment or handover that actually took place outside Meykt.
curl -s "https://api.meykt.com/v1/fulfillment/orders?acknowledged=false" \
-H "Authorization: Bearer $MEYKT_API_KEY"curl -s -X POST "https://api.meykt.com/v1/fulfillment/orders/$ORDER_ID/acknowledge" \
-H "Authorization: Bearer $MEYKT_API_KEY" -H "Content-Type: application/json" \
-d '{"external_reference": "WMS-48211"}'#Endpoints
| Method and path | Scope | Purpose |
|---|---|---|
| GET /v1/fulfillment/orders | fulfillment:read | List received orders, oldest first. Filters: acknowledged, status, client_id, updated_since; paging with limit and starting_after. |
| GET /v1/fulfillment/orders/{id} | fulfillment:read | One order with address, items, personalization, files, production, completion and requests. |
| GET /v1/fulfillment/orders/{id}/files/{fileId} | fulfillment:read | Short-lived download URL for one file of the order. |
| POST /v1/fulfillment/orders/{id}/acknowledge | fulfillment:write | Your system took the order over (optional external_reference). |
| POST /v1/fulfillment/orders/{id}/status | fulfillment:write | Report the status the client sees. |
| GET /v1/fulfillment/orders/{id}/messages | fulfillment:read | The thread with the client. |
| POST /v1/fulfillment/orders/{id}/messages | fulfillment:write | Message, question (with reason) or resume. |
| POST /v1/fulfillment/orders/{id}/change-requests/{requestId}/answer | fulfillment:write | Answer a request of the client, or accept its cancellation. |
| POST /v1/fulfillment/orders/{id}/completion | fulfillment:write | Report shipment or handover. |
| GET /v1/fulfillment/orders/{id}/completion | fulfillment:read | Read the completion report. |
| POST /v1/fulfillment/orders/{id}/completion/tracking | fulfillment:write | Replace the tracking numbers of a shipment report. |
| POST /v1/fulfillment/orders/{id}/production | fulfillment:write | Start production in Meykt (only if you produce with Meykt). |
#What an order contains — and what it does not
The order shows what you need to produce and ship, in the same form as everywhere in Meykt: personalization holds text fields (engraving text, colors), files the files Meykt holds (logos, print files). A file's role is the name of the field it belongs to.
Not part of it, as in the dashboard: the client's prices and amounts, the end customer's billing address and the client's internal ids. client.id is your client record in Meykt; client.order_number is the number the client uses — quote it when you talk to them.
transfer_complete: false means the handover had a gap (for example a file could not be copied). Do not produce such an order; ask the client.
replaces_order_id is set when this order replaces an earlier one. That happens when the client changes an order after you started work and you accept the change: the earlier order is cancelled, and the client's order reaches you again as a new order.
A client can also create changed items as a separate new order next to a finished one. That order arrives like any first order: it has no replaces_order_id, its client.order_number carries a suffix such as 2318-2, and nothing marks it as a follow-up. Treat it as a new order; engraving entered by the client is an ordinary entry in personalization.
#Status
status is the fulfillment status the client sees:
| Status | Meaning |
|---|---|
open | Received, not started. |
in_progress | Being worked on. |
query | You asked the client a question; automations on the order hold. |
paused, on_hold | Stopped by you, with an optional reason. |
completed | Work done. |
failed | Could not be made. |
cancelled | Cancelled — only after a request of the client. |
Set it with POST /v1/fulfillment/orders/{id}/status. query, paused, on_hold and failed may carry a reason (address_undeliverable, file_unusable, personalization_unclear, item_unavailable, deadline_at_risk, other) and a note; both appear in the thread and reach the client's system. A completed or cancelled order is not changed. If you also produce in Meykt and production is still open, the request needs production_action: keep lets it run, pause pauses started steps.
New status values may be added. Treat an unknown value as "unknown".
#Questions and messages
curl -s -X POST "https://api.meykt.com/v1/fulfillment/orders/$ORDER_ID/messages" \
-H "Authorization: Bearer $MEYKT_API_KEY" -H "Content-Type: application/json" \
-d '{"idempotency_key": "6f1d…", "action": "question", "reason": "address_undeliverable", "body": "The street number is missing."}'action: "message"writes to the client.action: "question"needs areason. The order goes toqueryuntil you resume.action: "resume"settles open questions and liftspausedoron_hold; the status follows production again.bodyis an optional note.
The client's answers arrive as fulfillment_order.message_received. A new shipping address from the client arrives as fulfillment_order.updated with reason: "shipping_address_changed" — read the order again before you print a label.
#Requests from the client
When the client wants to change or cancel an order you already work on, it appears in change_requests and as fulfillment_order.change_requested. Answer with POST /v1/fulfillment/orders/{id}/change-requests/{requestId}/answer:
decision: "reply"answers it. For a cancellation request this declines it.decision: "accept_cancellation"cancels the order on your side, stops production that may stop, and Meykt continues at the client: it removes the items or applies the change and hands the order over again (replacement_follows: true). If services are already booked for the order, sendbilling_choice:preservekeeps them billed,reversecredits them.
Quantity requests (quantity_request: true) are decided by a person in Meykt.
#Webhooks
Subscribe explicitly; these events need fulfillment:read and a live key. See Webhooks for signatures and retries.
| Event | When |
|---|---|
fulfillment_order.received | An order arrived completely. |
fulfillment_order.updated | The client changed something you need to act on (reason: "shipping_address_changed"). |
fulfillment_order.cancelled | The order was cancelled (or replaced by a new one). |
fulfillment_order.change_requested | The client asks for a change or cancellation (request_id, request_cancel). |
fulfillment_order.message_received | The client wrote in the thread (message_id, kind). |
Every event carries fulfillment_order_id, order_number, client_id, client_order_number and status. Read the order for the details.
#Limits
- Partnerships, product releases and the fulfiller area are set up by people in Meykt.
- Quantity requests and taking back a completion report happen in Meykt.
- Stock you hold for clients is reported to their shops by Meykt; see Inventory for reading stock.
- The help center explains the dashboard side: Handle transferred orders.
#Complete field reference
- Fulfiller: field reference — all request, response and parameter fields, including required values and conditional alternatives.
Machine-readable version of this page: https://www.meykt.com/developers/fulfiller.md