Callbacks

Receive a typed event

WEBHOOK
receiveEvent
{
  "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,
      "sourceBin": {
        "empty": false,
        "quantityRemaining": 18
      },
      "targetBin": {
        "full": true
      }
    }
  }
}

One configured WCS endpoint receives TASK_STATE_CHANGED, OPERATION_STATE_CHANGED, BIN_RELEASED and STATION_STATE_CHANGED. Events are sent after state commits, in station order, with retries after failure. Deduplicate metadata.messageId and acknowledge only after durable processing. Retries retain messageId, createdAt and payload. Correlate by taskId and operationId. BIN_RELEASED authorizes only the identified source and requires verified station evidence; no target-release event is inferred. Full HTTP examples: task state, operation state, source release and station state. Operation results can also include sourceBin.empty, sourceBin.quantityRemaining and targetBin.full. These are reported observations; absent values are unknown and your WCS owns inventory reconciliation.

Rologi Motion sends this payload to the receiver URL you configure for this callback. Receiver authentication is agreed for your endpoint, and Rologi Motion can attach a configured destination token.

Related guide: Picking workflow.

Parameters

Ras-Site
stringheaderrequired

Supply exactly one nonempty value authorized for this integration.

Ras-Station
stringheaderrequired

Supply exactly one nonempty value authorized for this integration.

Body

application/json
metadata
objectrequired

Hide child attributes

metadata.messageId
stringrequired

Stable logical-message identity. Preserve it and the complete payload across delivery retries.

metadata.createdAt
stringrequired

UTC time when the sender first created this message; preserved across retries.

data
one of the event typesrequired

Hide child attributes

data.TASK_STATE_CHANGED
object

Hide child attributes

data.type
enum<string>required
Available options: TASK_STATE_CHANGED
data.taskId
stringrequired
data.state
enum<string>required
Available options: ACCEPTED, IN_PROGRESS, RECONCILIATION_REQUIRED, COMPLETED, CANCELLATION_REQUESTED, CANCELLED, FAILED
data.operation
object[]required

Hide child attributes

data.operation.operationId
stringrequired
data.operation.state
enum<string>required
Available options: PLANNED, SUBMISSION_PENDING, SUBMISSION_UNKNOWN, WAITING_FOR_SOURCE, WAITING_FOR_TARGET, COMPLETED, REJECTED, NOT_EXECUTED, CANCELLATION_REQUESTED, IN_PROGRESS
data.operation.result
object | null

Hide child attributes

data.operation.result.outcome
enum<string>required
Available options: SUCCESS, PARTIAL, FAILED, UNKNOWN
data.operation.result.requested
numberrequired
data.operation.result.unit
stringrequired
data.operation.result.picked
number | null
data.operation.result.placed
number | null
data.operation.result.dropped
number | null
data.operation.result.errorCode
string | null
data.operation.result.errorDescription
string | null
data.operation.result.sourceBin
object | null

Hide child attributes

data.operation.result.sourceBin.empty
boolean | null

Whether the station reported the source empty. False is an observed value.

data.operation.result.sourceBin.quantityRemaining
number | null

Nonnegative remaining quantity in the operation unit. Negative reports, including -1, are omitted and audited; your WCS owns inventory reconciliation.

data.operation.result.targetBin
object | null

Hide child attributes

data.operation.result.targetBin.full
boolean | null

Whether the station reported the target full. False is an observed value.

data.operation.result.validationIssues
object[]

Omitted when empty. A counting warning can accompany success; invalid execution quantities produce UNKNOWN with INVALID_ARM_RESULT.

Hide child attributes

data.operation.result.validationIssues.code
enum<string>required

NEGATIVE_SOURCE_REMAINING is a counting warning only. Other codes invalidate the execution quantities and require reconciliation.

Available options: NEGATIVE_EXECUTION_QUANTITY, PLACED_EXCEEDS_REQUESTED, ACCOUNTED_EXCEEDS_PICKED, NEGATIVE_SOURCE_REMAINING
data.operation.result.validationIssues.fields
string[]required

Affected fields in the operation result.

data.cancellationRequested
boolean

Cancellation was requested; active work may still finish.

data.reasonCode
string | null

Reason that execution stopped or requires reconciliation.

data.executionFinished
boolean | null

New responses/events report whether Motion will prepare further physical work for this task. True frees execution but accounting can still require review. Absent in older payloads means unknown.

data.OPERATION_STATE_CHANGED
object

Hide child attributes

data.type
enum<string>required
Available options: OPERATION_STATE_CHANGED
data.taskId
stringrequired
data.operationId
stringrequired
data.state
enum<string>required
Available options: PLANNED, SUBMISSION_PENDING, SUBMISSION_UNKNOWN, WAITING_FOR_SOURCE, WAITING_FOR_TARGET, COMPLETED, REJECTED, NOT_EXECUTED, CANCELLATION_REQUESTED, IN_PROGRESS
data.result
object | null

Hide child attributes

data.result.outcome
enum<string>required
Available options: SUCCESS, PARTIAL, FAILED, UNKNOWN
data.result.requested
numberrequired
data.result.unit
stringrequired
data.result.picked
number | null
data.result.placed
number | null
data.result.dropped
number | null
data.result.errorCode
string | null
data.result.errorDescription
string | null
data.result.sourceBin
object | null

Hide child attributes

data.result.sourceBin.empty
boolean | null

Whether the station reported the source empty. False is an observed value.

data.result.sourceBin.quantityRemaining
number | null

Nonnegative remaining quantity in the operation unit. Negative reports, including -1, are omitted and audited; your WCS owns inventory reconciliation.

data.result.targetBin
object | null

Hide child attributes

data.result.targetBin.full
boolean | null

Whether the station reported the target full. False is an observed value.

data.result.validationIssues
object[]

Omitted when empty. A counting warning can accompany success; invalid execution quantities produce UNKNOWN with INVALID_ARM_RESULT.

Hide child attributes

data.result.validationIssues.code
enum<string>required

NEGATIVE_SOURCE_REMAINING is a counting warning only. Other codes invalidate the execution quantities and require reconciliation.

Available options: NEGATIVE_EXECUTION_QUANTITY, PLACED_EXCEEDS_REQUESTED, ACCOUNTED_EXCEEDS_PICKED, NEGATIVE_SOURCE_REMAINING
data.result.validationIssues.fields
string[]required

Affected fields in the operation result.

data.BIN_RELEASED
object

Hide child attributes

data.type
enum<string>required
Available options: BIN_RELEASED
data.taskId
stringrequired
data.operationId
stringrequired
data.role
enum<string>required
Available options: SOURCE
data.portId
stringrequired
data.binId
stringrequired
data.STATION_STATE_CHANGED
object

Hide child attributes

data.type
enum<string>required
Available options: STATION_STATE_CHANGED
data.state
stringrequired
data.observedAt
stringrequired
data.reasonCode
string | null
data.sequence
integer | null

Local receipt sequence, not a supplier generation sequence. Absent in older messages.

Response

200

Receiver durably accepted the event. Delivery and retry policy remains part of the runtime implementation.