How does it work behind the scenes?
When a customer returns an item or an order was canceled after being purchased through Best Buy BOPIS, Alloy Automation will trigger the refund process through Shopify and reflect the order status in the Shopify UI for the merchant. Broadly speaking, and for the purposes of understanding the return and cancellation flow specifically, the relevant lifecycles are as follows:| Line item Lifecycle | Alloy Action |
|---|---|
| SENT_FOR_FULFILLMENT -> CREATED -> READY_FOR_PICKUP -> PICKED_UP | No action taken |
| SENT_FOR_FULFILLMENT -> CREATED -> CANCELED | Cancel and refund in Shopify |
| SENT_FOR_FULFILLMENT -> CREATED -> READY_FOR_PICKUP -> CANCELED | Cancel and refund in Shopify |
| SENT_FOR_FULFILLMENT -> CREATED -> READY_FOR_PICKUP -> PICKED_UP -> RETURNED | Refund in Shopify |
- Calculates a refund - Used to understand if line items may have already been refunded and how much to refund.
- Creates a refund
- Cancel a fulfillment - Fulfillments (which we create upon order creation) need to be canceled before the order can be.
- Cancel an order - Note that while orders cannot be partially canceled, they can be partially refunded. If only one line item is canceled, we will cancel the full order but only refund the relevant line item. Canceling an order gives it a canceled indicator on Shopify and prevents the order from being edited via the Shopify UI.
- Order partially canceled (one or more line items returned or canceled)

- Order fully canceled (single line item return, single cancelation)

- Order fully canceled (single line item return, single cancelation)


