POST api/PurchaseApi/Post_purchase_for_save_update

Request Information

URI Parameters

None.

Body Parameters

purchase
NameDescriptionTypeAdditional information
ledgetlist

Collection of ledger

None.

ledgetdetialslist

Collection of ledgerdetials

None.

MakeId

string

None.

CashCredit

string

None.

VType

string

None.

VNo

string

None.

VDate

date

None.

InvNo

string

None.

InvDate

date

None.

AcCode

string

None.

AcDesc

string

None.

SupName

string

None.

UpExUP

string

None.

SubTotal

string

None.

NetDiscount

string

None.

cgstamt

string

None.

sgstamt

string

None.

CessAmt1

string

None.

CessAmt2

string

None.

AdjHead1

string

None.

AdjHeadName1

string

None.

AdjAmt1

string

None.

AdjNarr1

string

None.

AdjHead2

string

None.

AdjHeadName2

string

None.

AdjAmt2

string

None.

AdjNarr2

string

None.

NetAmount

string

None.

IsCancelled

string

None.

Remarks

string

None.

RCM

string

None.

ITC

string

None.

GoDownId

string

None.

E_WayBillNo

string

None.

TCSPer

string

None.

TCSAmt

string

None.

Database

string

None.

Compcode

string

None.

EventType

string

None.

finyear

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ledgetlist": [
    {
      "id": "sample string 1",
      "vtype": "sample string 2",
      "vno": "sample string 3",
      "vdate": "sample string 4",
      "compcode": "sample string 5",
      "finyear": "sample string 6",
      "itemid": "sample string 7",
      "mrp": "sample string 8",
      "shade": "sample string 9",
      "qty": "sample string 10",
      "frqty": "sample string 11",
      "rate": "sample string 12",
      "discper1": "sample string 13",
      "discper2": "sample string 14",
      "discamt": "sample string 15",
      "netdiscount": "sample string 16",
      "cgstper": "sample string 17",
      "cgstamt": "sample string 18",
      "sgstper": "sample string 19",
      "sgstamt": "sample string 20",
      "netamount": "sample string 21",
      "iscancelled": "sample string 22",
      "batchno": "sample string 23",
      "mrpdiscper": "sample string 24",
      "deal": "sample string 25",
      "nop": "sample string 26",
      "cessper1": "sample string 27",
      "cessamt1": "sample string 28",
      "cessper2": "sample string 29",
      "cessamt2": "sample string 30",
      "godowinid": "sample string 31",
      "discper3": "sample string 32"
    },
    {
      "id": "sample string 1",
      "vtype": "sample string 2",
      "vno": "sample string 3",
      "vdate": "sample string 4",
      "compcode": "sample string 5",
      "finyear": "sample string 6",
      "itemid": "sample string 7",
      "mrp": "sample string 8",
      "shade": "sample string 9",
      "qty": "sample string 10",
      "frqty": "sample string 11",
      "rate": "sample string 12",
      "discper1": "sample string 13",
      "discper2": "sample string 14",
      "discamt": "sample string 15",
      "netdiscount": "sample string 16",
      "cgstper": "sample string 17",
      "cgstamt": "sample string 18",
      "sgstper": "sample string 19",
      "sgstamt": "sample string 20",
      "netamount": "sample string 21",
      "iscancelled": "sample string 22",
      "batchno": "sample string 23",
      "mrpdiscper": "sample string 24",
      "deal": "sample string 25",
      "nop": "sample string 26",
      "cessper1": "sample string 27",
      "cessamt1": "sample string 28",
      "cessper2": "sample string 29",
      "cessamt2": "sample string 30",
      "godowinid": "sample string 31",
      "discper3": "sample string 32"
    }
  ],
  "ledgetdetialslist": [
    {
      "id": "sample string 1",
      "itemid": "sample string 2",
      "serialno1": "sample string 3",
      "serialno2": "sample string 4",
      "serialno3": "sample string 5",
      "serialno4": "sample string 6",
      "compcode": "sample string 7",
      "finyear": "sample string 8",
      "vtype": "sample string 9",
      "vno": "sample string 10",
      "vdate": "sample string 11",
      "mrp": "sample string 12"
    },
    {
      "id": "sample string 1",
      "itemid": "sample string 2",
      "serialno1": "sample string 3",
      "serialno2": "sample string 4",
      "serialno3": "sample string 5",
      "serialno4": "sample string 6",
      "compcode": "sample string 7",
      "finyear": "sample string 8",
      "vtype": "sample string 9",
      "vno": "sample string 10",
      "vdate": "sample string 11",
      "mrp": "sample string 12"
    }
  ],
  "MakeId": "sample string 1",
  "CashCredit": "sample string 2",
  "VType": "sample string 3",
  "VNo": "sample string 4",
  "VDate": "2024-11-15T08:34:47.1898278+05:30",
  "InvNo": "sample string 6",
  "InvDate": "2024-11-15T08:34:47.1898278+05:30",
  "AcCode": "sample string 8",
  "AcDesc": "sample string 9",
  "SupName": "sample string 10",
  "UpExUP": "sample string 11",
  "SubTotal": "sample string 12",
  "NetDiscount": "sample string 13",
  "cgstamt": "sample string 14",
  "sgstamt": "sample string 15",
  "CessAmt1": "sample string 16",
  "CessAmt2": "sample string 17",
  "AdjHead1": "sample string 18",
  "AdjHeadName1": "sample string 19",
  "AdjAmt1": "sample string 20",
  "AdjNarr1": "sample string 21",
  "AdjHead2": "sample string 22",
  "AdjHeadName2": "sample string 23",
  "AdjAmt2": "sample string 24",
  "AdjNarr2": "sample string 25",
  "NetAmount": "sample string 26",
  "IsCancelled": "sample string 27",
  "Remarks": "sample string 28",
  "RCM": "sample string 29",
  "ITC": "sample string 30",
  "GoDownId": "sample string 31",
  "E_WayBillNo": "sample string 32",
  "TCSPer": "sample string 33",
  "TCSAmt": "sample string 34",
  "Database": "sample string 35",
  "Compcode": "sample string 36",
  "EventType": "sample string 37",
  "finyear": "sample string 38"
}

