Dukan icon

Dukan

Interact with the Dukan API

Store Pro Stock → Create

AI-generated

Summary

Create a new store product stock entry in the Dukan Store Pro Stock system with specified SKU, quantity, optional image URL, and store access restrictions.

Inputs

  • Force Custom Auth Header — Use a custom API key from this node instead of the configured Dukan credentials.
  • Force Custom Base URL — Use a custom Base URL from this node instead of the Base URL in the credentials.
  • Custom Base URL — Base URL for API requests when Force Custom Base URL is enabled (exclude /v1/external suffix).
  • Custom API Key — API key to send when Force Custom Auth Header is enabled.
  • Use JSON — Define the payload as a JSON object instead of individual fields.
  • JSON — JSON object with fields: sku (string), quentity (number), image_url (string, optional), limitAllowedStoresWhiteList (boolean, optional), allowedStoresWhiteList (array of MongoDB ObjectId strings, optional). Used when Use JSON is true.
  • SKU (required) — Stock keeping unit, slugified string (e.g., underscores).
  • Quantity (required) — Initial quantity in stock.
  • Image URL — Optional URL of the image for the stock item.
  • Limit Allowed Stores White List — Boolean to restrict stock access to a whitelist of stores.
  • Allowed Stores White List — JSON array of MongoDB ObjectId strings representing allowed stores. Used only if Limit Allowed Stores White List is true.

Output shape

a single record

Returns the created store stock record as received from the Dukan API. The output includes the stock details such as SKU, quantity, image URL, and store access settings.

Links

Discussion