REST API for Latepoint icon

REST API for Latepoint

Consume REST API for LatePoint on Tools

Coupons → Create

AI-generated

Summary

Create a new coupon in LatePoint by specifying required coupon code, discount type, and discount value, along with optional additional fields.

Inputs

  • Coupon Code (required) — Unique alphanumeric code for the coupon.
  • Discount Type (required) — Type of discount applied by the coupon, either percent or fixed amount.
  • Discount Value (required) — Value of the discount, as a percentage or fixed amount depending on the discount type.
  • Send Body — Optionally send a custom JSON body or form data instead of using individual fields.
  • Body Content Type — The format of the custom body content (JSON or form data) if Send Body is true.
  • JSON Body — A JSON object to send as the request body when Send Body is true and content type is JSON.
  • Form Data — Form data parameters to send in the request body when Send Body is true and content type is form.
  • Additional Fields — Additional optional fields to include in the coupon creation, such as name, description, active_from, active_to, and usage_limit.

Output shape

a single JSON object representing the created coupon

Returns the newly created coupon object. Supports sending either individual fields or a custom request body. Errors are returned as JSON objects if continue on fail is enabled.

Examples

Example 1: Create a percent discount coupon with code SAVE10

Set Coupon Code to 'SAVE10', Discount Type to 'percent', Discount Value to 10.

Example 2: Create a fixed amount discount coupon using a custom JSON body

Enable Send Body, set Body Content Type to JSON, and provide the full coupon details as a JSON string in JSON Body parameter.

Links

Discussion