Skip to main content
The “Get Coupon Details” API enables you to retrieve comprehensive information about a specific coupon using either its unique identifier or promotional code. Use this endpoint to view coupon parameters, usage statistics, validity periods, and other promotional details.

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.

Query parameters

string
default:"BQdAwxa0ky1iK2sstLGJ"
required
Account Id
string
default:"account"
required
Alt Type
string
default:"6241712be68f7a98102ba272"
required
Coupon id
string
default:"DEAL50"
required
Coupon code

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