POST apiwba/bacam/getcampackagebyxn

Request Information

URI Parameters

None.

Body Parameters

BacamPackageGetByXnCodeInput
NameDescriptionTypeAdditional information
XNCodes

Collection of integer

None.

LastSync

date

None.

System

integer

None.

Username

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "XNCodes": [
    1,
    2
  ],
  "LastSync": "2026-10-28T17:19:05.5709859+07:00",
  "System": 2,
  "Username": "sample string 3",
  "Password": "sample string 4"
}

application/xml, text/xml

Sample:
<BacamPackageGetByXnCodeInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Model">
  <Password xmlns="http://schemas.datacontract.org/2004/07/Entities.Common">sample string 4</Password>
  <Username xmlns="http://schemas.datacontract.org/2004/07/Entities.Common">sample string 3</Username>
  <LastSync>2026-10-28T17:19:05.5709859+07:00</LastSync>
  <System>2</System>
  <XNCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </XNCodes>
</BacamPackageGetByXnCodeInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RestApiResponseOfPncBacamPackageDataExtend
NameDescriptionTypeAdditional information
data

Collection of PncBacamPackageDataExtend

None.

responseCode

integer

None.

statusCode

integer

None.

userMessage

string

None.

internalMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "xncode": 1,
      "imei": "sample string 2",
      "vehicleplate": "sample string 3",
      "code": "sample string 4",
      "qcvn31": true,
      "video": true,
      "image": true,
      "channel": 64,
      "camcount": 64,
      "storagetime": 10,
      "frequency": 11,
      "channel_config": [
        1,
        2
      ]
    },
    {
      "xncode": 1,
      "imei": "sample string 2",
      "vehicleplate": "sample string 3",
      "code": "sample string 4",
      "qcvn31": true,
      "video": true,
      "image": true,
      "channel": 64,
      "camcount": 64,
      "storagetime": 10,
      "frequency": 11,
      "channel_config": [
        1,
        2
      ]
    }
  ],
  "responseCode": 1,
  "statusCode": 2,
  "userMessage": "sample string 3",
  "internalMessage": "sample string 4"
}

application/xml, text/xml

Sample:
<RestApiResponseOfPncBacamPackageDataExtend22IH0NQD xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiEntities.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Entities.Common">
    <d2p1:PncBacamPackageDataExtend>
      <d2p1:Camcount>64</d2p1:Camcount>
      <d2p1:Channel>64</d2p1:Channel>
      <d2p1:ChannelConfig xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d2p1:ChannelConfig>
      <d2p1:Code>sample string 4</d2p1:Code>
      <d2p1:Frequency>11</d2p1:Frequency>
      <d2p1:IMEI>sample string 2</d2p1:IMEI>
      <d2p1:Image>true</d2p1:Image>
      <d2p1:Qcvn31>true</d2p1:Qcvn31>
      <d2p1:Storagetime>10</d2p1:Storagetime>
      <d2p1:VehiclePlate>sample string 3</d2p1:VehiclePlate>
      <d2p1:Video>true</d2p1:Video>
      <d2p1:XNCode>1</d2p1:XNCode>
    </d2p1:PncBacamPackageDataExtend>
    <d2p1:PncBacamPackageDataExtend>
      <d2p1:Camcount>64</d2p1:Camcount>
      <d2p1:Channel>64</d2p1:Channel>
      <d2p1:ChannelConfig xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d2p1:ChannelConfig>
      <d2p1:Code>sample string 4</d2p1:Code>
      <d2p1:Frequency>11</d2p1:Frequency>
      <d2p1:IMEI>sample string 2</d2p1:IMEI>
      <d2p1:Image>true</d2p1:Image>
      <d2p1:Qcvn31>true</d2p1:Qcvn31>
      <d2p1:Storagetime>10</d2p1:Storagetime>
      <d2p1:VehiclePlate>sample string 3</d2p1:VehiclePlate>
      <d2p1:Video>true</d2p1:Video>
      <d2p1:XNCode>1</d2p1:XNCode>
    </d2p1:PncBacamPackageDataExtend>
  </Data>
  <InternalMessage>sample string 4</InternalMessage>
  <ResponseCode>1</ResponseCode>
  <StatusCode>2</StatusCode>
  <UserMessage>sample string 3</UserMessage>
</RestApiResponseOfPncBacamPackageDataExtend22IH0NQD>