POST api/CollectionApi/Post_Collection_for_save_update

Request Information

URI Parameters

None.

Body Parameters

clsCollection
NameDescriptionTypeAdditional information
CollectionId

string

None.

CollectionType

string

None.

MVNO

string

None.

DeleveryManId

string

None.

SalesmanCode

string

None.

BeatId

string

None.

BeatName

string

None.

VDate

date

None.

SaveType

string

None.

TotalCollectionAmount

string

None.

IsCancelled

string

None.

Remarks

string

None.

CashAccode

string

None.

CreditAccode

string

None.

CashAcDesc

string

None.

CreditAcDesc

string

None.

PayMode

string

None.

Database

string

None.

Compcode

string

None.

EventType

string

None.

finyear

string

None.

lst_collection_ledger

Collection of clsCollectionDetails

None.

lst_voucher

Collection of clsVoucher

None.

Request Formats

application/json, text/json

Sample:
{
  "CollectionId": "sample string 1",
  "CollectionType": "sample string 2",
  "MVNO": "sample string 3",
  "DeleveryManId": "sample string 4",
  "SalesmanCode": "sample string 5",
  "BeatId": "sample string 6",
  "BeatName": "sample string 7",
  "VDate": "2024-11-15T07:47:11.1881283+05:30",
  "SaveType": "sample string 9",
  "TotalCollectionAmount": "sample string 10",
  "IsCancelled": "sample string 11",
  "Remarks": "sample string 12",
  "CashAccode": "sample string 13",
  "CreditAccode": "sample string 14",
  "CashAcDesc": "sample string 15",
  "CreditAcDesc": "sample string 16",
  "PayMode": "sample string 17",
  "Database": "sample string 18",
  "Compcode": "sample string 19",
  "EventType": "sample string 20",
  "finyear": "sample string 21",
  "lst_collection_ledger": [
    {
      "MakeId": "sample string 1",
      "VType": "sample string 2",
      "VNo": "sample string 3",
      "MVNo": "sample string 4",
      "VDate": "2024-11-15T07:47:11.1881283+05:30",
      "InvDate": "2024-11-15T07:47:11.1881283+05:30",
      "AcCode": "sample string 7",
      "AcDesc": "sample string 8",
      "SupName": "sample string 9",
      "UpExUP": "sample string 10",
      "DId": "sample string 11",
      "SalesManCode": "sample string 12",
      "SalesManName": "sample string 13",
      "BeatId": "sample string 14",
      "BeatName": "sample string 15",
      "NetAmount": "sample string 16",
      "CollectedAmount": "sample string 17",
      "PaymentMode": "sample string 18",
      "PaymentDiscount": "sample string 19",
      "IsCancelled": "sample string 20",
      "Remarks": "sample string 21",
      "ChequeNo": "sample string 22",
      "ChequeDate": "sample string 23",
      "BankName": "sample string 24",
      "Payment_Accode": "sample string 25"
    },
    {
      "MakeId": "sample string 1",
      "VType": "sample string 2",
      "VNo": "sample string 3",
      "MVNo": "sample string 4",
      "VDate": "2024-11-15T07:47:11.1881283+05:30",
      "InvDate": "2024-11-15T07:47:11.1881283+05:30",
      "AcCode": "sample string 7",
      "AcDesc": "sample string 8",
      "SupName": "sample string 9",
      "UpExUP": "sample string 10",
      "DId": "sample string 11",
      "SalesManCode": "sample string 12",
      "SalesManName": "sample string 13",
      "BeatId": "sample string 14",
      "BeatName": "sample string 15",
      "NetAmount": "sample string 16",
      "CollectedAmount": "sample string 17",
      "PaymentMode": "sample string 18",
      "PaymentDiscount": "sample string 19",
      "IsCancelled": "sample string 20",
      "Remarks": "sample string 21",
      "ChequeNo": "sample string 22",
      "ChequeDate": "sample string 23",
      "BankName": "sample string 24",
      "Payment_Accode": "sample string 25"
    }
  ],
  "lst_voucher": [
    {
      "VType": "sample string 1",
      "VNo": "sample string 2",
      "VDate": "2024-11-15T07:47:11.1881283+05:30",
      "AcCode": "sample string 4",
      "AcDesc": "sample string 5",
      "AcContra": "sample string 6",
      "DrAmt": "sample string 7",
      "CrAmt": "sample string 8",
      "DrCr": "sample string 9",
      "Narration": "sample string 10",
      "BDate": "2024-11-15T07:47:11.1881283+05:30",
      "Database": "sample string 12",
      "Compcode": "sample string 13",
      "EventType": "sample string 14",
      "finyear": "sample string 15"
    },
    {
      "VType": "sample string 1",
      "VNo": "sample string 2",
      "VDate": "2024-11-15T07:47:11.1881283+05:30",
      "AcCode": "sample string 4",
      "AcDesc": "sample string 5",
      "AcContra": "sample string 6",
      "DrAmt": "sample string 7",
      "CrAmt": "sample string 8",
      "DrCr": "sample string 9",
      "Narration": "sample string 10",
      "BDate": "2024-11-15T07:47:11.1881283+05:30",
      "Database": "sample string 12",
      "Compcode": "sample string 13",
      "EventType": "sample string 14",
      "finyear": "sample string 15"
    }
  ]
}

application/xml, text/xml

