POST api/Cart/ValidateCoupon
Request Information
URI Parameters
None.
Body Parameters
CouponParamName | Description | Type | Additional information |
---|---|---|---|
CouponCode | string |
None. |
|
CuponId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "CouponCode": "sample string 1", "CuponId": 1 }
application/xml, text/xml
Sample:
<CouponParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mastersoft.BigDipper.Entities"> <CouponCode>sample string 1</CouponCode> <CuponId>1</CuponId> </CouponParam>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CuponResultName | Description | Type | Additional information |
---|---|---|---|
CuponId | integer |
None. |
|
Porcentaje | decimal number |
None. |
|
HayError | boolean |
None. |
|
ListaErrores | Collection of CuponError |
None. |
Response Formats
application/json, text/json
Sample:
{ "CuponId": 1, "Porcentaje": 1.1, "HayError": true, "ListaErrores": null }
application/xml, text/xml
Sample:
<CuponResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mastersoft.BigDipper.Entities"> <CuponId>1</CuponId> <HayError>true</HayError> <ListaErrores i:nil="true" /> <Porcentaje>1.1</Porcentaje> </CuponResult>