Export Inventory JSON API

The Export Inventory JSON API allows you to retrieve location-based inventory data in JSON format.
This format is ideal for system-to-system integrations, dashboards, mobile apps, and external inventory services.


Endpoint

GET

/mulopimfwc/v1/inventory/export

Query Parameters

ParameterTypeRequiredDescription
formatstringYesExport format. Use json
location_idintegerOptionalExport inventory for a specific location
location_slugstringOptionalExport inventory using location slug

ℹ️ If no location parameter is supplied, inventory data for all locations will be returned.


Example Request

/mulopimfwc/v1/inventory/export?format=json

Headers

KeyValue
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.


Success Response

HTTP 200 OK

{
  "success": true,
  "count": 150,
  "data": [
    {
      "product_id": 123,
      "sku": "PROD-001",
      "product_name": "Sample Product",
      "location_id": 5,
      "location_slug": "main-store",
      "location_name": "Main Store",
      "stock": 100,
      "regular_price": "29.99",
      "sale_price": "24.99",
      "backorders": "no",
      "disabled": false
    }
  ]
}

Response Fields

FieldDescription
successIndicates whether the request was successful
countTotal number of inventory records returned
dataArray of location-based inventory objects

Inventory Object Fields

FieldDescription
product_idWooCommerce product ID
skuProduct SKU
product_nameProduct title
location_idLocation ID
location_slugLocation slug
location_nameLocation display name
stockAvailable stock quantity
regular_priceLocation-specific regular price
sale_priceLocation-specific sale price
backordersBackorder status (no, notify, yes)
disabledWhether the product is disabled for this location

Behavior Notes

  • Location-specific inventory overrides global WooCommerce values.
  • Disabled products are included with disabled: true.
  • Large datasets may require pagination at the integration layer.
  • API key permissions determine accessible products and locations.

Authentication & Security

  • API key is required via the X-API-Key header.
  • Requests without a valid API key will be rejected.