Once an order is created via the Order API, Crystallize receives and automatically places it in the fulfilment pipeline. You can then make use of webhooks accordingly.
The first step here is to create an order using a GraphQL mutation. Follow the steps on the Creating Orders page if you’re not sure how.
Any order placed successfully via the Order API ends up in the fulfilment pipeline, which you can access from Crystallize under the Fulfilment section. A pipeline can have any number of stages, as shown in the image below.
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 upcoming sections.
You can then add in a webhook that fires whenever the pipeline stage for an order is changed. A good example would be updating 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’s a change in the pipeline stage.