POST api/Sale/InsertRecoveryInvoiceWise?isOpen={isOpen}&userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isOpen

boolean

Default value is False

userId

integer

Default value is 0

Body Parameters

CashCollection
NameDescriptionTypeAdditional information
CollectionId

integer

None.

CollectionDate

date

None.

SalesmanID

string

None.

TownID

integer

None.

Sectorid

integer

None.

CashAccountNo

string

None.

UserID

integer

None.

IsFinalize

boolean

None.

IsPosted

boolean

None.

IsPosted2

boolean

None.

IsPosted3

boolean

None.

IsPosted4

boolean

None.

IsPendingCash

boolean

None.

SalesmanName

string

None.

OfficeID

integer

None.

IDOffice

integer

None.

TotalToken

decimal number

None.

TotalNetReceived

decimal number

None.

TotalDiscount

decimal number

None.

TotalCash

decimal number

None.

TotalBank

decimal number

None.

TotalGrossRecieved

decimal number

None.

DtPrint

DataTable

None.

ListBody

Collection of CashCollectionBody

None.

Request Formats

application/json, text/json

Sample:
{
  "CollectionId": 1,
  "CollectionDate": "2025-07-04T19:20:58.9192354+05:00",
  "SalesmanID": "sample string 3",
  "TownID": 4,
  "Sectorid": 5,
  "CashAccountNo": "sample string 6",
  "UserID": 7,
  "IsFinalize": true,
  "IsPosted": true,
  "IsPosted2": true,
  "IsPosted3": true,
  "IsPosted4": true,
  "IsPendingCash": true,
  "SalesmanName": "sample string 14",
  "OfficeID": 15,
  "IDOffice": 16,
  "TotalToken": 17.0,
  "TotalNetReceived": 18.0,
  "TotalDiscount": 19.0,
  "TotalCash": 20.0,
  "TotalBank": 21.0,
  "TotalGrossRecieved": 22.0,
  "DtPrint": null,
  "ListBody": [
    {
      "SerialNo": 1,
      "CollectionId": 2,
      "CustomerId": "sample string 3",
      "RAmount": 4.0,
      "Discount": 5.0,
      "isDeleted": true,
      "SaleID": "sample string 7",
      "Receivables": 8.0,
      "IsFinalized": true,
      "Cash": 9.0,
      "BankID": "sample string 10",
      "BankCash": 11.0,
      "ChequeDate": "2025-07-04T19:20:58.9348403+05:00",
      "ChequeNo": "sample string 13",
      "BankDepositID": 14.0,
      "BankDepositDate": "2025-07-04T19:20:58.9348403+05:00",
      "VoucherNoT": 16,
      "IDOfficeS": 17,
      "IDOfficeBD": 18,
      "VoucherDateT": "2025-07-04T19:20:58.9348403+05:00",
      "SaleDate": "2025-07-04T19:20:58.9348403+05:00",
      "VoucherDateOpen": "2025-07-04T19:20:58.9348403+05:00",
      "TokenCash": 22.0,
      "PartyName": "sample string 23",
      "PartyMobile": "sample string 24",
      "TownID": "sample string 25",
      "TownName": "sample string 26",
      "BankAccountName": "sample string 27",
      "NewVoucherNo": "sample string 28",
      "BankVoucherNoNew": "sample string 29",
      "NewVoucherNoT": "sample string 30",
      "Balance": 31.0,
      "BankPrevBal": 32.0,
      "IsCheque": true,
      "IsReconcile": true,
      "IsOnline": true,
      "OpenVoucherDate": "2025-07-04T19:20:58.9348403+05:00"
    },
    {
      "SerialNo": 1,
      "CollectionId": 2,
      "CustomerId": "sample string 3",
      "RAmount": 4.0,
      "Discount": 5.0,
      "isDeleted": true,
      "SaleID": "sample string 7",
      "Receivables": 8.0,
      "IsFinalized": true,
      "Cash": 9.0,
      "BankID": "sample string 10",
      "BankCash": 11.0,
      "ChequeDate": "2025-07-04T19:20:58.9348403+05:00",
      "ChequeNo": "sample string 13",
      "BankDepositID": 14.0,
      "BankDepositDate": "2025-07-04T19:20:58.9348403+05:00",
      "VoucherNoT": 16,
      "IDOfficeS": 17,
      "IDOfficeBD": 18,
      "VoucherDateT": "2025-07-04T19:20:58.9348403+05:00",
      "SaleDate": "2025-07-04T19:20:58.9348403+05:00",
      "VoucherDateOpen": "2025-07-04T19:20:58.9348403+05:00",
      "TokenCash": 22.0,
      "PartyName": "sample string 23",
      "PartyMobile": "sample string 24",
      "TownID": "sample string 25",
      "TownName": "sample string 26",
      "BankAccountName": "sample string 27",
      "NewVoucherNo": "sample string 28",
      "BankVoucherNoNew": "sample string 29",
      "NewVoucherNoT": "sample string 30",
      "Balance": 31.0,
      "BankPrevBal": 32.0,
      "IsCheque": true,
      "IsReconcile": true,
      "IsOnline": true,
      "OpenVoucherDate": "2025-07-04T19:20:58.9348403+05:00"
    }
  ]
}

application/xml, text/xml

