Skip to content

Cancellation Flow

Direction: BC → Centra Purpose: Cancel orders or individual order lines in Centra when cancelled in Business Central (optional).


This flow is optional and used only when BC initiates order cancellations that must be reflected in Centra. Not all customers need this flow.


Trigger: Manual — when an order is cancelled in BC (configurable) API operation: cancelDirectToConsumerOrder for a whole order, and updateDirectToConsumerOrder with cancelled lines for individual lines

Objects used:

Object Role
CA_CANCEL_ORDER Cancels an entire order in Centra
CA_CANCELORDERLINE Cancels individual order lines in Centra

Cancellation States:

Status Can be cancelled?
PENDING Yes
CONFIRMED Yes
PROCESSING Yes (unshipped lines only)
COMPLETED No

Variant A — Manual Cancellation (Standard)

Section titled “Variant A — Manual Cancellation (Standard)”

Order is manually cancelled in BC. Cancellation is sent to Centra immediately.

Variant B — Automatic Cancellation Based on Business Logic

Section titled “Variant B — Automatic Cancellation Based on Business Logic”

Triggered automatically based on specific conditions (e.g. item out of stock, order stale).

Section titled “Variant B2 — Cancellation Checked with the Warehouse System (Recommended with a WMS)”

When Business Central has a warehouse integration through Web Connect, the cancellation is first sent as a request to the warehouse system. With Ongoing WMS, Web Connect updates the order status in Ongoing (orders/{id}/orderStatus). If the warehouse has already started on the order, for example picking, Ongoing rejects the change and the order is not cancelled. Contact the warehouse to stop the order. If the warehouse accepts, the cancellation is sent to Centra.

Cancellations handled directly in Centra; this flow is not enabled. This is not recommended: cancel in Business Central, so that a warehouse integration can reject the cancellation if the order is already being picked.


Step What can go wrong What happens
Sending cancellation Order already shipped Centra rejects full cancellation; try line-level instead
Sending cancellation Centra API unavailable Job Queue entry fails; retried on next run

Related: Overview · Order — Inbound · Shipment · How-to