POST api/BagReceiving/InsertOrUpdate?isOpen={isOpen}&vUserID={vUserID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isOpen

boolean

Required

vUserID

integer

Required

Body Parameters

BagsReceived
NameDescriptionTypeAdditional information
BagsReceiveID

integer

None.

ReceiveDate

date

None.

PartyID

integer

None.

TotalQty

integer

None.

IsPosted

boolean

None.

Narration

string

None.

IDSBU

integer

None.

SBUID

integer

None.

IsExceed

boolean

None.

CropSeasonID

integer

None.

ListBody

Collection of BagsReceivedBody

None.

Request Formats

application/json, text/json

Sample:
{
  "BagsReceiveID": 1,
  "ReceiveDate": "2026-06-24T04:21:04.6308733-07:00",
  "PartyID": 3,
  "TotalQty": 4,
  "IsPosted": true,
  "Narration": "sample string 6",
  "IDSBU": 7,
  "SBUID": 8,
  "IsExceed": true,
  "CropSeasonID": 10,
  "ListBody": [
    {
      "SerialNo": 1,
      "BagsReceivedID": 2,
      "BagsTypeID": 3,
      "ClassID": 4,
      "Quantity": 5,
      "Cost": 6.0,
      "BagCost": 7.0
    },
    {
      "SerialNo": 1,
      "BagsReceivedID": 2,
      "BagsTypeID": 3,
      "ClassID": 4,
      "Quantity": 5,
      "Cost": 6.0,
      "BagCost": 7.0
    }
  ]
}

application/xml, text/xml

Sample:
<BagsReceived xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
  <BagsReceiveID>1</BagsReceiveID>
  <CropSeasonID>10</CropSeasonID>
  <IDSBU>7</IDSBU>
  <IsExceed>true</IsExceed>
  <IsPosted>true</IsPosted>
  <ListBody>
    <BagsReceivedBody>
      <BagCost>7</BagCost>
      <BagsReceivedID>2</BagsReceivedID>
      <BagsTypeID>3</BagsTypeID>
      <ClassID>4</ClassID>
      <Cost>6</Cost>
      <Quantity>5</Quantity>
      <SerialNo>1</SerialNo>
    </BagsReceivedBody>
    <BagsReceivedBody>
      <BagCost>7</BagCost>
      <BagsReceivedID>2</BagsReceivedID>
      <BagsTypeID>3</BagsTypeID>
      <ClassID>4</ClassID>
      <Cost>6</Cost>
      <Quantity>5</Quantity>
      <SerialNo>1</SerialNo>
    </BagsReceivedBody>
  </ListBody>
  <Narration>sample string 6</Narration>
  <PartyID>3</PartyID>
  <ReceiveDate>2026-06-24T04:21:04.6308733-07:00</ReceiveDate>
  <SBUID>8</SBUID>
  <TotalQty>4</TotalQty>
</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.