Create Product API
This endpoint allows you to register a new product in the inventory system. Defining products accurately with their skuCode, weight, and dimensions is crucial for calculating shipping fees and managing warehouse fulfillment.
POST
https://api-fulfillment.bosta.co/api/v1/inventory/productsRegister a new product. The skuCode must be unique across your organization.
REQUEST BODY
{
"name": "Capital Case",
"description": "product from using x-api-key2",
"skuCode": "x-api-key-latest2555",
"price": 99.99,
"itemValue": 75,
"images": [
{
"url": "https://cdn.futura-sciences.com/cdn-cgi/image/.../01-intro-773.jpg"
}
],
"externalPlatform":{
"platform":"custom_api", // static variable
"webhookUrl":"http://update.inventory.com" // implement this api to recieve products quantity
},
"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
201Product created successfully
400SKU already exists, or invalid itemValue (missing, 0, or not less than price)
Field Definitions
| 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. |
| weight | number | The weight of the product in grams. |
| dimensions | object | Physical size (length, width, height) in cm. |
| externalPlatform | object | Used to link the product to your internal system and receive inventory sync webhooks. |
Why define dimensions?
Providing the weight and dimensions (length, width, height) allows our shipping engine to automatically select the best box size and provide more accurate shipping rates from partners like Bosta.