This guide explains how to test the shipment cancellation flow for a Shipping App end to end and verify that it correctly updates the shipment status inside a Salla store.
Testing the shipment cancellation flow is important to detect issues before publishing the app. This helps ensure that cancellation requests are handled correctly and that status updates behave as expected.The Shipping App can be tested using a Salla demo store to confirm the connection between the App and the store, which is fired when the merchant requests to cancel an existing shipment.
For this testing scenario, the focus will be on the flow where the merchant initiates a cancellation request, and allows the cancellation logic to be tested end to end.
1
Open Orders to locate a cancellable shipment
From the Merchant dashboard, hover over Orders and click All Orders to locate the shipment that is eligible for cancellation.
2
Start the cancellation flow
Select an order that already has its shipping label. Open the action dropdown and choose Cancel shipment to begin the cancellation request.
3
Handling the cancellation event
When you apply the action, Salla will make a call to the app function you created, where retrieve cancelled shipment details happens and then update shipment status to “Cancelled” on the shipping api system. For more details follow the details here
Shipping companies can reject cancellation if the shipment is already dispatched/delivered.
4
Success Page
Once successful, you will be able to see a message on the screen indicating that the shipment is cancelled.