Skip to main content

Initial replenishment

Stocking your store for the first time

Because the first time you stock your store can involve thousands of products (which might be too much to handle for some services), we've got the following service for specifically this initial replenishment: InitialReplenishment.

This service takes a BlobID of the Excel file containing your products and an email address that any exceptions should be sent to. This service will schedule a task in the background, which will return immediately. What this task essentially does is cut up the Excel in parts of 100 lines, create purchase orders, ship the purchase orders and then receive them. Any errors will be sent to the provided email address.

We expect the Excel to have the following headers:

HeaderExampleDescription
SourceOrganizationUnitID15The EVA ID of the source OU
DestinationOrganizationUnitID16The EVA ID of the destination OU
BackendOrderIDY00123BackendID of the PO to be created. Since it's split, we will create Y00123_BATCH0000,Y00123_BATCH0001, etc.
LineReferenceWhatever you wantWill be stored on the order line
ProductBackendIDPROD654The BackendID of the product
Quantity2Quantity, of course
StockLabelID5The EVA ID of the stock label where this quantity should end up

This service requires the un-scoped InitialInventory functionality.