POST api/TotalAyushCare/ProductListDetail

Documentation for 'ProductListDetail'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Credentials": {
    "Username": "sample string 1",
    "Password": "sample string 2",
    "ClientName": "sample string 3"
  },
  "ProductListDetails": {
    "Id": "sample string 1",
    "Name": "sample string 2",
    "Description": "sample string 3",
    "Make": "sample string 4",
    "Category": "sample string 5",
    "InitialPrice": "sample string 6",
    "DiscountPercentage": "sample string 7",
    "Price": "sample string 8",
    "DefaultImage": "sample string 9",
    "Unit": "sample string 10",
    "Note": "sample string 11",
    "ExpiryDate": "sample string 12",
    "AddBy": "sample string 13",
    "Action": "sample string 14",
    "Source": "sample string 15"
  }
}

application/xml, text/xml

Sample:
<ProductListRequests xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <Credentials>
    <ClientName>sample string 3</ClientName>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Credentials>
  <ProductListDetails>
    <Action>sample string 14</Action>
    <AddBy>sample string 13</AddBy>
    <Category>sample string 5</Category>
    <DefaultImage>sample string 9</DefaultImage>
    <Description>sample string 3</Description>
    <DiscountPercentage>sample string 7</DiscountPercentage>
    <ExpiryDate>sample string 12</ExpiryDate>
    <Id>sample string 1</Id>
    <InitialPrice>sample string 6</InitialPrice>
    <Make>sample string 4</Make>
    <Name>sample string 2</Name>
    <Note>sample string 11</Note>
    <Price>sample string 8</Price>
    <Source>sample string 15</Source>
    <Unit>sample string 10</Unit>
  </ProductListDetails>
</ProductListRequests>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'ProductListRequests'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "errors": [
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    }
  ],
  "result": "sample string 2",
  "Response": "sample string 3",
  "ProductListDetail": [
    {
      "Id": "sample string 1",
      "Name": "sample string 2",
      "Description": "sample string 3",
      "Make": "sample string 4",
      "Category": "sample string 5",
      "InitialPrice": "sample string 6",
      "DiscountPercentage": "sample string 7",
      "Price": "sample string 8",
      "DefaultImage": "sample string 9",
      "Unit": "sample string 10",
      "Note": "sample string 11",
      "ExpiryDate": "sample string 12",
      "AddBy": "sample string 13",
      "Action": "sample string 14",
      "Source": "sample string 15"
    },
    {
      "Id": "sample string 1",
      "Name": "sample string 2",
      "Description": "sample string 3",
      "Make": "sample string 4",
      "Category": "sample string 5",
      "InitialPrice": "sample string 6",
      "DiscountPercentage": "sample string 7",
      "Price": "sample string 8",
      "DefaultImage": "sample string 9",
      "Unit": "sample string 10",
      "Note": "sample string 11",
      "ExpiryDate": "sample string 12",
      "AddBy": "sample string 13",
      "Action": "sample string 14",
      "Source": "sample string 15"
    },
    {
      "Id": "sample string 1",
      "Name": "sample string 2",
      "Description": "sample string 3",
      "Make": "sample string 4",
      "Category": "sample string 5",
      "InitialPrice": "sample string 6",
      "DiscountPercentage": "sample string 7",
      "Price": "sample string 8",
      "DefaultImage": "sample string 9",
      "Unit": "sample string 10",
      "Note": "sample string 11",
      "ExpiryDate": "sample string 12",
      "AddBy": "sample string 13",
      "Action": "sample string 14",
      "Source": "sample string 15"
    }
  ]
}

application/xml, text/xml

Sample:
<ProductListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <ProductListDetail>
    <ProductList>
      <Action>sample string 14</Action>
      <AddBy>sample string 13</AddBy>
      <Category>sample string 5</Category>
      <DefaultImage>sample string 9</DefaultImage>
      <Description>sample string 3</Description>
      <DiscountPercentage>sample string 7</DiscountPercentage>
      <ExpiryDate>sample string 12</ExpiryDate>
      <Id>sample string 1</Id>
      <InitialPrice>sample string 6</InitialPrice>
      <Make>sample string 4</Make>
      <Name>sample string 2</Name>
      <Note>sample string 11</Note>
      <Price>sample string 8</Price>
      <Source>sample string 15</Source>
      <Unit>sample string 10</Unit>
    </ProductList>
    <ProductList>
      <Action>sample string 14</Action>
      <AddBy>sample string 13</AddBy>
      <Category>sample string 5</Category>
      <DefaultImage>sample string 9</DefaultImage>
      <Description>sample string 3</Description>
      <DiscountPercentage>sample string 7</DiscountPercentage>
      <ExpiryDate>sample string 12</ExpiryDate>
      <Id>sample string 1</Id>
      <InitialPrice>sample string 6</InitialPrice>
      <Make>sample string 4</Make>
      <Name>sample string 2</Name>
      <Note>sample string 11</Note>
      <Price>sample string 8</Price>
      <Source>sample string 15</Source>
      <Unit>sample string 10</Unit>
    </ProductList>
    <ProductList>
      <Action>sample string 14</Action>
      <AddBy>sample string 13</AddBy>
      <Category>sample string 5</Category>
      <DefaultImage>sample string 9</DefaultImage>
      <Description>sample string 3</Description>
      <DiscountPercentage>sample string 7</DiscountPercentage>
      <ExpiryDate>sample string 12</ExpiryDate>
      <Id>sample string 1</Id>
      <InitialPrice>sample string 6</InitialPrice>
      <Make>sample string 4</Make>
      <Name>sample string 2</Name>
      <Note>sample string 11</Note>
      <Price>sample string 8</Price>
      <Source>sample string 15</Source>
      <Unit>sample string 10</Unit>
    </ProductList>
  </ProductListDetail>
  <Response>sample string 3</Response>
  <errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
  </errors>
  <message>sample string 1</message>
  <result>sample string 2</result>
</ProductListResponse>