GET api/vouchers/all

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CmsVoucher
NameDescriptionTypeAdditional information
ID

integer

None.

No

string

None.

LineItemTypeID

integer

None.

CategoryID

integer

None.

Amount

decimal number

None.

ProductID

integer

None.

DescriptionEnglish

string

None.

DescriptionFrench

string

None.

PriceByProvince

Collection of CmsProductPrice

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "No": "sample string 2",
    "LineItemTypeID": 3,
    "CategoryID": 1,
    "Amount": 1.0,
    "ProductID": 1,
    "DescriptionEnglish": "sample string 4",
    "DescriptionFrench": "sample string 5",
    "PriceByProvince": [
      {
        "ID": 1,
        "ProvinceID": 1,
        "Price": 1.0,
        "StartDate": "2025-08-02T15:00:23.6406835Z",
        "EndDate": "2025-08-02T15:00:23.6406835Z"
      },
      {
        "ID": 1,
        "ProvinceID": 1,
        "Price": 1.0,
        "StartDate": "2025-08-02T15:00:23.6406835Z",
        "EndDate": "2025-08-02T15:00:23.6406835Z"
      }
    ]
  },
  {
    "ID": 1,
    "No": "sample string 2",
    "LineItemTypeID": 3,
    "CategoryID": 1,
    "Amount": 1.0,
    "ProductID": 1,
    "DescriptionEnglish": "sample string 4",
    "DescriptionFrench": "sample string 5",
    "PriceByProvince": [
      {
        "ID": 1,
        "ProvinceID": 1,
        "Price": 1.0,
        "StartDate": "2025-08-02T15:00:23.6406835Z",
        "EndDate": "2025-08-02T15:00:23.6406835Z"
      },
      {
        "ID": 1,
        "ProvinceID": 1,
        "Price": 1.0,
        "StartDate": "2025-08-02T15:00:23.6406835Z",
        "EndDate": "2025-08-02T15:00:23.6406835Z"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfCmsVoucher xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Opimian.Wimps.DTO.CmsDTOs">
  <CmsVoucher>
    <Amount>1</Amount>
    <CategoryID>1</CategoryID>
    <DescriptionEnglish>sample string 4</DescriptionEnglish>
    <DescriptionFrench>sample string 5</DescriptionFrench>
    <ID>1</ID>
    <LineItemTypeID>3</LineItemTypeID>
    <No>sample string 2</No>
    <PriceByProvince>
      <CmsProductPrice>
        <EndDate>2025-08-02T15:00:23.6406835Z</EndDate>
        <ID>1</ID>
        <Price>1</Price>
        <ProvinceID>1</ProvinceID>
        <StartDate>2025-08-02T15:00:23.6406835Z</StartDate>
      </CmsProductPrice>
      <CmsProductPrice>
        <EndDate>2025-08-02T15:00:23.6406835Z</EndDate>
        <ID>1</ID>
        <Price>1</Price>
        <ProvinceID>1</ProvinceID>
        <StartDate>2025-08-02T15:00:23.6406835Z</StartDate>
      </CmsProductPrice>
    </PriceByProvince>
    <ProductID>1</ProductID>
  </CmsVoucher>
  <CmsVoucher>
    <Amount>1</Amount>
    <CategoryID>1</CategoryID>
    <DescriptionEnglish>sample string 4</DescriptionEnglish>
    <DescriptionFrench>sample string 5</DescriptionFrench>
    <ID>1</ID>
    <LineItemTypeID>3</LineItemTypeID>
    <No>sample string 2</No>
    <PriceByProvince>
      <CmsProductPrice>
        <EndDate>2025-08-02T15:00:23.6406835Z</EndDate>
        <ID>1</ID>
        <Price>1</Price>
        <ProvinceID>1</ProvinceID>
        <StartDate>2025-08-02T15:00:23.6406835Z</StartDate>
      </CmsProductPrice>
      <CmsProductPrice>
        <EndDate>2025-08-02T15:00:23.6406835Z</EndDate>
        <ID>1</ID>
        <Price>1</Price>
        <ProvinceID>1</ProvinceID>
        <StartDate>2025-08-02T15:00:23.6406835Z</StartDate>
      </CmsProductPrice>
    </PriceByProvince>
    <ProductID>1</ProductID>
  </CmsVoucher>
</ArrayOfCmsVoucher>