githubEdit

Orders in your free trial

circle-check

Prerequisites

What's an order?

An order is the entry point for the fulfillment process. The platform consumes the following information from an order object:

  • The consumer's location

  • The time the order was placed

  • The line items of the order, including:

    • Article (title and tenantArticleId)

    • quantity

This is the minimum information the platform needs for order fulfillment. However, more information can be provided. For example, an order line item can contain a list of scannable codes that must be scanned when the item is picked in a facility. Furthermore, it's recommended to configure the deliveryPreferences for the order.

Why does it matter for my free trial?

For this tutorial, we're assuming we're a shop with products to sell and a consumer wants to order those products, and then pick up that order from our shop. For that, we need to let the system know that an order has taken place on our online shop.

Let's add an order to our facility.

Placing an order

1

Open the orders endpoint

In Postman, find the POST Add new order endpoint (under Order routing, then Orders). You'll see the body is prefilled with some data. For our example, we'll replace all the prefilled data with our own.

circle-info

We're only using the required fields in this example, and not all the available option. See our orders article for more details and the API specification.

2

Edit data

You can edit the body in any way you wish, or leave it as it is.

3

Send the request

Click Send.

circle-info

Ensure you've refreshed your authToken if it's been more than 60 minutes since your last refresh.

You should get a 201 Created response. You'll notice some extra fields that are part of the response and have been automatically created.

circle-info

Although you can create orders manually, we recommend implementing a solution that receives incoming orders from shop systems. See our orders integration article for more information.

The order will also be visible in Backoffice for other team members to use. We'll take you through using Backoffice in the next article.

Last updated