Sample:
<CashCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models">
  <CashAccountNo>sample string 6</CashAccountNo>
  <CollectionDate>2025-07-04T19:20:58.9192354+05:00</CollectionDate>
  <CollectionId>1</CollectionId>
  <DtPrint i:nil="true" />
  <IDOffice>16</IDOffice>
  <IsFinalize>true</IsFinalize>
  <IsPendingCash>true</IsPendingCash>
  <IsPosted>true</IsPosted>
  <IsPosted2>true</IsPosted2>
  <IsPosted3>true</IsPosted3>
  <IsPosted4>true</IsPosted4>
  <ListBody>
    <CashCollectionBody>
      <Balance>31</Balance>
      <BankAccountName>sample string 27</BankAccountName>
      <BankCash>11</BankCash>
      <BankDepositDate>2025-07-04T19:20:58.9348403+05:00</BankDepositDate>
      <BankDepositID>14</BankDepositID>
      <BankID>sample string 10</BankID>
      <BankPrevBal>32</BankPrevBal>
      <BankVoucherNoNew>sample string 29</BankVoucherNoNew>
      <Cash>9</Cash>
      <ChequeDate>2025-07-04T19:20:58.9348403+05:00</ChequeDate>
      <ChequeNo>sample string 13</ChequeNo>
      <CollectionId>2</CollectionId>
      <CustomerId>sample string 3</CustomerId>
      <Discount>5</Discount>
      <IDOfficeBD>18</IDOfficeBD>
      <IDOfficeS>17</IDOfficeS>
      <IsCheque>true</IsCheque>
      <IsFinalized>true</IsFinalized>
      <IsOnline>true</IsOnline>
      <IsReconcile>true</IsReconcile>
      <NewVoucherNo>sample string 28</NewVoucherNo>
      <NewVoucherNoT>sample string 30</NewVoucherNoT>
      <OpenVoucherDate>2025-07-04T19:20:58.9348403+05:00</OpenVoucherDate>
      <PartyMobile>sample string 24</PartyMobile>
      <PartyName>sample string 23</PartyName>
      <RAmount>4</RAmount>
      <Receivables>8</Receivables>
      <SaleDate>2025-07-04T19:20:58.9348403+05:00</SaleDate>
      <SaleID>sample string 7</SaleID>
      <SerialNo>1</SerialNo>
      <TokenCash>22</TokenCash>
      <TownID>sample string 25</TownID>
      <TownName>sample string 26</TownName>
      <VoucherDateOpen>2025-07-04T19:20:58.9348403+05:00</VoucherDateOpen>
      <VoucherDateT>2025-07-04T19:20:58.9348403+05:00</VoucherDateT>
      <VoucherNoT>16</VoucherNoT>
      <isDeleted>true</isDeleted>
    </CashCollectionBody>
    <CashCollectionBody>
      <Balance>31</Balance>
      <BankAccountName>sample string 27</BankAccountName>
      <BankCash>11</BankCash>
      <BankDepositDate>2025-07-04T19:20:58.9348403+05:00</BankDepositDate>
      <BankDepositID>14</BankDepositID>
      <BankID>sample string 10</BankID>
      <BankPrevBal>32</BankPrevBal>
      <BankVoucherNoNew>sample string 29</BankVoucherNoNew>
      <Cash>9</Cash>
      <ChequeDate>2025-07-04T19:20:58.9348403+05:00</ChequeDate>
      <ChequeNo>sample string 13</ChequeNo>
      <CollectionId>2</CollectionId>
      <CustomerId>sample string 3</CustomerId>
      <Discount>5</Discount>
      <IDOfficeBD>18</IDOfficeBD>
      <IDOfficeS>17</IDOfficeS>
      <IsCheque>true</IsCheque>
      <IsFinalized>true</IsFinalized>
      <IsOnline>true</IsOnline>
      <IsReconcile>true</IsReconcile>
      <NewVoucherNo>sample string 28</NewVoucherNo>
      <NewVoucherNoT>sample string 30</NewVoucherNoT>
      <OpenVoucherDate>2025-07-04T19:20:58.9348403+05:00</OpenVoucherDate>
      <PartyMobile>sample string 24</PartyMobile>
      <PartyName>sample string 23</PartyName>
      <RAmount>4</RAmount>
      <Receivables>8</Receivables>
      <SaleDate>2025-07-04T19:20:58.9348403+05:00</SaleDate>
      <SaleID>sample string 7</SaleID>
      <SerialNo>1</SerialNo>
      <TokenCash>22</TokenCash>
      <TownID>sample string 25</TownID>
      <TownName>sample string 26</TownName>
      <VoucherDateOpen>2025-07-04T19:20:58.9348403+05:00</VoucherDateOpen>
      <VoucherDateT>2025-07-04T19:20:58.9348403+05:00</VoucherDateT>
      <VoucherNoT>16</VoucherNoT>
      <isDeleted>true</isDeleted>
    </CashCollectionBody>
  </ListBody>
  <OfficeID>15</OfficeID>
  <SalesmanID>sample string 3</SalesmanID>
  <SalesmanName>sample string 14</SalesmanName>
  <Sectorid>5</Sectorid>
  <TotalBank>21</TotalBank>
  <TotalCash>20</TotalCash>
  <TotalDiscount>19</TotalDiscount>
  <TotalGrossRecieved>22</TotalGrossRecieved>
  <TotalNetReceived>18</TotalNetReceived>
  <TotalToken>17</TotalToken>
  <TownID>4</TownID>
  <UserID>7</UserID>
</CashCollection>

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.