application/xml, text/xml

Sample:
<purchase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOL_Business_Objects_Layer_">
  <AcCode>sample string 8</AcCode>
  <AcDesc>sample string 9</AcDesc>
  <AdjAmt1>sample string 20</AdjAmt1>
  <AdjAmt2>sample string 24</AdjAmt2>
  <AdjHead1>sample string 18</AdjHead1>
  <AdjHead2>sample string 22</AdjHead2>
  <AdjHeadName1>sample string 19</AdjHeadName1>
  <AdjHeadName2>sample string 23</AdjHeadName2>
  <AdjNarr1>sample string 21</AdjNarr1>
  <AdjNarr2>sample string 25</AdjNarr2>
  <CashCredit>sample string 2</CashCredit>
  <CessAmt1>sample string 16</CessAmt1>
  <CessAmt2>sample string 17</CessAmt2>
  <Compcode>sample string 36</Compcode>
  <Database>sample string 35</Database>
  <E_WayBillNo>sample string 32</E_WayBillNo>
  <EventType>sample string 37</EventType>
  <GoDownId>sample string 31</GoDownId>
  <ITC>sample string 30</ITC>
  <InvDate>2024-11-15T08:34:47.1898278+05:30</InvDate>
  <InvNo>sample string 6</InvNo>
  <IsCancelled>sample string 27</IsCancelled>
  <MakeId>sample string 1</MakeId>
  <NetAmount>sample string 26</NetAmount>
  <NetDiscount>sample string 13</NetDiscount>
  <RCM>sample string 29</RCM>
  <Remarks>sample string 28</Remarks>
  <SubTotal>sample string 12</SubTotal>
  <SupName>sample string 10</SupName>
  <TCSAmt>sample string 34</TCSAmt>
  <TCSPer>sample string 33</TCSPer>
  <UpExUP>sample string 11</UpExUP>
  <VDate>2024-11-15T08:34:47.1898278+05:30</VDate>
  <VNo>sample string 4</VNo>
  <VType>sample string 3</VType>
  <cgstamt>sample string 14</cgstamt>
  <finyear>sample string 38</finyear>
  <ledgetdetialslist>
    <ledgerdetials>
      <compcode>sample string 7</compcode>
      <finyear>sample string 8</finyear>
      <id>sample string 1</id>
      <itemid>sample string 2</itemid>
      <mrp>sample string 12</mrp>
      <serialno1>sample string 3</serialno1>
      <serialno2>sample string 4</serialno2>
      <serialno3>sample string 5</serialno3>
      <serialno4>sample string 6</serialno4>
      <vdate>sample string 11</vdate>
      <vno>sample string 10</vno>
      <vtype>sample string 9</vtype>
    </ledgerdetials>
    <ledgerdetials>
      <compcode>sample string 7</compcode>
      <finyear>sample string 8</finyear>
      <id>sample string 1</id>
      <itemid>sample string 2</itemid>
      <mrp>sample string 12</mrp>
      <serialno1>sample string 3</serialno1>
      <serialno2>sample string 4</serialno2>
      <serialno3>sample string 5</serialno3>
      <serialno4>sample string 6</serialno4>
      <vdate>sample string 11</vdate>
      <vno>sample string 10</vno>
      <vtype>sample string 9</vtype>
    </ledgerdetials>
  </ledgetdetialslist>
  <ledgetlist>
    <ledger>
      <batchno>sample string 23</batchno>
      <cessamt1>sample string 28</cessamt1>
      <cessamt2>sample string 30</cessamt2>
      <cessper1>sample string 27</cessper1>
      <cessper2>sample string 29</cessper2>
      <cgstamt>sample string 18</cgstamt>
      <cgstper>sample string 17</cgstper>
      <compcode>sample string 5</compcode>
      <deal>sample string 25</deal>
      <discamt>sample string 15</discamt>
      <discper1>sample string 13</discper1>
      <discper2>sample string 14</discper2>
      <discper3>sample string 32</discper3>
      <finyear>sample string 6</finyear>
      <frqty>sample string 11</frqty>
      <godowinid>sample string 31</godowinid>
      <id>sample string 1</id>
      <iscancelled>sample string 22</iscancelled>
      <itemid>sample string 7</itemid>
      <mrp>sample string 8</mrp>
      <mrpdiscper>sample string 24</mrpdiscper>
      <netamount>sample string 21</netamount>
      <netdiscount>sample string 16</netdiscount>
      <nop>sample string 26</nop>
      <qty>sample string 10</qty>
      <rate>sample string 12</rate>
      <sgstamt>sample string 20</sgstamt>
      <sgstper>sample string 19</sgstper>
      <shade>sample string 9</shade>
      <vdate>sample string 4</vdate>
      <vno>sample string 3</vno>
      <vtype>sample string 2</vtype>
    </ledger>
    <ledger>
      <batchno>sample string 23</batchno>
      <cessamt1>sample string 28</cessamt1>
      <cessamt2>sample string 30</cessamt2>
      <cessper1>sample string 27</cessper1>
      <cessper2>sample string 29</cessper2>
      <cgstamt>sample string 18</cgstamt>
      <cgstper>sample string 17</cgstper>
      <compcode>sample string 5</compcode>
      <deal>sample string 25</deal>
      <discamt>sample string 15</discamt>
      <discper1>sample string 13</discper1>
      <discper2>sample string 14</discper2>
      <discper3>sample string 32</discper3>
      <finyear>sample string 6</finyear>
      <frqty>sample string 11</frqty>
      <godowinid>sample string 31</godowinid>
      <id>sample string 1</id>
      <iscancelled>sample string 22</iscancelled>
      <itemid>sample string 7</itemid>
      <mrp>sample string 8</mrp>
      <mrpdiscper>sample string 24</mrpdiscper>
      <netamount>sample string 21</netamount>
      <netdiscount>sample string 16</netdiscount>
      <nop>sample string 26</nop>
      <qty>sample string 10</qty>
      <rate>sample string 12</rate>
      <sgstamt>sample string 20</sgstamt>
      <sgstper>sample string 19</sgstper>
      <shade>sample string 9</shade>
      <vdate>sample string 4</vdate>
      <vno>sample string 3</vno>
      <vtype>sample string 2</vtype>
    </ledger>
  </ledgetlist>
  <sgstamt>sample string 15</sgstamt>
</purchase>

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.