B2B order approval in Magento 2 Open Source: from checkout to an admin decision

3 min read

A silver order moves from a buyer through a burgundy pause stage to an admin panel with a sage green decision lever.

To test order approval in Kowal B2B Suite, follow the path from buyer to an authorized back-office operator and check subsequent processing. The first-launch guide establishes companies and roles. Here we follow one order-linked request using package 0.2.75 source.

Establish when the request is created

In the reviewed checkout flow, the Magento order exists before the approval request is saved. We are not describing automatic conversion of a previously approved Purchase Order. Adobe Commerce Purchase Order rules concern a different mechanism; do not transfer its customer screens or multi-approver rules to this Magento Open Source package.

The rule compares company, active B2B website, quote currency and grand_total against its threshold: an amount equal to the threshold already matches. With several matches, higher priority wins, then higher threshold. Do not compare different currencies as one amount. The buyer still needs an active company context and order.place; catalogue, price, payment and shipping checks also apply.

Separate request, order and operator decision

A matching rule creates a pending request with order, company, website, buyer identifiers and currency. The B2B context receives blocked_approval and the checkout stage puts the order on hold. No matching rule means not_required in the context. A success page alone does not confirm that downstream integration respects the block.

We check decisions under B2B > Approvals > Requests with an admin role allowed requests_decide; history is under Decisions. Do not assume a customer approval dashboard. Requires All Approvers exists as a field, but the inspected decision service does not collect every signature: one decision closes pending. A process needing unanimity or sequential levels requires separate verification and implementation.

Check the effects of each decision

Approve sets approved and not_exported and may release hold when the order state allows it. This is eligibility for subsequent processing, not evidence of export. Reject and request Cancel leave blocked_approval and attempt to hold the order if possible. Do not equate cancelling a request with cancelling the Magento order or refunding money.

Expected changes in the reviewed flow
Request stateOrder handlingExport context
pendingCreated and heldblocked_approval
approvedRelease hold if allowednot_exported
rejected / cancelledHold if allowedblocked_approval

Payment needs a separate check. Adobe distinguishes authorization, capture and invoicing; holding after order creation does not prove that the gateway did nothing earlier. Also agree with the integrator which adapter reads external_status. Do not assume every external export automatically respects B2B context.

Run controlled acceptance testing

On a test environment, prepare a company, buyer and separate back-office operator. Compare amounts below, equal to and above the threshold, then check Approve, Reject and Cancel on separate requests. Include a role without decision permission and a B2C purchase. Use synthetic data and a noncharging test payment method; do not start with customer payments.

For each case, reconcile request and order IDs, company, website, currency, decision, order state and external_status. Record the operator separately in the acceptance record. Customer account approval is a different decision from approving an order. After an error check every layer before retrying. Here we reviewed code and prepared a plan; we placed no orders and changed no roles, payments or exports.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)