GET api/WebApiOdata/GetAllCoupons?providerID={providerID}&searchString={searchString}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
providerID

integer

Required

searchString

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CouponViewModel
NameDescriptionTypeAdditional 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": "9/19/2024",
    "EndDate": "9/19/2024",
    "Status": true,
    "CombineWithOther": true,
    "MaxQty": 1,
    "MinQty": 1,
    "MinOrderPrice": 1.1,
    "MaxOrderPrice": 1.1,
    "Abandoned": true
  },
  {
    "CouponID": 1,
    "Code": "sample string 2",
    "StartDate": "9/19/2024",
    "EndDate": "9/19/2024",
    "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>2024-09-19T08:36:24.0619949+00:00</EndDate>
    <MaxOrderPrice>1.1</MaxOrderPrice>
    <MaxQty>1</MaxQty>
    <MinOrderPrice>1.1</MinOrderPrice>
    <MinQty>1</MinQty>
    <StartDate>2024-09-19T08:36:24.0619949+00:00</StartDate>
    <Status>true</Status>
  </CouponViewModel>
  <CouponViewModel>
    <Abandoned>true</Abandoned>
    <Code>sample string 2</Code>
    <CombineWithOther>true</CombineWithOther>
    <CouponID>1</CouponID>
    <EndDate>2024-09-19T08:36:24.0619949+00:00</EndDate>
    <MaxOrderPrice>1.1</MaxOrderPrice>
    <MaxQty>1</MaxQty>
    <MinOrderPrice>1.1</MinOrderPrice>
    <MinQty>1</MinQty>
    <StartDate>2024-09-19T08:36:24.0619949+00:00</StartDate>
    <Status>true</Status>
  </CouponViewModel>
</ArrayOfCouponViewModel>