Skip to main content

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.

POSThttps://api-fulfillment.bosta.co/api/v1/inventory/products

Register 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
 {
"success": true,
"message": "Product created successfully",
"data": {
"id": "prod_778899",
"skuCode": "x-api-key-latest2555",
"createdAt": "2026-01-15T15:00:00.000Z"
}
}
400SKU already exists, or invalid itemValue (missing, 0, or not less than price)
 {
"success": false,
"message": "Product with this SKU code already exists."
}

Field Definitions​

FieldTypeDescription
skuCodestringRequired. Unique identifier for the product (Stock Keeping Unit).
pricenumberThe selling price of the product.
itemValuenumberRequired. The cost of a single item. Must be greater than 0 and less than price. Shown as Item Value in the Fulfillment Dashboard.
weightnumberThe weight of the product in grams.
dimensionsobjectPhysical size (length, width, height) in cm.
externalPlatformobjectUsed 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.