- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Custom prices vie REST API
Hi guys,
I have to import old orders from another system so the customer can see their old orders listed on Magento (new system).
The problem is: We use a custom pricing algorithm, so basically, every order has it's own product prices.
As the Magento solution is being developed by another team, we would like to do as much as possible directly from our side trough the REST API.
Is there a way to send custom product prices per order/item via REST API?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Custom prices vie REST API
This questions is the same than https://community.magento.com/t5/Magento-2-x-Programming/Custom-shipping-price-trough-the-REST-API/m... , right?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Custom prices vie REST API
Hi Damian,
No,
The other is about shipping prices, this one is about order item product prices.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Custom prices vie REST API
Take a look at https://devdocs.magento.com/swagger/#!/salesShipmentRepositoryV1/salesShipmentRepositoryV1SavePost
The anchors won't work so look for the method salesShipmentRepositoryV1 and the the POST method.
I didn't tried but maybe you can explore there?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Custom prices vie REST API
thank you,
I will give it a try, but do you know how can I have custom Order Item prices?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Custom prices vie REST API
If you check the params you'll see you can send the price of the product.
I didn't tried but maybe you can use it and share the results.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Custom prices vie REST API
I already tried to send the price parameter of the item on the item endpoint and it didn't work,
but I will try it trough the shipment endpoint then and report back
Thank you