Actions65
- Order Actions
- Product Actions
- Store Shipping Account Actions
- Delivery Companies API Actions
- Team User Actions
- Store Actions
- State Actions
- Stop Desk Actions
- City Or Municipality Actions
- Store Client Actions
- Store Coupon Actions
- Store Pro Stock Actions
State → Create State
AI-generatedSummary
Create a new state resource in the Dukan system by providing required state details.
Inputs
- Force Custom Auth Header — Enable to use a custom API key for authentication instead of the default Dukan credentials.
- Force Custom Base URL — Enable to specify a custom base URL for API requests instead of the one in the credentials.
- Custom Base URL — Custom Base URL for API requests, required if Force Custom Base URL is enabled, without the /v1/external suffix.
- Custom API Key — API key to use for authentication when Force Custom Auth Header is enabled.
- Use JSON — Choose to provide state data as a JSON string instead of individual fields.
- JSON (required) — JSON string containing state data; must include required fields
locationNameandshippingToHomePriceand may include optional fields likelocationCustomId,isActive, and others. Required if Use JSON is true. - State Name (locationName) (required) — Name of the state, maximum 50 characters; required if Use JSON is false.
- Shipping To Home Price (shippingToHomePrice) (required) — Numeric shipping price to home, minimum 0; required if Use JSON is false.
- State Custom ID (locationCustomId) — Optional custom ID for the state; only used if Use JSON is false.
- Is Active (isActive) — Boolean indicating if the state is active; optional if Use JSON is false.
- Allow Shipping To Home Fake Price (allowShippingToHomeFakePrice) — Boolean to allow a fake shipping price; optional if Use JSON is false.
- Shipping To Home Fake Price (shippingToHomeFakePrice) — Numeric fake shipping price, minimum 0; required only if Allow Shipping To Home Fake Price is true and Use JSON is false.
- Allow Default Shipping Account (allowDefualtShippingAccount) — Boolean to allow a default shipping account; optional if Use JSON is false.
- Default Shipping Account (defualtShippingAccount) — MongoDB ObjectId of the default shipping account; required only if Allow Default Shipping Account is true and Use JSON is false.
Output shape
a single record representing the created state resource, as returned by the Dukan API
The output contains the full API response for the newly created state. The operation supports overriding authentication and base URL per request. Users must ensure required fields are provided either via JSON or individual parameters.