POST api/Bags/InsertBagReceived?vUserID={vUserID}&IsOpen={IsOpen}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
vUserID

integer

Required

IsOpen

boolean

Required

Body Parameters

BagsReceived
NameDescriptionTypeAdditional information
manualNo

string

None.

BagsReceiveID

integer

None.

ReceiveDate

date

None.

PartyID

integer

None.

TotalQty

integer

None.

IsPosted

boolean

None.

Narration

string

None.

PartyName

string

None.

ListBody

Collection of BagsReceivedBody

None.

Request Formats

application/json, text/json

Sample:
{
  "manualNo": "sample string 1",
  "BagsReceiveID": 2,
  "ReceiveDate": "2025-12-11T01:02:48.7018358-08:00",
  "PartyID": 4,
  "TotalQty": 5,
  "IsPosted": true,
  "Narration": "sample string 7",
  "PartyName": "sample string 8",
  "ListBody": [
    {
      "SerialNo": 1,
      "BagsReceivedID": 2,
      "BagsTypeID": 3,
      "ClassID": 4,
      "Quantity": 5,
      "Cost": 6.0,
      "GowdownID": 7,
      "BagsType": "sample string 8",
      "BagsClass": "sample string 9",
      "GodownTitle": "sample string 10"
    },
    {
      "SerialNo": 1,
      "BagsReceivedID": 2,
      "BagsTypeID": 3,
      "ClassID": 4,
      "Quantity": 5,
      "Cost": 6.0,
      "GowdownID": 7,
      "BagsType": "sample string 8",
      "BagsClass": "sample string 9",
      "GodownTitle": "sample string 10"
    }
  ]
}

application/xml, text/xml

Sample:
<BagsReceived xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
  <BagsReceiveID>2</BagsReceiveID>
  <IsPosted>true</IsPosted>
  <ListBody>
    <BagsReceivedBody>
      <BagsClass>sample string 9</BagsClass>
      <BagsReceivedID>2</BagsReceivedID>
      <BagsType>sample string 8</BagsType>
      <BagsTypeID>3</BagsTypeID>
      <ClassID>4</ClassID>
      <Cost>6</Cost>
      <GodownTitle>sample string 10</GodownTitle>
      <GowdownID>7</GowdownID>
      <Quantity>5</Quantity>
      <SerialNo>1</SerialNo>
    </BagsReceivedBody>
    <BagsReceivedBody>
      <BagsClass>sample string 9</BagsClass>
      <BagsReceivedID>2</BagsReceivedID>
      <BagsType>sample string 8</BagsType>
      <BagsTypeID>3</BagsTypeID>
      <ClassID>4</ClassID>
      <Cost>6</Cost>
      <GodownTitle>sample string 10</GodownTitle>
      <GowdownID>7</GowdownID>
      <Quantity>5</Quantity>
      <SerialNo>1</SerialNo>
    </BagsReceivedBody>
  </ListBody>
  <Narration>sample string 7</Narration>
  <PartyID>4</PartyID>
  <PartyName>sample string 8</PartyName>
  <ReceiveDate>2025-12-11T01:02:48.7018358-08:00</ReceiveDate>
  <TotalQty>5</TotalQty>
  <manualNo>sample string 1</manualNo>
</BagsReceived>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.