I am making a module where I am getting Invoice Increment id but I need Order Increment id. How to get the Order Increment Id by using Invoice Increment id?

If anyone has ideas please let me know.


1 Answer 1


Try this:

$invoice = $invoiceModel->loadByIncrementId('000000011');// Your invoice increment id here
$order = $invoice->getOrder();
$incrementId = $order->getIncrementId();

Where invoiceModel is an instance of \Magento\Sales\Model\Order\Invoice

  • Yes,this is working.
    – akgola
    Feb 13, 2018 at 13:37

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.