Bulk Inventory Sync API

The Bulk Sync API allows you to update inventory and pricing for multiple products across multiple locations in a single request. This is ideal for syncing data from external systems like ERPs, POS systems, or inventory management tools.


Endpoint

POST

/mulopimfwc/v1/inventory/bulk-sync

Headers

KeyValue
Content-Typeapplication/json
X-API-Keyyour-api-key-here

🔐 The X-API-Key is required for authentication. Requests without a valid API key will be rejected. Please set up the API first by following the documentation.


Request Body

The request body must contain an items array. Each item represents a product-location inventory update.

Supported Identifiers

You can identify products and locations using either:

  • sku + location_slug
  • OR
  • product_id + location_id

Request Body Example

{
  "items": [
    {
      "sku": "PROD-001",
      "location_slug": "main-store",
      "stock": 100,
      "regular_price": "29.99",
      "sale_price": "24.99"
    },
    {
      "product_id": 123,
      "location_id": 5,
      "stock": 50,
      "regular_price": "19.99"
    }
  ]
}

Field Description

FieldTypeRequiredDescription
skustringOptionalProduct SKU (required if product_id is not provided)
product_idintegerOptionalWooCommerce Product ID
location_slugstringOptionalLocation slug (required if location_id is not provided)
location_idintegerOptionalLocation ID
stockintegerYesStock quantity for the product at the location
regular_pricestringOptionalRegular product price
sale_pricestringOptionalSale price (must be less than regular price)

Response Example

{
  "success": true,
  "message": "Processed 2 items. 2 succeeded, 0 failed.",
  "results": {
    "success": 2,
    "failed": 0,
    "errors": []
  }
}

Response Fields

FieldDescription
successIndicates whether the API request was processed
messageSummary of the bulk sync operation
results.successNumber of items successfully updated
results.failedNumber of items that failed
results.errorsDetailed error messages for failed items (if any)

Error Handling

  • If an item fails validation (missing identifiers, invalid price, etc.), it will be counted under failed.
  • Successful items are processed independently, meaning one failure does not stop the entire sync.