Export Inventory CSV API

The Export Inventory CSV API allows you to download location-based inventory data in CSV format.
This is useful for reporting, backups, audits, or syncing inventory data with external systems such as ERP, WMS, or accounting tools.


Endpoint

GET

/mulopimfwc/v1/inventory/export

Query Parameters

ParameterTypeRequiredDescription
formatstringYesExport format. Currently supports csv
location_idintegerOptionalExport inventory for a specific location
location_slugstringOptionalExport inventory using location slug

ℹ️ If no location parameter is provided, inventory for all locations will be exported.


Example Request

/mulopimfwc/v1/inventory/export?format=csv&location_id=5

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.


Response

  • Returns a CSV file download
  • Content-Type: text/csv
  • File is automatically downloaded by the browser or API client

CSV Columns

The exported CSV file contains the following headers:

Column NameDescription
product_idWooCommerce Product ID
skuProduct SKU
product_nameProduct title
location_idLocation ID
location_slugLocation slug
location_nameLocation name
stockAvailable stock quantity
regular_priceRegular price for the location
sale_priceSale price for the location
backordersBackorder status (no, notify, yes)
disabledLocation-based product availability (true / false)

Behavior Notes

  • Only inventory accessible to the provided API key will be exported.
  • Location-based prices and stock are exported independently of global WooCommerce values.
  • Disabled products are included and marked accordingly in the disabled column.
  • Large inventories may take a few seconds to generate the CSV file.

Authentication & Security

  • API authentication is mandatory via the X-API-Key header.
  • Unauthorized requests will return an authentication error instead of a CSV file.

Use Cases

  • Backup location-based inventory data
  • Import inventory into ERP or accounting systems
  • Generate stock reports per location
  • Migrate inventory data between environments

Notes

{
  "note": "Returns CSV file download with headers: product_id, sku, product_name, location_id, location_slug, location_name, stock, regular_price, sale_price, backorders, disabled"
}