cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice state not updated by /capture API

Invoice state not updated by /capture API

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