Dukan icon

Dukan

Interact with the Dukan API

Order → Create an Order

AI-generated

Summary

Create a new order in the Dukan system by submitting client and product details either as structured fields or a JSON object.

Inputs

  • Force Custom Auth Header — Choose to use a custom API key for authentication instead of the node's configured Dukan credentials.
  • Force Custom Base URL — Choose to use a custom Base URL for API requests instead of the Base URL from the credentials.
  • Custom Base URL — Specify the Base URL to use if forcing a custom Base URL (should not include the /v1/external suffix).
  • Custom API Key — Provide the API key to use if forcing custom authentication.
  • Use JSON — Define the order data as a raw JSON object instead of individual parameters.
  • JSON — JSON-formatted object containing complete order details, used if 'Use JSON' is enabled.
  • Client Name — Name of the client placing the order (used only when 'Use JSON' is disabled).
  • Client Phone Number (required) — Primary phone number of the client (used only when 'Use JSON' is disabled).
  • Shipping Type (required) — Type of shipping; options are 'للمنزل' (to home) or 'لنقطة الإستلام' (to pickup point) (used only when 'Use JSON' is disabled).
  • Location ID — MongoDB ObjectId of the location for the order (used only when 'Use JSON' is disabled).
  • Sub Location ID — MongoDB ObjectId of the sub-location (used only when 'Use JSON' is disabled).
  • Stop Desk ID — ID of the stop desk (used only when 'Use JSON' is disabled).
  • Client City — City of the client (used only when 'Use JSON' is disabled).
  • Client Second Phone Number — Secondary phone number of the client (used only when 'Use JSON' is disabled).
  • Client Full Address — Full address of the client (used only when 'Use JSON' is disabled).
  • Shipping Details — Array of shipping detail objects that include fieldName, fieldValue, fieldType, and fieldId (used only when 'Use JSON' is disabled).
  • Ordered Products (required) — JSON array of ordered products, each with productId, totalProductPrice, quantity, and optional totalProductFees, propertiesSelected, colorsSelected, and offerId (used only when 'Use JSON' is disabled).

Output shape

a single record representing the created order's details

The response contains the created order object as returned from the Dukan API. Authentication, base URL, and request options can be customized per node settings or credentials.

Links

Discussion