שִׂיג ושִׂיח | cig.chat icon

שִׂיג ושִׂיח | cig.chat

Interact with the cig.chat messaging platform - 258 operations across 32 resources. Manage subscribers, send messages, configure flows, run the shop, and integrate with WhatsApp, Facebook, Instagram, Telegram, web chat, and more.

Actions258

Shop Discount Code → Update Discount Code

AI-generated

Summary

Update a shop discount code by ID, sending the supplied code settings in the API request. Configure the discount type and any applicable value, minimum requirements, usage limits, and start or end times.

Inputs

  • Discount Code ID (required) — Numeric ID of the discount code to update.
  • Code — Discount code text.
  • Type — Discount type: Percentage, Amount, or Free Shipping.
  • Discount Percentage — Percentage discount value.
  • Discount Amount — Amount discount value.
  • Once per Order — Whether the discount applies once per order.
  • Minimum Requirement — Minimum requirement setting; the field description lists None, min_price, or min_qty.
  • Minimum Price — Minimum price requirement value.
  • Minimum Quantity — Minimum quantity requirement value.
  • Has Usage Limit — Whether the discount has a usage limit.
  • Max Usage Count — Maximum number of uses.
  • One per Customer — Whether to limit the discount to one use per customer.
  • Start Time — Discount start time in Y-m-d H:i:s format.
  • End Time — Discount end time in Y-m-d H:i:s format.
  • Request Options — Optional HTTP settings: batching, accepting invalid SSL certificates, proxy, and timeout.

Output shape

Not determinable from the provided source pack.

The source pack contains only signature-level views for the implementation and helpers, so it does not show the request path, response handling, or returned data shape. The properties declare Discount Code ID as required and map the other discount fields to the request body.

Examples

Example 1: Update a percentage discount

Set the Discount Code ID, choose Percentage, then provide a discount percentage and any other fields to change.

Links

Discussion