RefundPlugin
RefundPlugin copied to clipboard
Refunds API
As we want to make refunds as useful as it's possible for Sylius, I think it's crucial to introduce at least basic refunds API. It should consist of:
/admin/orders/{orderNumber}/refund-units- refund units of a specific order/admin/credit-memos/- list of all credit memos/admin/orders/{orderNumber}/credit-memos- list of all credit memos of a specific order/admin/orders/{orderNumber}/credit-memos/{id}- details of a specific credit memo/admin/orders/{orderNumber}/refund-payments- list of all refund payments of a specific order/admin/orders/{orderNumber}/refund-payments/{id}/complete- complete a refund payment
The tricky part an URL for a customer, to list all credit memos of their order. As shop API for Sylius is provided as a plugin, maybe it would be the best option to detect is it installed and if yes, then include a /credit-memos/{id}/download route? That for sure need to be considered carefully 🚀 🐎