Skip to main content
The “Update Coupon” API enables you to modify existing coupon details such as discount values, validity periods, usage limits, and other promotional parameters. Use this endpoint to adjust or extend promotional offers for your customers.

Autorización

string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.

Body

string
default:"BQdAwxa0ky1iK2sstLGJ"
required
Account Id
string
default:"account"
required
Alt Type Posibles valores: ‘account’
string
default:"New Year Sale"
required
Coupon Name
string
default:"LEVELUPDAY2022"
required
Coupon Code
string
default:"amount"
required
Discount Type Posibles valores: ‘percentage’, ‘amount’
number
default:"10"
required
Discount Value
string
default:"2023-01-01T22:45:00.000Z"
required
Start date in YYYY-MM-DDTHH:mm:ssZ format
string
default:"2023-01-31T22:45:00.000Z"
End date in YYYY-MM-DDTHH:mm:ssZ format
number
default:"10"
Max number of times coupon can be used
string[]
Product Ids
boolean
default:"True"
Is Coupon applicable on upcoming subscription transactions
object
If coupon is applicable on upcoming subscription transactions, how many months should it be applicable for a subscription
boolean
default:"True"
Limits whether a coupon can be redeemed only once per customer.
string
default:"6241712be68f7a98102ba272"
required
Coupon Id

Respuestas

string
default:"67f6c132d9485f9dacd5f123"
required
Unique MongoDB identifier for the coupon
number
default:"12"
required
Number of times the coupon has been used
number
default:"5"
required
Maximum number of times a customer can use this coupon (0 for unlimited)
string
default:"79t07PzK8Tvf73d12312"
required
Account Id
string
default:"account"
required
Type of entity
string
default:"NEWT6"
required
Display name of the coupon
string
default:"NEWT6"
required
Redemption code for the coupon
string
default:"percentage"
required
Type of discount (percentage or amount) Posibles valores: ‘percentage’, ‘amount’
number
default:"25"
required
Value of the discount (percentage or fixed amount)
string
default:"scheduled"
required
Current status of the coupon Posibles valores: ‘scheduled’, ‘active’, ‘expired’
string
default:"2025-04-30T18:30:00.000Z"
required
Date when the coupon becomes active
string
default:"2025-05-30T18:30:00.000Z"
End date when the coupon expires
boolean
default:"True"
required
Indicates if the coupon applies to future recurring payments
object
required
Configuration for how the coupon applies to future payments
string
default:"q0m15dTLGeiGOXG123123"
User ID associated with the coupon (if applicable)
string
default:"2025-04-09T18:49:22.026Z"
required
Creation timestamp
string
default:"2025-04-09T18:49:22.026Z"
required
Last update timestamp
string
default:"c667b18d-8f5e-44cf-a914"
required
Unique identifier for tracing this API request

Ejemplo