Once an order is created via the Order API, Crystallize receives it and the same is automatically placed in the fulfilment pipeline. You can then fire off the Webhooks accordingly.
The first step here is to create an order using the Order API. This is done using GraphQL mutations and you can follow the steps mentioned in the Creating Orders section to create one.
As mentioned above, any order placed successfully via the Order API ends up in the fulfilment pipeline. You can also assign an order to multiple pipelines. A pipeline can then have any number of stages as shown in the image below.
Assign Order to a Pipeline
Assigning an order to a pipeline is as simple as dragging and dropping it to the pipeline you wish to add it to. Keep in mine that you can assign a single order to multiple pipelines as shown in the video below.
Change Pipeline Stage
Changing the pipeline stage is equally easy. Head over to the pipeline, and simply drag and drop orders to any of the pipeline stages. Pipeline stage changes can also be done using the PIM API which will be discussed in the upcoming sections.
You can then add in a webhook that fires off whenever the pipeline stage for an order is changed. A good example would be when you would like to update your customer via email regarding any updates on their order. The image below shows a webhook that sends every detail related to the order any time there is a change in the pipeline stage.