To use the Orders API, install the @wix/events package using npm or Yarn:
@wix/events
npm install @wix/events
or
yarn add @wix/events
Then import { orders } from @wix/events:
{ orders }
import { orders } from "@wix/events";