POST jxc_api/SerialNumberValidation/SerialNumberIn

Request Information

URI Parameters

None.

Body Parameters

SerialNumberValidationParam
NameDescriptionTypeAdditional information
ProdId

integer

None.

ApId

integer

None.

SerialNumbers

Collection of string

None.

BillType

BillType

None.

BillId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProdId": 1,
  "ApId": 2,
  "SerialNumbers": [
    "sample string 1",
    "sample string 2"
  ],
  "BillType": 1010,
  "BillId": 3
}

application/xml, text/xml

Sample:
<SerialNumberValidationParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Validation.Models">
  <ApId>2</ApId>
  <BillId>3</BillId>
  <BillType>Purchase</BillType>
  <ProdId>1</ProdId>
  <SerialNumbers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </SerialNumbers>
</SerialNumberValidationParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResultModelOfSerialNumberValidationResultModel
NameDescriptionTypeAdditional information
StatusCode

HttpStatusCode

None.

BusinessCode

integer

None.

Data

SerialNumberValidationResultModel

None.

Success

boolean

None.

Message

string

None.

ErrorData

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 100,
  "BusinessCode": 1,
  "Data": {
    "IsSuccess": false,
    "Items": [
      {
        "RowIndex": 1,
        "SerialNumber": "sample string 2",
        "Message": "sample string 3"
      },
      {
        "RowIndex": 1,
        "SerialNumber": "sample string 2",
        "Message": "sample string 3"
      }
    ]
  },
  "Success": true,
  "Message": "sample string 3",
  "ErrorData": {}
}

application/xml, text/xml

Sample:
<ApiResultModelOfSerialNumberValidationResultModel_PsLyv2vB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Models">
  <BusinessCode>1</BusinessCode>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonScm.Model.NewApi.Shared.Validation">
    <d2p1:Items>
      <d2p1:SerialNumberValidationItem>
        <d2p1:Message>sample string 3</d2p1:Message>
        <d2p1:RowIndex>1</d2p1:RowIndex>
        <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      </d2p1:SerialNumberValidationItem>
      <d2p1:SerialNumberValidationItem>
        <d2p1:Message>sample string 3</d2p1:Message>
        <d2p1:RowIndex>1</d2p1:RowIndex>
        <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      </d2p1:SerialNumberValidationItem>
    </d2p1:Items>
  </Data>
  <ErrorData />
  <Message>sample string 3</Message>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
</ApiResultModelOfSerialNumberValidationResultModel_PsLyv2vB>