Sample:
<clsCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOL_Business_Objects_Layer_">
  <BeatId>sample string 6</BeatId>
  <BeatName>sample string 7</BeatName>
  <CashAcDesc>sample string 15</CashAcDesc>
  <CashAccode>sample string 13</CashAccode>
  <CollectionId>sample string 1</CollectionId>
  <CollectionType>sample string 2</CollectionType>
  <Compcode>sample string 19</Compcode>
  <CreditAcDesc>sample string 16</CreditAcDesc>
  <CreditAccode>sample string 14</CreditAccode>
  <Database>sample string 18</Database>
  <DeleveryManId>sample string 4</DeleveryManId>
  <EventType>sample string 20</EventType>
  <IsCancelled>sample string 11</IsCancelled>
  <MVNO>sample string 3</MVNO>
  <PayMode>sample string 17</PayMode>
  <Remarks>sample string 12</Remarks>
  <SalesmanCode>sample string 5</SalesmanCode>
  <SaveType>sample string 9</SaveType>
  <TotalCollectionAmount>sample string 10</TotalCollectionAmount>
  <VDate>2024-11-15T07:47:11.1881283+05:30</VDate>
  <finyear>sample string 21</finyear>
  <lst_collection_ledger>
    <clsCollectionDetails>
      <AcCode>sample string 7</AcCode>
      <AcDesc>sample string 8</AcDesc>
      <BankName>sample string 24</BankName>
      <BeatId>sample string 14</BeatId>
      <BeatName>sample string 15</BeatName>
      <ChequeDate>sample string 23</ChequeDate>
      <ChequeNo>sample string 22</ChequeNo>
      <CollectedAmount>sample string 17</CollectedAmount>
      <DId>sample string 11</DId>
      <InvDate>2024-11-15T07:47:11.1881283+05:30</InvDate>
      <IsCancelled>sample string 20</IsCancelled>
      <MVNo>sample string 4</MVNo>
      <MakeId>sample string 1</MakeId>
      <NetAmount>sample string 16</NetAmount>
      <PaymentDiscount>sample string 19</PaymentDiscount>
      <PaymentMode>sample string 18</PaymentMode>
      <Payment_Accode>sample string 25</Payment_Accode>
      <Remarks>sample string 21</Remarks>
      <SalesManCode>sample string 12</SalesManCode>
      <SalesManName>sample string 13</SalesManName>
      <SupName>sample string 9</SupName>
      <UpExUP>sample string 10</UpExUP>
      <VDate>2024-11-15T07:47:11.1881283+05:30</VDate>
      <VNo>sample string 3</VNo>
      <VType>sample string 2</VType>
    </clsCollectionDetails>
    <clsCollectionDetails>
      <AcCode>sample string 7</AcCode>
      <AcDesc>sample string 8</AcDesc>
      <BankName>sample string 24</BankName>
      <BeatId>sample string 14</BeatId>
      <BeatName>sample string 15</BeatName>
      <ChequeDate>sample string 23</ChequeDate>
      <ChequeNo>sample string 22</ChequeNo>
      <CollectedAmount>sample string 17</CollectedAmount>
      <DId>sample string 11</DId>
      <InvDate>2024-11-15T07:47:11.1881283+05:30</InvDate>
      <IsCancelled>sample string 20</IsCancelled>
      <MVNo>sample string 4</MVNo>
      <MakeId>sample string 1</MakeId>
      <NetAmount>sample string 16</NetAmount>
      <PaymentDiscount>sample string 19</PaymentDiscount>
      <PaymentMode>sample string 18</PaymentMode>
      <Payment_Accode>sample string 25</Payment_Accode>
      <Remarks>sample string 21</Remarks>
      <SalesManCode>sample string 12</SalesManCode>
      <SalesManName>sample string 13</SalesManName>
      <SupName>sample string 9</SupName>
      <UpExUP>sample string 10</UpExUP>
      <VDate>2024-11-15T07:47:11.1881283+05:30</VDate>
      <VNo>sample string 3</VNo>
      <VType>sample string 2</VType>
    </clsCollectionDetails>
  </lst_collection_ledger>
  <lst_voucher>
    <clsVoucher>
      <AcCode>sample string 4</AcCode>
      <AcContra>sample string 6</AcContra>
      <AcDesc>sample string 5</AcDesc>
      <BDate>2024-11-15T07:47:11.1881283+05:30</BDate>
      <Compcode>sample string 13</Compcode>
      <CrAmt>sample string 8</CrAmt>
      <Database>sample string 12</Database>
      <DrAmt>sample string 7</DrAmt>
      <DrCr>sample string 9</DrCr>
      <EventType>sample string 14</EventType>
      <Narration>sample string 10</Narration>
      <VDate>2024-11-15T07:47:11.1881283+05:30</VDate>
      <VNo>sample string 2</VNo>
      <VType>sample string 1</VType>
      <finyear>sample string 15</finyear>
    </clsVoucher>
    <clsVoucher>
      <AcCode>sample string 4</AcCode>
      <AcContra>sample string 6</AcContra>
      <AcDesc>sample string 5</AcDesc>
      <BDate>2024-11-15T07:47:11.1881283+05:30</BDate>
      <Compcode>sample string 13</Compcode>
      <CrAmt>sample string 8</CrAmt>
      <Database>sample string 12</Database>
      <DrAmt>sample string 7</DrAmt>
      <DrCr>sample string 9</DrCr>
      <EventType>sample string 14</EventType>
      <Narration>sample string 10</Narration>
      <VDate>2024-11-15T07:47:11.1881283+05:30</VDate>
      <VNo>sample string 2</VNo>
      <VType>sample string 1</VType>
      <finyear>sample string 15</finyear>
    </clsVoucher>
  </lst_voucher>
</clsCollection>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
status

boolean

None.

statuscode

HttpStatusCode

None.

title

string

None.

message

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "statuscode": 100,
  "title": "sample string 2",
  "message": "sample string 3",
  "data": {}
}

application/xml, text/xml

Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOL_Business_Objects_Layer_">
  <data />
  <message>sample string 3</message>
  <status>true</status>
  <statuscode>Continue</statuscode>
  <title>sample string 2</title>
</ApiResponse>