POST api/Product/GetProductList

Request Information

URI Parameters

None.

Body Parameters

GetProductListMobileRequest
NameDescriptionTypeAdditional information
CompanyId

decimal number

None.

Value

string

None.

PageIndex

integer

None.

PageSize

integer

None.

SearchedValue

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": 1.0,
  "Value": "sample string 2",
  "PageIndex": 3,
  "PageSize": 4,
  "SearchedValue": "sample string 5"
}

application/xml, text/xml

Sample:
<GetProductListMobileRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">
  <CompanyId>1</CompanyId>
  <PageIndex>3</PageIndex>
  <PageSize>4</PageSize>
  <SearchedValue>sample string 5</SearchedValue>
  <Value>sample string 2</Value>
</GetProductListMobileRequest>

application/x-www-form-urlencoded

Sample:

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

Response Information

Resource Description

GetProductListMobileResponse
NameDescriptionTypeAdditional information
ProductList

Collection of ProductMobileModel

None.

Result

ResultType

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ProductList": [
    {
      "ProductId": 1.0,
      "ProductName": "sample string 2",
      "MeasureUnitId": 3.0,
      "MeasureUnitDesc": "sample string 4",
      "UnitPrice": 5.0,
      "KdvOrani": 6.0,
      "ExternalProductCode": "sample string 7",
      "State": true
    },
    {
      "ProductId": 1.0,
      "ProductName": "sample string 2",
      "MeasureUnitId": 3.0,
      "MeasureUnitDesc": "sample string 4",
      "UnitPrice": 5.0,
      "KdvOrani": 6.0,
      "ExternalProductCode": "sample string 7",
      "State": true
    }
  ],
  "Result": 0,
  "ErrorMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<GetProductListMobileResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">
  <_x003C_ErrorMessage_x003E_k__BackingField>sample string 1</_x003C_ErrorMessage_x003E_k__BackingField>
  <_x003C_Result_x003E_k__BackingField>Success</_x003C_Result_x003E_k__BackingField>
  <ProductList>
    <ProductMobileModel>
      <ExternalProductCode>sample string 7</ExternalProductCode>
      <KdvOrani>6</KdvOrani>
      <MeasureUnitDesc>sample string 4</MeasureUnitDesc>
      <MeasureUnitId>3</MeasureUnitId>
      <ProductId>1</ProductId>
      <ProductName>sample string 2</ProductName>
      <State>true</State>
      <UnitPrice>5</UnitPrice>
    </ProductMobileModel>
    <ProductMobileModel>
      <ExternalProductCode>sample string 7</ExternalProductCode>
      <KdvOrani>6</KdvOrani>
      <MeasureUnitDesc>sample string 4</MeasureUnitDesc>
      <MeasureUnitId>3</MeasureUnitId>
      <ProductId>1</ProductId>
      <ProductName>sample string 2</ProductName>
      <State>true</State>
      <UnitPrice>5</UnitPrice>
    </ProductMobileModel>
  </ProductList>
</GetProductListMobileResponse>