POST api/AdjOrder/OpeningInventoryUpload

Request Information

URI Parameters

None.

Body Parameters

Collection of C_InventBatchTrans
NameDescriptionTypeAdditional information
Id

integer

None.

TransId

string

None.

ItemCode

string

None.

VoucherNo

string

None.

TransType

string

None.

BatchNo

string

None.

BatchOpeningQty

decimal number

None.

BatchTransQty

decimal number

None.

BatchClosingQty

decimal number

None.

TransDate

date

None.

WarehouseId

integer

None.

SupplierCode

string

None.

STSupplierCode

string

None.

FinalStockFlag

string

None.

ActualRate

decimal number

None.

ExciseRate

decimal number

None.

CostRate

decimal number

None.

TotalRate

decimal number

None.

PostTransId

string

None.

BranchCode

integer

None.

PurchaseDate

date

None.

UpdatedByIT

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "TransId": "sample string 2",
    "ItemCode": "sample string 3",
    "VoucherNo": "sample string 4",
    "TransType": "sample string 5",
    "BatchNo": "sample string 6",
    "BatchOpeningQty": 1.0,
    "BatchTransQty": 1.0,
    "BatchClosingQty": 1.0,
    "TransDate": "2024-04-27T19:40:16.9022657+00:00",
    "WarehouseId": 7,
    "SupplierCode": "sample string 8",
    "STSupplierCode": "sample string 9",
    "FinalStockFlag": "sample string 10",
    "ActualRate": 1.0,
    "ExciseRate": 1.0,
    "CostRate": 1.0,
    "TotalRate": 11.0,
    "PostTransId": "sample string 12",
    "BranchCode": 13,
    "PurchaseDate": "2024-04-27T19:40:16.9022657+00:00",
    "UpdatedByIT": "sample string 14"
  },
  {
    "Id": 1,
    "TransId": "sample string 2",
    "ItemCode": "sample string 3",
    "VoucherNo": "sample string 4",
    "TransType": "sample string 5",
    "BatchNo": "sample string 6",
    "BatchOpeningQty": 1.0,
    "BatchTransQty": 1.0,
    "BatchClosingQty": 1.0,
    "TransDate": "2024-04-27T19:40:16.9022657+00:00",
    "WarehouseId": 7,
    "SupplierCode": "sample string 8",
    "STSupplierCode": "sample string 9",
    "FinalStockFlag": "sample string 10",
    "ActualRate": 1.0,
    "ExciseRate": 1.0,
    "CostRate": 1.0,
    "TotalRate": 11.0,
    "PostTransId": "sample string 12",
    "BranchCode": 13,
    "PurchaseDate": "2024-04-27T19:40:16.9022657+00:00",
    "UpdatedByIT": "sample string 14"
  }
]

application/xml, text/xml

Sample:
<ArrayOfC_InventBatchTrans xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models">
  <C_InventBatchTrans>
    <ActualRate>1</ActualRate>
    <BatchClosingQty>1</BatchClosingQty>
    <BatchNo>sample string 6</BatchNo>
    <BatchOpeningQty>1</BatchOpeningQty>
    <BatchTransQty>1</BatchTransQty>
    <BranchCode>13</BranchCode>
    <CostRate>1</CostRate>
    <ExciseRate>1</ExciseRate>
    <FinalStockFlag>sample string 10</FinalStockFlag>
    <Id>1</Id>
    <ItemCode>sample string 3</ItemCode>
    <PostTransId>sample string 12</PostTransId>
    <PurchaseDate>2024-04-27T19:40:16.9022657+00:00</PurchaseDate>
    <STSupplierCode>sample string 9</STSupplierCode>
    <SupplierCode>sample string 8</SupplierCode>
    <TotalRate>11</TotalRate>
    <TransDate>2024-04-27T19:40:16.9022657+00:00</TransDate>
    <TransId>sample string 2</TransId>
    <TransType>sample string 5</TransType>
    <UpdatedByIT>sample string 14</UpdatedByIT>
    <VoucherNo>sample string 4</VoucherNo>
    <WarehouseId>7</WarehouseId>
  </C_InventBatchTrans>
  <C_InventBatchTrans>
    <ActualRate>1</ActualRate>
    <BatchClosingQty>1</BatchClosingQty>
    <BatchNo>sample string 6</BatchNo>
    <BatchOpeningQty>1</BatchOpeningQty>
    <BatchTransQty>1</BatchTransQty>
    <BranchCode>13</BranchCode>
    <CostRate>1</CostRate>
    <ExciseRate>1</ExciseRate>
    <FinalStockFlag>sample string 10</FinalStockFlag>
    <Id>1</Id>
    <ItemCode>sample string 3</ItemCode>
    <PostTransId>sample string 12</PostTransId>
    <PurchaseDate>2024-04-27T19:40:16.9022657+00:00</PurchaseDate>
    <STSupplierCode>sample string 9</STSupplierCode>
    <SupplierCode>sample string 8</SupplierCode>
    <TotalRate>11</TotalRate>
    <TransDate>2024-04-27T19:40:16.9022657+00:00</TransDate>
    <TransId>sample string 2</TransId>
    <TransType>sample string 5</TransType>
    <UpdatedByIT>sample string 14</UpdatedByIT>
    <VoucherNo>sample string 4</VoucherNo>
    <WarehouseId>7</WarehouseId>
  </C_InventBatchTrans>
</ArrayOfC_InventBatchTrans>

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 'C_InventBatchTrans[]'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>