Dukan icon

Dukan

Interact with the Dukan API

Order → Update Client Info

AI-generated

Summary

Update client information for a specific order's cart in Dukan by providing the cart ID and either a JSON object with client data or individual client info fields.

Inputs

  • Cart UID (required) — The unique cart ID identifying the order to update the client information for.
  • Use JSON — Select whether to use a JSON object to define client info updates instead of individual fields.
  • JSON — A JSON-formatted string containing the client information update data when 'Use JSON' is enabled.
  • Shipping Type (required) — Type of shipping, either 'للمنزل' or 'لنقطة الإستلام' (home delivery or pickup point), used when not using JSON input.
  • Location ID — Optional MongoDB ObjectId of the location related to the client order.
  • Stop Desk ID — Optional identifier for the stop desk associated with the client order.
  • Client City — Optional city name where the client is located.
  • Sub Location ID — Optional MongoDB ObjectId of the sub-location related to the client.
  • Client Phone Number — Optional primary phone number of the client.
  • Client Second Phone Number — Optional secondary phone number of the client.
  • Client Full Address — Optional client full address; note the parameter name uses 'clientFullAdress' (with one 'd').
  • Force Custom Auth Header — Optionally override the default API key with a custom one for this request.
  • Custom API Key — Custom API key used when 'Force Custom Auth Header' is enabled.
  • Force Custom Base URL — Optionally override the base URL from credentials with a custom base URL for this request.
  • Custom Base URL — Custom base URL to use if 'Force Custom Base URL' is enabled (without the /v1/external suffix).

Output shape

a single object representing the updated order client info response from the Dukan API

Response depends on the Dukan API's update client info endpoint; no pagination or batching applies here. Optional parameters are omitted from the request if left blank. The update payload can be provided either as a JSON object string or via discrete fields, mutually exclusive based on 'Use JSON' flag.

Examples

Example 1: Update client info by JSON

Set Cart UID; enable 'Use JSON'; provide a JSON string with client data.

Example 2: Update client info by fields

Set Cart UID; disable 'Use JSON'; fill in shipping type and desired client info fields.

Links

Discussion