POST v1/coupons/Validate
Request Information
URI Parameters
None.
Body Parameters
Common.Dto.Post.CouponValidationName | Description | Type | Additional information |
---|---|---|---|
couponCode | string |
None. |
|
planId | integer |
None. |
|
customerId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "couponCode": "sample string 1", "planId": 2, "customerId": 1 }
Response Information
Resource Description
Common.Dto.Get.ValidationName | Description | Type | Additional information |
---|---|---|---|
valid | boolean |
None. |
|
reason | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "valid": true, "reason": "sample string 2" }