Get started

Quickstart

Complete URLs, context headers and message bodies.

Task mode, port mappings and receiver credentials must be configured for your installation. The product IDs below must already be registered at the station.

Submit a task

Choose a target and the required source contributions. In this example the target is already READY, and source arrival determines execution order.

PUT https://motion.example.com/api/task/TASK-200
Authorization: Bearer <access-token>
Ras-Api-Version: 1
Ras-Site: WAREHOUSE-01
Ras-Station: ARM-01
Content-Type: application/json

{
  "metadata": {
    "messageId": "WCS-MSG-TASK-200",
    "createdAt": "2026-10-21T09:00:00.000Z"
  },
  "data": {
    "orderRef": "ORDER-900",
    "sourceSelectionStrategy": "READINESS",
    "target": {
      "portId": "TARGET-1",
      "binId": "900",
      "state": "READY"
    },
    "operation": [
      {
        "operationId": "OP-1",
        "productId": "SKU-42",
        "quantity": {
          "amount": 1,
          "unit": "PIECE"
        },
        "source": {
          "portId": "SOURCE-1",
          "binId": "101",
          "state": "NOT_READY"
        }
      },
      {
        "operationId": "OP-2",
        "productId": "SKU-99",
        "quantity": {
          "amount": 2,
          "unit": "PIECE"
        },
        "source": {
          "portId": "SOURCE-2",
          "binId": "202",
          "state": "NOT_READY"
        }
      }
    ]
  }
}

The task API returns 201 for a new task and 200 for the same task intent. These responses confirm durable admission. The coordinator submits the selected source operation when its readiness policy permits; completion is reported later.

Report a source ready

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

{
  "metadata": {
    "messageId": "WCS-BIN-101-READY",
    "createdAt": "2026-10-21T09:00:05Z"
  },
  "data": {
    "portId": "SOURCE-1",
    "binId": "101",
    "state": "READY"
  }
}

Preserve the original messageId, createdAt and body when retrying an unknown delivery. Wait for acknowledgment before sending another state for the same port.

Read progress

GET https://motion.example.com/api/task/TASK-200
Authorization: Bearer <access-token>
Ras-Api-Version: 1
Ras-Site: WAREHOUSE-01
Ras-Station: ARM-01

To read occupancy, call GET https://motion.example.com/api/bin/state?portId=SOURCE-1 with the same Authorization, Ras-Api-Version, Ras-Site and Ras-Station headers.

Receive progress events

Your configured receiver uses its own agreed credentials. The example shows a bearer token for that receiver, independent of your inbound token.

POST https://wcs.example.com/api/event
Authorization: Bearer <access-token>
Ras-Site: WAREHOUSE-01
Ras-Station: ARM-01
Content-Type: application/json

{
  "metadata": {
    "messageId": "RP-EVENT-401",
    "createdAt": "2026-10-21T09:00:10Z"
  },
  "data": {
    "type": "OPERATION_STATE_CHANGED",
    "taskId": "TASK-200",
    "operationId": "OP-1",
    "state": "COMPLETED",
    "result": {
      "outcome": "SUCCESS",
      "requested": 1,
      "unit": "PIECE",
      "picked": 1,
      "placed": 1,
      "dropped": 0
    }
  }
}

Rologi Motion sends events after committing progress. Deduplicate metadata.messageId and acknowledge only after durable processing. Delivery failures are retried with the same identity, timestamp and payload.

Cancel remaining work

POST https://motion.example.com/api/task/TASK-200/cancel
Authorization: Bearer <access-token>
Ras-Api-Version: 1
Ras-Site: WAREHOUSE-01
Ras-Station: ARM-01
Content-Type: application/json

{
  "metadata": {
    "messageId": "WCS-CANCEL-TASK-200",
    "createdAt": "2026-10-21T09:01:00Z"
  },
  "data": {
    "reason": "Order cancelled"
  }
}

A 202 response means cancellation is requested and the task still needs resolution. No further contributions start. The active pick can finish before cancellation takes effect; keep reporting real bin readiness and use events or GET task to read the outcome. A 200 response returns an already resolved task. This is not an emergency stop.