Bulk Create Products API
This endpoint allows you to upload multiple products in a single request. It is the most efficient way to synchronize your catalog and initialize inventory records for multiple SKUs.
POST
https://api-fulfillment.bosta.co/api/v1/inventory/products/bulkBatch create products. The response returns the initial inventory state for each successfully created SKU.
REQUEST BODY
{
"products": [
{
"name": "MAGDY222",
"description": "A sample product for testing",
"skuCode": "MAGDY222",
"price": 99.99,
"itemValue": 75,
"images": [
{
"url": "https://cdn.futura-sciences.com/cdn-cgi/image/width=1920,quality=50,format=auto/sources/images/dossier/773/01-intro-773.jpg"
}
],
"weight": 500,
"dimensions": {
"length": 10,
"width": 10,
"height": 10
}
}
]
}
🔄 WEBHOOK CALLBACK (POST)
Bosta will send this data to your webhookUrl when the order status changes:
{
"quantityOnHand": 100,
"quantityReserved": 10,
"availableQuantity": 90,
"businessId": "bi2gKAXt6v3DoXO",
"hubCode": "NewCairo_Hub",
"skuCode": "x-api-key-latest2555"
}
Responses
201Products created and inventory initialized
400Bad Request
Implementation Details
- Inventory Initialization: Every product created through this API automatically generates an inventory record. By default,
quantityOnHandstarts at 0. - Data Mapping: The response data structure matches our Inventory Webhook, allowing you to use the same parsing logic in your system.
- SKU Uniqueness: If you send a
skuCodethat already exists, that specific entry will be skipped or return an error depending on the organization settings.
Product Fields (Request)
| Field | Type | Description |
|---|---|---|
| skuCode | string | Required. Unique identifier for the product (Stock Keeping Unit). |
| price | number | The selling price of the product. |
| itemValue | number | Required. The cost of a single item. Must be greater than 0 and less than price. Shown as Item Value in the Fulfillment Dashboard. |
Field Breakdown (Response)
| Field | Description |
|---|---|
| quantityOnHand | Total physical stock in the warehouse. |
| quantityReserved | Stock blocked for pending orders. |
| availableQuantity | Net stock available for sale ($OnHand - Reserved$). |
| hubCode | The warehouse identifier where the product is stored. |