I have one order, this order is having 3 items. I want to create different invoices of different items using Rest API. It is possible using the admin panel in Magento-2.1, but not using rest API. How to create a partial invoice?
Bhakti Thakkar
1,28715 silver badges35 bronze badges
asked Sep 14, 2018 at 7:23
Lovely Setia
4274 silver badges19 bronze badges
-
anybody please help me.Lovely Setia– Lovely Setia2018年09月18日 04:52:40 +00:00Commented Sep 18, 2018 at 4:52
1 Answer 1
You have to use this endpoint
POST /V1/order/{order id}/invoice
the json should be
{
"items": [
{
"order_item_id": {item_id},
"qty": 1
}
]
}
the item id is the item id of the product in the order
answered Sep 21, 2018 at 2:13
WISAM HAKIM
2,1531 gold badge14 silver badges21 bronze badges
-
I will use this API,but it is show wrong details.Suppose I have two items in order,one is simple product and other is bundle product.When i generate invoice of simple product,then it show simple product information as well as bundle product parent item detail . It show in screenshot as below:i.sstatic.net/Vteo6.pngLovely Setia– Lovely Setia2018年09月21日 05:50:30 +00:00Commented Sep 21, 2018 at 5:50
-
anybody guide me.Lovely Setia– Lovely Setia2018年10月03日 10:50:54 +00:00Commented Oct 3, 2018 at 10:50
-
what is the type of your bundle product, is it Fixed or Dynamic?WISAM HAKIM– WISAM HAKIM2018年10月03日 13:14:40 +00:00Commented Oct 3, 2018 at 13:14
-
Bundle Product-DynamicLovely Setia– Lovely Setia2018年10月03日 13:15:25 +00:00Commented Oct 3, 2018 at 13:15
-
please have a look at this wiki, i could not write the whole text here, wikicoode.com/magento2/…WISAM HAKIM– WISAM HAKIM2018年10月03日 13:26:32 +00:00Commented Oct 3, 2018 at 13:26
Explore related questions
See similar questions with these tags.
default