GET api/vouchers/products

Get products

Request Information

URI Parameters

None.

Body Parameters

Response Information

Resource Description

A list of products

voucherproductsresult
NameDescriptionTypeAdditional information
success

Indicates if the action was successfull

boolean

None.

remark

A description regarding the result

string

None.

count

The number of products in this list

integer

None.

voucherproducts

The list of products

Collection of voucherproduct

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "remark": "sample string 2",
  "count": 3,
  "voucherproducts": [
    {
      "productcode": "sample string 1",
      "description": "sample string 2",
      "extradescription": [
        "sample string 1",
        "sample string 2"
      ],
      "price": 3.0,
      "originalprice": 4.0,
      "quantity": 5
    },
    {
      "productcode": "sample string 1",
      "description": "sample string 2",
      "extradescription": [
        "sample string 1",
        "sample string 2"
      ],
      "price": 3.0,
      "originalprice": 4.0,
      "quantity": 5
    }
  ]
}

application/xml, text/xml

Sample:
<voucherproductsresult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API">
  <count>3</count>
  <remark>sample string 2</remark>
  <success>true</success>
  <voucherproducts>
    <voucherproduct>
      <description>sample string 2</description>
      <extradescription xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </extradescription>
      <originalprice>4</originalprice>
      <price>3</price>
      <productcode>sample string 1</productcode>
      <quantity>5</quantity>
    </voucherproduct>
    <voucherproduct>
      <description>sample string 2</description>
      <extradescription xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </extradescription>
      <originalprice>4</originalprice>
      <price>3</price>
      <productcode>sample string 1</productcode>
      <quantity>5</quantity>
    </voucherproduct>
  </voucherproducts>
</voucherproductsresult>