I'd like the ability to create (and capture) an invoice based on a dollar amount rather than a quantity of items.

We are currently using the endpoint /V1/order/{orderId}/invoice to create invoices but there is no available parameter for the amount to be invoiced. Is creating an invoice and specifying the amount possible via the rest API?

  • the way magento totals works is by using prices for the item in the order and these prices come from product price along with catalog price rules, promotions rules or tier price / discount.. As you can see prices are complicated. Now, all this can be overwritten, customised but you would need still to describe how the prices for your items need to render? Commented Nov 17, 2018 at 15:32

2 Answers 2


You could assign a Custom price to an item, but, you still need to add a product quantity to an order for an invoice to be created. You can't modify the price directly at the invoice, you should modify the product price in the order (or Quote). That's not a limitation of the REST API, you can't do that even from the admin panel.


Creating an invoice based on an amount rather than a quantity of items is not directly supported by the Magento REST API.

The /V1/order/{orderId}/invoice endpoint you're using is designed to create an invoice for an order based on the quantity of items.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.