Dukan icon

Dukan

Interact with the Dukan API

Store Coupon → Delete

AI-generated

Summary

Delete a store coupon in Dukan by its coupon ID, optionally using custom authentication or base URL settings.

Inputs

  • Force Custom Auth Header — Optionally use a custom API key instead of the default configured credentials.
  • Custom API Key — API key to use if forcing custom authentication.
  • Force Custom Base URL — Optionally use a custom Base URL instead of the one from credentials.
  • Custom Base URL — The custom Base URL to use if forcing a custom base URL (excluding '/v1/external' suffix).
  • Coupon ID (required) — The MongoDB ObjectId string representing the coupon to delete.
  • Request Options — Settings to control batching, SSL validation, proxy, and request timeout.

Output shape

a single JSON response object confirming deletion or indicating failure

The operation returns the API’s response as JSON. Errors or unsuccessful deletions are included in the response. No pagination or multiple items returned.

Examples

Example 1: Delete a coupon by its ID using the default credentials.

Set 'Coupon ID' to the target coupon's ObjectId; leave 'Force Custom Auth Header' and 'Force Custom Base URL' disabled.

Links

Discussion