Adding facilities
After the environment is set up, facilities can be created using the API. This tutorial demonstrates how to add a facility representing a flagship store in Frankfurt, Germany.
The request payload includes the following properties:
name: The name used for the facility, which can be an internal identifier like "Frankfurt flagship store".address: The physical location of the facility.locationType: The type of location, which can beSTORE,EXTERNAL, orWAREHOUSE. Warehouses do not offer Click&Collect services.tenantFacilityId: The facility's ID in the tenant's external systems. This value is optional but must be unique if provided.status: The facility's status after creation.ONLINEfacilities can fulfill new orders.SUSPENDEDfacilities can complete their current workload but do not accept new orders.OFFLINEfacilities cannot fulfill any orders.services: A list of services the facility offers. For example,PICKUPenables Click&Collect, andSHIP_FROM_STOREenables direct shipping to customers.pickingTimes: The time windows during which employees pick orders. These can differ from the facility's opening hours. Acapacitycan be defined for each time window to limit the number of orders processed within that timeframe.
The API responds with 201 CREATED, indicating the request was successful and including the created facility in its payload.
The response includes additional properties not present in the request:
id: The unique ID for the facility infulfillmenttools.version: The entity's version in the database. This is used for locking mechanisms and is typically1upon creation.fulfillmentProcessBuffer: The duration in minutes until an order is considered fully processed.capacityEnabled: A boolean indicating whether configured capacity limits for picking times are enforced.created: The timestamp indicating when the facility was created infulfillmenttools.lastModified: The timestamp indicating when the facility was last modified.
Adding warehouses
The same endpoint is used to add warehouses, but the payload differs. Warehouses in this example have picking times from 5:00 AM to 11:59 PM, Monday to Saturday, and higher capacities.
The API will again respond with a 201 CREATED status and the new warehouse entity.
Disclaimer
The addresses were randomly picked by looking up the city on Google Maps and zooming into a random place in that city. If one of the addresses offends you in any way, please let us know, and we will change it immediately.
Last updated