Return an item for a refund

A shopper picks items from a delivered order to return, with a reason and a drop-off point, and gets a QR code; returns close 30 days after delivery, and courier pick-up is planned. They have 14 days to hand in the parcel, or the return closes. The carrier's scan starts a warehouse inspection that ends in a full refund, a partial refund or a rejection.

15 screens and steps17 arrows0 warnings

What UJN shows here Point at a note to see its part of the drawing

Return an item for a refund  RETURNReturn items at a drop-off point; the refund follows the inspection. Courier pick-up is plannedStart From the order historyStartFrom the order historyOrder details (View) Route: /orders/:idViewOrder details/orders/:idReturn window closed (Modal) Returns close 30 days after deliveryModalReturn window closedReturns close 30 days after deliveryReturn items (View) Items, reasons, drop-off point Route: /orders/:id/returnViewReturn itemsItems, reasons, drop-off point/orders/:id/returnCourier pick-up (View) Pick a day and time Route: /orders/:id/return/pickup Inherited flags: future (planned for a later release)ViewCourier pick-upPick a day and time/orders/:id/return/pickup»Create return (Action) Return label and QR codeActionCreate returnReturn label and QR codeReturn QR code (View) Also sent by email Route: /returns/:idViewReturn QR codeAlso sent by email/returns/:idDrop off the parcel (Handoff, returns) QR code scanned at the counter Channel: drop-off point Timeout: 14 dHandoff, returnsDrop off the parcelQR code scanned at the counterdrop-off point · 14 dEnd, abandoned Return closed after 14 daysEnd, abandonedReturn closed after 14 daysCarrier scan (Event) From the carrierEventCarrier scanFrom the carrierReturns inspector (Actor) Checks the items Role: WarehouseActorReturns inspectorChecks the itemsWarehouseIssue refund (Action)ActionIssue refundPayment provider (System, external) Host: api.pay.exampleSystem, externalPayment providerapi.pay.exampleEnd, success Refunded in full or in partEnd, successRefunded in full or in partEnd, failure Rejected, item sent backEnd, failureRejected, item sent backNo label Navigation from from_orders to Order detailsReturn items · within 30 days Navigation from Order details to Return itemsReturn items · within 30 daysGet QR code Navigation from Return items to Create return Payload: {items, reasons, drop_off_point}Get QR code{items, reasons, drop_off_point}No label Navigation from Create return to Return QR codeTake the parcel Navigation from Return QR code to Drop off the parcelTake the parcelHand in parcel Return, resume from Drop off the parcel to Carrier scanHand in parcelNo label Navigation from Carrier scan to Returns inspectorFull refund Navigation from Returns inspector to Issue refundFull refundPartial refund Navigation from Returns inspector to Issue refund Payload: {refund_amount}Partial refund{refund_amount}Return items · after 30 days Negative from Order details to Return window closedReturn items · after 30 daysBook a pick-up Navigation from Return items to Courier pick-up Flags: future (planned for a later release)Book a pick-up»Keep the item Return, resume from Drop off the parcel to lapsedKeep the itemReject Negative from Returns inspector to rejectedRejectNo label Navigation, call from Issue refund to Payment provider Payload: {payment_id, refund_amount}{payment_id, refund_amount}No label Navigation from Issue refund to refundedClose Failed return from Return window closed to Order detailsCloseNo label Return, reply from Payment provider to Issue refund Payload: {refund_id}{refund_id}
The source (40 lines)
return-refund.puml
@startujnrender { direction: down; arrow_spacing: 24 }journey RETURN "Return an item for a refund"description: "Return items at a drop-off point; the refund follows the inspection. Courier pick-up is planned"unique_id_friendly: returns start from_orders { description: "From the order history" }view order { title: "Order details"; route: /orders/:id }view window_closed { type: modal; title: "Return window closed"; description: "Returns close 30 days after delivery" }view return_form { title: "Return items"; description: "Items, reasons, drop-off point"; route: /orders/:id/return }view pickup { title: "Courier pick-up"; description: "Pick a day and time"; route: /orders/:id/return/pickup }action create_return { title: "Create return"; description: "Return label and QR code" }view qr { title: "Return QR code"; description: "Also sent by email"; route: /returns/:id }handoff drop_parcel { title: "Drop off the parcel"; description: "QR code scanned at the counter"; channel: drop-off point; timeout: 14 d }end lapsed { type: abandoned; description: "Return closed after 14 days" }action scanned { type: event; title: "Carrier scan"; description: "From the carrier" }actor inspector { title: "Returns inspector"; description: "Checks the items"; role: Warehouse }action refund { title: "Issue refund" }system psp { type: external; title: "Payment provider"; host: api.pay.example }end refunded { type: success; description: "Refunded in full or in part" }end rejected { type: failure; description: "Rejected, item sent back" } from_orders --> orderorder --> return_form : [Return items] within 30 daysorder -left-x-> window_closed : [Return items] after 30 dayswindow_closed .x.> order : [Close]return_form --> create_return : [Get QR code] { payload: [items, reasons, drop_off_point] }return_form -left-> pickup : [Book a pick-up] { flags: [future] }create_return --> qrqr --> drop_parcel : [Take the parcel]drop_parcel .right.> lapsed : [Keep the item]drop_parcel ..> scanned : [Hand in parcel]scanned --> inspectorinspector --> refund : [Full refund]inspector --> refund : [Partial refund] { payload: [refund_amount] }inspector -right-x-> rejected : [Reject]refund -right-> psp { payload: [payment_id, refund_amount] }psp ..> refund { payload: [refund_id] }refund -left-> refunded@endujn