Integrate

Products and station

Shared commands, full requests and capability coverage.

Product registration/deletion and station pause/status commands remain available alongside the task API, including when task mode is enabled. A task's productId identifies a registered articleId; submitting the task does not create the article.

These shared commands retain their existing paths and plain JSON bodies. They do not use the task/bin message envelope or require the task/bin context headers. The deployment binds the destination station, and the authenticated caller must be in the command allowlist. The existing /products spelling is retained for these routes.

Register a product

POST https://motion.example.com/api/products
Authorization: Bearer <access-token>
Ras-Api-Version: 1
Content-Type: application/json

{
  "articleId": "SKU-42",
  "articleName": "Example product",
  "weightGrams": 175
}

Register the required articles before submitting their tasks. The body contains the ID, name and weight in grams. Successful acceptance returns 201; it does not establish that a task can execute before its bins are ready. See Register a product.

Delete a product

DELETE https://motion.example.com/api/products
Authorization: Bearer <access-token>
Ras-Api-Version: 1
Content-Type: application/json

{
  "articleId": "SKU-42"
}

The DELETE body is required. Coordinate catalogue changes with current station work; deleting an article does not cancel a task. See Delete a product.

Pause or resume the station

POST https://motion.example.com/api/state
Authorization: Bearer <access-token>
Ras-Api-Version: 1
Content-Type: application/json

{
  "status": "PAUSED"
}

Send OPERATIONAL in the same body to request resumption. Only these two requested values are supported. An acknowledgment is not proof of an immediate physical stop and does not cancel a task; use task cancellation to prevent further task contributions. The coordinator does not treat this command as persisted cancellation intent. See Pause or resume station.

Read station status

GET https://motion.example.com/api/status
Authorization: Bearer <access-token>
Ras-Api-Version: 1

The response preserves the existing status and optional error object, with code and message. Separately, authenticated station callbacks produce STATION_STATE_CHANGED events. See Get station status.

Capability coverage

The task workflow replaces the former picking commands while keeping the shared product and station commands. The table distinguishes mapped behavior from data that the current task contract does not expose.

Earlier capabilityCurrent task-mode behavior
Request a pickSubmit a task; each contribution becomes one private station job. Positive decimal PIECE quantities are supported.
Update queued bin informationReport actual readiness through /bin/state. Port/bin identities come from the admitted task and are not reassigned by a readiness report.
Cancel a queued pickCancel the task; remaining operations stop and cancellation is requested for an active job. Terminal evidence resolves active work.
Register/delete productThe shared commands above remain available.
Pause/resume and read station statusThe shared commands above remain available.
Pick-result callbackCounts, outcome and pick error details become operation results and task progress.
Station-status callbackState, observation time and the error code become STATION_STATE_CHANGED; the code is in reasonCode.
Next-source readiness callbackCorrelated, verified true readiness can produce BIN_RELEASED for its source. False, jobless or unverified reports are recorded internally and do not produce a WCS release event.

Current payload limits

  • Task submission references a product ID. It does not provide per-pick name, weight, dimensions or fragile overrides. Registration currently accepts only ID, name and weight.
  • Task/bin requests do not expose source stock quantity, an empty-source check option, batch ID, bin layout or compartment location. Bin readiness cannot change the task’s source/target identities.
  • Operation results now carry optional sourceBin.empty, sourceBin.quantityRemaining and targetBin.full observations. They are included in task reads and task/operation events when reported by the station. Missing values remain absent; false and zero are retained. Your WCS owns inventory reconciliation. These fields do not change readiness, movement permission or the coordinator’s continuation policy.
  • Product pickability and returned layout/compartment details remain internal and are not exposed in typed WCS events.
  • A station-state event contains the error code as reasonCode, but does not forward the station error message. A synchronous status query retains its existing error object.
  • Task/bin writes and all typed events have message metadata. Shared product/station commands retain their earlier bodies without a creation timestamp or logical message identity.

These limits matter when the WCS uses stock observations, full-bin detection or compartment information for its next action. They are not implied by a successful task result or a source release. The callback examples show exactly the fields currently delivered.