To use the OrderInvoices API, install the @wix/ecom package using npm or Yarn:
@wix/ecom
or
Then import { orderInvoices } from @wix/ecom:
{ orderInvoices }