cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2 how can i get invoice of order placed with rest api

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Re: magento 2 how can i get invoice of order placed with rest api

Hello @pratap_penmetsa,

 

Please below REST endpoint URL to generate invoice

 

Endpoint URL: http://magento.com/index.php/rest/V1/order/{order_id}/invoice
Request: POST
Header: Authorization bearer {access-token}}


I have also tried above Rest API, You can check result here https://www.screencast.com/t/xOCyjalmT

2018-10-03_10-35-49.jpg

 

After get invoice id, you can get invoice data by http://magento.com/index.php/rest/V1/invoices/{id} rest api, You can check more detail in my previous comment.

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: magento 2 how can i get invoice of order placed with rest api

Hello @pratap_penmetsa

 

Have you tried with

 

rest/V1/order/{order_id}/invoice
Order_id param is required in this

 

If you want invoice data you can follow below API url:

rest/V1/invoices/{id}

Here id you will get from previous API.

 

If this is not working at your end then there is something different issue. 

Manish Mittal
https://www.manishmittal.com/