GET api/Discount/IsDiscountValid?discountCode={discountCode}&discountCategory={discountCategory}&productId={productId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
discountCode

string

Default value is

discountCategory

string

Default value is

productId

globally unique identifier

None.

Body Parameters

None.

Response Information

Resource Description

BaseResponseModel
NameDescriptionTypeAdditional information
Result

ResponseResult

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "Success": true,
    "Message": "sample string 2",
    "Errors": [
      {
        "Message": "sample string 1"
      },
      {
        "Message": "sample string 1"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<BaseResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bond.Core.API.Models.Response">
  <Result>
    <Errors>
      <ErrorMessage>
        <Message>sample string 1</Message>
      </ErrorMessage>
      <ErrorMessage>
        <Message>sample string 1</Message>
      </ErrorMessage>
    </Errors>
    <Message>sample string 2</Message>
    <Success>true</Success>
  </Result>
</BaseResponseModel>