Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refunds API #120

Open
Zales0123 opened this issue Feb 21, 2019 · 0 comments
Open

Refunds API #120

Zales0123 opened this issue Feb 21, 2019 · 0 comments
Labels
Feature New feature proposals.
Milestone

Comments

@Zales0123
Copy link
Member

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 🚀 🐎

@Zales0123 Zales0123 added the Feature New feature proposals. label Feb 21, 2019
@Zales0123 Zales0123 added this to the v1.1.0 milestone Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature proposals.
Projects
None yet
Development

No branches or pull requests

1 participant