Fetch Coupon
GET/payments/coupon
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.
Request
API Version
v3Location Id
Alt Type
locationCoupon id
Coupon code
Successful response
- application/json
- Schema
- Example (auto)
Schema
Unique MongoDB identifier for the coupon
Number of times the coupon has been used
Maximum number of times a customer can use this coupon (0 for unlimited)
Location Id
Type of entity
Display name of the coupon
Redemption code for the coupon
Type of discount (percentage or amount)
percentageamountValue of the discount (percentage or fixed amount)
Current status of the coupon
scheduledactiveexpiredDate when the coupon becomes active
End date when the coupon expires
Indicates if the coupon applies to future recurring payments
Configuration for how the coupon applies to future payments
User ID associated with the coupon (if applicable)
Creation timestamp
Last update timestamp
Unique identifier for tracing this API request
{
"_id": "67f6c132d9485f9dacd5f123",
"usageCount": 12,
"limitPerCustomer": 5,
"altId": "79t07PzK8Tvf73d12312",
"altType": "location",
"name": "NEWT6",
"code": "NEWT6",
"discountType": "percentage",
"discountValue": 25,
"status": "scheduled",
"startDate": "2025-04-30T18:30:00.000Z",
"endDate": "2025-05-30T18:30:00.000Z",
"applyToFuturePayments": true,
"applyToFuturePaymentsConfig": {
"type": "fixed",
"duration": 3,
"durationType": "months"
},
"userId": "q0m15dTLGeiGOXG123123",
"createdAt": "2025-04-09T18:49:22.026Z",
"updatedAt": "2025-04-09T18:49:22.026Z",
"traceId": "c667b18d-8f5e-44cf-a914"
}