Movu Simulator
A stand-in Movu warehouse for testing the Ceyenne Movu integration end-to-end when no real Movu test environment is available.
Signing in
The web pages require a sign-in with your ordinary Ceyenne account. Access is granted per organization: you can sign in only if your organization has been given access to the Movu simulator application. An administrator grants that in the Configuration portal; without it, a correct username and password are still refused.
The sign-in page reports one generic message for every refusal — wrong password, inactive account, and "no access to the simulator" look identical on purpose, so the page cannot be used to probe which accounts exist or which ones have access.
Only personal accounts can sign in. A Service account (the kind an integration uses with an API key)
is refused with that same message, even when its organization has access to the simulator; the
/api/v3 interface is where such an account belongs.
Two-step sign-in. After the password, the simulator asks for a code from the authenticator
app on your phone or for your passkey, the same ones that serve the Configuration portal and the
Packer console. An account that has neither yet is taken to /account/two-factor/setup first and can
reach nothing else until a code has been confirmed or a passkey created; ten single-use recovery
codes are then shown once, for when the phone or passkey is not at hand. With a passkey, Sign in
with a passkey on the login page needs no username, password or code (only in browsers that support
passkeys). The Two-step sign-in link next to your name makes new recovery codes, replaces the
authenticator and adds, renames and removes passkeys (all but renaming ask for a current code or a confirmation
with a passkey; your only second factor cannot be removed). Lost the phone, the passkeys and the codes? An administrator
resets two-step sign-in for the account in the Configuration portal. Five wrong codes lock the account for 15
minutes.
The /api/v3 interface is unaffected: it is called by machines, not
people, and continues to authenticate with the x-api-key header only.
1. What it does
The simulator plays the Movu side of the integration:
| Direction | Behaviour |
|---|---|
| Ceyenne → "Movu" | It serves the Movu ops V3 order-fulfillment and webhook-registration API
(/api/v3/orders…, /api/v3/webhooks/registrations) with
spec-shaped responses, requires the x-api-key header when one is configured,
and stores every order and request it receives. |
| "Movu" → Ceyenne | From the Orders page an operator sends webhook notifications
(OrderProcessed, OrderFinished, OrderCancelled, …) to the registered webhook
receiver — the same NotificationWrapper JSON and static HTTP headers the
real Movu would deliver. |
Orders do not progress on their own: sending a notification is what moves the simulated order through its lifecycle. Calling the cancel or abort endpoint only marks the order ("cancel requested"); the state changes when you send the matching notification, mirroring Movu's asynchronous behaviour.
2. Pointing the integration at the simulator
- Run the simulator and note its base URL (e.g.
https://localhost:7310). - In the Ceyenne configuration portal, edit the tenant's Movu configuration:
set the base URL to the simulator's URL and the API key
to the value configured under
Simulator:ApiKey(any value works while that setting is empty). - Register the webhook receiver through the integration as usual — the registration (address, shared secret and tenant headers) is stored by the simulator and used for all deliveries. Alternatively add a registration manually on the Webhook registrations page.
3. Pages
Orders
Every order received on POST /api/v3/orders, filterable by id, state and type.
Lines counts the order lines the order holds — sent with it plus added
later. It is not the order's orderLineCount: that is the number of lines an open
order expects, part of the order itself.
Expanding a row shows the order as the API returns it now — every update and added line
applied — next to the request body as received, and the notification panel with shortcut buttons
(Processed, Finished, Cancelled, Aborted) plus a dropdown for the full lifecycle
(OrderCreated, OrderStarted, OrderActivated, …). The delivery result per receiver is
shown inline. Badges flag orders whose cancel/abort endpoint was called and ids that were
re-submitted after finishing.
Webhook registrations
The receivers notifications are delivered to. Registrations arriving through the API are listed together with manually added ones; header values are hidden by default because they typically contain the receiver's shared secret.
Sent notifications
Every delivery attempt with the exact posted body, the receiver's response and a Resend action.
Request log
Every API call received, including rejected (401) and unimplemented (404) ones, with the raw request body.
4. Simulation rules
| Rule | Detail |
|---|---|
| Duplicate order id | 409 Conflict, like the real system. Whether an id that already reached a
terminal state may be re-initiated is controlled by
Simulator:AllowOrderIdReuseAfterTerminalState (default true:
the row is reset and marked "resubmitted"; its lines and updates start over from the
new body). Of two re-creations of one id at the same time, one wins and the other
gets 409, as for a live duplicate. Test both — the real Movu's behaviour
here is unconfirmed. |
Order update (PATCH /api/v3/orders/{id}) |
Only the fields present in the body change: due, barcode,
priority, open, orderLineCount and
customProperties (replaced as a whole). The answer and every later read
show the result. |
Added order line (POST …/orderlines) |
Only on an open order ("open": true; a close, or an
update with "open": false, ends that), otherwise 409 Conflict
like the real system. Stored on the order with everything it carries (storage profile,
carriers, custom properties) and returned by every later read, after the lines that
came before it.
The 201 answer is the line exactly as a read returns it. A line id the
order already has: 409 Conflict. A line without an id is named
{orderId}-L{n}. |
Order-line update (PATCH …/orderline/{lineId}) |
Only the fields present in the body change: barcodes, slot,
storageProfile and customProperties, each replaced as a whole.
The answer and every later read show the result. A line the order does not have:
404. |
| Simultaneous changes to one order | Applied one after the other; none overwrites another. A change that keeps losing to
other changes of the same order (five times in a row) is answered
409 — send it again. |
| Cancel / abort of a finished order | 400 with a problem body — the refusal the integration treats as an
expected race. |
| Unknown order | 404 with a problem body. |
Missing/wrong x-api-key |
401 when Simulator:ApiKey is set; accepted otherwise. |
| Spec routes the simulator does not implement | Recorded in the request log and answered with 404 (terminals, handling
units, locations, relocations, status codes … are out of scope). |
5. Configuration
{
"ConnectionStrings": {
"MovuSimulatorDb": "<SQL Server connection string; LocalDB placeholder in Development>"
},
"EnableMigrations": true, // let the host create/upgrade its own database
"Simulator": {
"ApiKey": "", // empty = accept any key
"AllowOrderIdReuseAfterTerminalState": true
}
}