Refunds and credit notes
Routes: /org/ecom/orders and /org/ecom/credit-notes
Permissions: Manage Refund Request of Customer · Approve Refund Request · View Storefront Credit Notes
1. What a refund is here
Money going back, in two steps by two different permissions: someone raises it, someone else approves it. A processed refund produces a credit note — the document that records it.
| Step | Permission | Who typically holds it |
|---|---|---|
| Raise on a customer's behalf | Manage Refund Request of Customer | Support |
| Approve | Approve Refund Request | Finance or a manager |
| View the credit note | View Storefront Credit Notes | Finance |
/org/ecom/credit-notes sits under the storefront's route prefix, but its RBAC module is
finance_storefront_creditnotes in the Finance category — so View Storefront Credit Notes is
granted through a Finance role, not through the storefront ones.
A storefront manager with every org.ecom.orders.* permission can approve a refund and still not be
able to open the credit note it produced.
2. How a refund flows
3. Working the refund queue
Step 1 · Find them
The Refund pending toggle on the orders workbench scopes the list to orders with a refund "awaiting admin decision or gateway settlement".
One is waiting for a human — nobody has decided. The other is waiting for a gateway — decided, and the money is in transit. The toggle shows both; only the first is actionable.
Step 2 · Decide
Approval needs Approve Refund Request.
Step 3 · Check the credit note
4. Field reference
| Filter | Scopes to |
|---|---|
| Refund pending | A refund in REQUESTED or APPROVED — decided or not, not yet settled |
| Refunded pill | Orders with a processed refund |
Partial refunds
Refunds are recorded per item, so an order can be partly refunded. Such an order matches the
Refunded pill while its own status may still read DELIVERED — see
order lifecycle.
5. The admin contract
| Prerequisite | Without it |
|---|---|
refund.request_for_customer | Support cannot raise one |
refund.approve | Nothing is ever approved |
| View Storefront Credit Notes (Finance) | The credit note cannot be opened |
| A payment gateway | Card refunds have no route back |
6. Downstream
| Effect | Where |
|---|---|
| Credit note | /org/ecom/credit-notes |
| Order matches Refunded | The workbench |
| Shopper sees it | My orders |
7. Don't confuse this with…
| Thing | Why it differs |
|---|---|
| Refund | Money returned on an order |
| Credit note | The document recording it |
| Cancellation | No fulfilment; may involve no money at all |
| Coupon | A discount before payment |
8. Troubleshooting
| Symptom | Cause |
|---|---|
| Cannot approve | Missing refund.approve |
| Cannot open a credit note | View Storefront Credit Notes is a Finance permission |
| Refund stuck pending | Waiting on gateway settlement, not on a person |
| Order still says Delivered | Partial refunds do not change the order status |