Dukan icon

Dukan

Interact with the Dukan API

Store Coupon → Get One

AI-generated

Summary

Retrieve details of a single store coupon by its unique coupon ID from the Dukan API.

Inputs

  • Coupon ID (required) — The coupon's MongoDB ObjectId to retrieve.
  • Force Custom Auth Header — Enable to use a custom API key instead of credentials configured for Dukan.
  • Custom API Key — Custom API key to use when forcing custom authentication header.
  • Force Custom Base URL — Enable to use a custom Base URL for API requests instead of the one in credentials.
  • Custom Base URL — Custom Base URL to send API requests to, excluding the /v1/external suffix.

Output shape

a JSON object representing the retrieved store coupon's data

The returned data includes details of the specified coupon. Optional request options allow controlling batching, timeout, proxy, and SSL certificate validation behaviors. If the coupon ID is invalid or not found, an error may be returned.

Examples

Example 1: Retrieve a store coupon by its ID to access its discount details for use in order workflows.

Set the required Coupon ID parameter; optionally override credentials with custom authentication or base URL settings for specialized API access.

Links

Discussion