kf fulfillment
Manage fulfillment orders.
Idempotent FulfillmentOrder lifecycle commands.
kf fulfillment order create
Create a FulfillmentOrder from an Order at status=CREATED.
Idempotent via --idempotency-key.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--order-id <id> | yes | Source order id. |
--actor-type <type> | yes | Actor type. |
--actor-id <id> | yes | Actor id. |
--fulfillment-ref <ref> | no | Tenant-supplied fulfillment reference. |
--source-location <id> | no | Picking location id. |
--ship-to-party <id> | no | Ship-to party id. |
--ship-to-address <id> | no | Ship-to address id. |
--priority <n> | no | Numeric priority. |
--planned-dispatch <iso> | no | Planned dispatch ISO timestamp. |
--source-system <name> | no | Source system name for audit. |
--idempotency-key <key> | no | Idempotency key for safe retries. |
Example
kf fulfillment order create --tenant tnt_demo --order-id ord_01 --actor-type USER --actor-id usr_samkf fulfillment order allocate
Transition a FulfillmentOrder from CREATED to ALLOCATED.
Idempotent via --idempotency-key.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--fulfillment-order-id <id> | yes | Fulfillment order id. |
--expected-version <n> | yes | Optimistic concurrency token. |
--actor-type <type> | yes | Actor type. |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. |
Example
kf fulfillment order allocate --tenant tnt_demo --fulfillment-order-id ful_01 --expected-version 1 --actor-type USER --actor-id usr_sam