curl --request GET \
--url https://services.leadconnectorhq.com/payments/coupon \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"_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",
"applyToFuturePayments": true,
"applyToFuturePaymentsConfig": {
"type": "fixed",
"duration": 3,
"durationType": "months"
},
"createdAt": "2025-04-09T18:49:22.026Z",
"updatedAt": "2025-04-09T18:49:22.026Z",
"traceId": "c667b18d-8f5e-44cf-a914",
"endDate": "2025-05-30T18:30:00.000Z",
"userId": "q0m15dTLGeiGOXG123123"
}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.
curl --request GET \
--url https://services.leadconnectorhq.com/payments/coupon \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"_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",
"applyToFuturePayments": true,
"applyToFuturePaymentsConfig": {
"type": "fixed",
"duration": 3,
"durationType": "months"
},
"createdAt": "2025-04-09T18:49:22.026Z",
"updatedAt": "2025-04-09T18:49:22.026Z",
"traceId": "c667b18d-8f5e-44cf-a914",
"endDate": "2025-05-30T18:30:00.000Z",
"userId": "q0m15dTLGeiGOXG123123"
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 Location Id
"BQdAwxa0ky1iK2sstLGJ"
Alt Type
location "location"
Coupon id
"6241712be68f7a98102ba272"
Coupon code
"DEAL50"
Successful response
Unique MongoDB identifier for the coupon
"67f6c132d9485f9dacd5f123"
Number of times the coupon has been used
12
Maximum number of times a customer can use this coupon (0 for unlimited)
5
Location Id
"79t07PzK8Tvf73d12312"
Type of entity
"location"
Display name of the coupon
"NEWT6"
Redemption code for the coupon
"NEWT6"
Type of discount (percentage or amount)
percentage, amount "percentage"
Value of the discount (percentage or fixed amount)
25
Current status of the coupon
scheduled, active, expired "scheduled"
Date when the coupon becomes active
"2025-04-30T18:30:00.000Z"
Indicates if the coupon applies to future recurring payments
true
Show child attributes
Creation timestamp
"2025-04-09T18:49:22.026Z"
Last update timestamp
"2025-04-09T18:49:22.026Z"
Unique identifier for tracing this API request
"c667b18d-8f5e-44cf-a914"
End date when the coupon expires
"2025-05-30T18:30:00.000Z"
User ID associated with the coupon (if applicable)
"q0m15dTLGeiGOXG123123"
Was this page helpful?