Market
Get Coupon Details
Retrieve detailed information about a specific coupon by its ID
AuthorizationBearer <token>
Bearer token authentication
In: header
Path Parameters
idinteger
Coupon ID
Response Body
curl -X GET "https://api.example.com/api/application/coupons/0"{
"success": true,
"data": {
"id": 1,
"code": "SUMMER2024",
"name": "Summer Sale",
"description": "Special discount for summer season",
"type": "percentage",
"value": "10.00",
"usage_limit": null,
"used_count": 0,
"one_time_use": true,
"new_users_only": false,
"new_users_scope": "any",
"target_product_id": null,
"target_category_id": 1,
"is_lifetime": true,
"expires_at": null,
"status": "active",
"created_at": "2025-08-02T18:21:30.000000Z",
"updated_at": "2025-08-02T18:21:30.000000Z",
"coupon_uses_count": 0,
"target_product": {
"id": 1,
"name": "Premium Web Hosting",
"description": "High-performance web hosting with 99.9% uptime guarantee",
"stock": 10,
"image": "/images/products/hosting.jpg",
"category_id": 1,
"module": "LicenseService",
"module_config": {
"product_file": "products/1_1754152748_5_1753695926_Module.zip",
"is_downloadable_via_api": "1",
"is_downloadable_via_web": "1"
},
"duration_config": {
"weekly": {
"price": 0,
"enabled": false
},
"monthly": {
"price": 29.99,
"enabled": true
},
"quarterly": {
"price": 0,
"enabled": false
},
"yearly": {
"price": 299.99,
"enabled": true
},
"lifetime": {
"price": 0,
"enabled": false
}
},
"status": "active",
"position": 1,
"create_service_before_payment": true,
"created_at": "2025-08-02T16:39:06.000000Z",
"updated_at": "2025-08-02T16:40:13.000000Z",
"category": {
"id": 1,
"name": "Web Hosting"
}
},
"target_category": {
"id": 1,
"name": "Web Hosting"
}
}
}{
"success": false,
"message": "Unauthenticated"
}{
"success": false,
"message": "This action is unauthorized"
}{
"success": false,
"message": "Resource not found"
}