GET api/WebApiOdata/GetAllCoupons?providerID={providerID}&searchString={searchString}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
providerID | integer |
Required |
|
searchString | string |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of CouponViewModelName | Description | Type | Additional information |
---|---|---|---|
CouponID | integer |
None. |
|
Code | string |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
|
Status | boolean |
None. |
|
CombineWithOther | boolean |
None. |
|
MaxQty | integer |
None. |
|
MinQty | integer |
None. |
|
MinOrderPrice | decimal number |
None. |
|
MaxOrderPrice | decimal number |
None. |
|
Abandoned | boolean |
None. |
Response Formats
application/json, text/json, text/html
Sample:
[ { "CouponID": 1, "Code": "sample string 2", "StartDate": "1/22/2025", "EndDate": "1/22/2025", "Status": true, "CombineWithOther": true, "MaxQty": 1, "MinQty": 1, "MinOrderPrice": 1.1, "MaxOrderPrice": 1.1, "Abandoned": true }, { "CouponID": 1, "Code": "sample string 2", "StartDate": "1/22/2025", "EndDate": "1/22/2025", "Status": true, "CombineWithOther": true, "MaxQty": 1, "MinQty": 1, "MinOrderPrice": 1.1, "MaxOrderPrice": 1.1, "Abandoned": true } ]
application/xml, text/xml
Sample:
<ArrayOfCouponViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SellersCommerce.ViewModels.Marketing"> <CouponViewModel> <Abandoned>true</Abandoned> <Code>sample string 2</Code> <CombineWithOther>true</CombineWithOther> <CouponID>1</CouponID> <EndDate>2025-01-22T13:40:59.3796836+00:00</EndDate> <MaxOrderPrice>1.1</MaxOrderPrice> <MaxQty>1</MaxQty> <MinOrderPrice>1.1</MinOrderPrice> <MinQty>1</MinQty> <StartDate>2025-01-22T13:40:59.3796836+00:00</StartDate> <Status>true</Status> </CouponViewModel> <CouponViewModel> <Abandoned>true</Abandoned> <Code>sample string 2</Code> <CombineWithOther>true</CombineWithOther> <CouponID>1</CouponID> <EndDate>2025-01-22T13:40:59.3796836+00:00</EndDate> <MaxOrderPrice>1.1</MaxOrderPrice> <MaxQty>1</MaxQty> <MinOrderPrice>1.1</MinOrderPrice> <MinQty>1</MinQty> <StartDate>2025-01-22T13:40:59.3796836+00:00</StartDate> <Status>true</Status> </CouponViewModel> </ArrayOfCouponViewModel>