Actions28
Coupon → Create
AI-generatedSummary
Create a new coupon in Tiendanube by specifying the coupon code, type, discount value, and optional additional fields such as validity dates and maximum uses.
Inputs
- Code (required) — The unique code that customers will use to apply the coupon.
- Type (required) — The discount type for the coupon, which can be Percentage, Absolute amount, or Shipping discount.
- Value (required) — The discount amount, interpreted according to the selected type (percentage or absolute amount).
- Additional Fields — Optional fields to specify the coupon's valid from date, valid until date (both in ISO 8601 format), and maximum number of uses.
Output shape
a single JSON object representing the newly created coupon resource returned from the Tiendanube API
The output includes the details of the created coupon as returned by the Tiendanube API. Errors from the API are thrown as node errors unless 'Continue On Fail' is enabled, in which case error messages are returned in the output items.
