I am facing issues with the invoice state not been updated when capturing the invoice from API call.
Followed below steps:
1. Create 1 order from Magento UI.
2. Create an invoice for the order created in step 1 by selecting the Amount : Not Capture.
3. Capture the invoice using POST /invoices/{id}/capture API.
4. Check the Invoice state in the response of GET /invocies/{id} API
The state of invoice is "state" : 1 , whereas when I perform the capture through UI, I get the state changed to 2 for that invoice.
The same problem is observed in /void API where state should be updated to
state = 3