Shipment Flow
Direction: BC → Centra Purpose: Notify Centra when orders are shipped and trigger payment capture.
Overview
Section titled “Overview”When an order is shipped in Business Central, Web Connect automatically sends shipment details to Centra. This updates the order status and can trigger payment capture by the payment service provider.
The flow involves three steps:
- Create shipment — Record which items are being shipped
- Complete shipment — Mark the shipment as complete
- Capture payment — Trigger payment authorization/capture (if configured)
How It Works
Section titled “How It Works”Trigger: Posted Sales Shipment created in BC
API operations: createShipment (with shipped date, tracking and an optional capture flag), and captureOrder when capture is done as a separate step
Objects used:
| Object | Role |
|---|---|
CA_SHIPMENT |
Creates the shipment in Centra (createShipment) |
CA_SHIPMENTINPUT |
Order, shipped lines, shipped date, and the flags isGoodToGo, isPaid and capture |
CA_SHIPMENTINFO |
Carrier, service, tracking number and return tracking number |
CA_CONFIRM_SHIPPEDORDER |
Confirms the order in Centra (confirmOrder) as part of the shipment flow |
CA_CAPTURESHIPMENT |
Requests payment capture for the order (captureOrder) |
Process steps:
- Warehouse posts a Sales Shipment in BC
- Web Connect detects the shipment creation
- Web Connect sends
createShipmentto Centra with the shipped lines, shipped date, carrier and tracking number - Centra registers the shipment → order status: CONFIRMED → PROCESSING
- If capture is used, it is requested with the capture flag on the shipment or with
captureOrder - Centra’s payment provider captures the payment
- Order moves toward
COMPLETEDstatus once all lines are shipped
Sequence diagram:
Variants
Section titled “Variants”Variant A — Full Shipment with Capture (Standard)
Section titled “Variant A — Full Shipment with Capture (Standard)”All ordered items are shipped and payment is captured in one transaction.
Variant B — Partial Shipments
Section titled “Variant B — Partial Shipments”Only some items are shipped. The remaining items stay allocated until a subsequent shipment or cancellation.
Variant C — Shipment Without Capture
Section titled “Variant C — Shipment Without Capture”Some customers handle payment separately and do not want automatic capture triggered.
Configuration Notes
Section titled “Configuration Notes”- Shipment trigger: Posted Sales Shipment (table 110) detects when goods are shipped
- Carrier/tracking: Shipping agent and service codes can be included if configured
- Multiple shipments: An order can have multiple shipments — each is sent to Centra separately
Error Handling
Section titled “Error Handling”| Step | What can go wrong | What happens |
|---|---|---|
| Detecting shipment | Web Connect not monitoring Sales Shipment | Shipment is never sent to Centra |
| Creating shipment | Order not CONFIRMED in Centra | API returns error; shipment not created |
| Completing shipment | Centra API unavailable | Job Queue entry fails; retried on next run |
| Capturing payment | PSP unavailable or auth expired | Capture fails; warning returned but shipment is recorded |
Related: Overview · Order — Inbound · Cancellation · How-to
