POST api/Sales/InsertReceipt

Request Information

URI Parameters

None.

Body Parameters

ReceiptsHeadModel
NameDescriptionTypeAdditional information
recHeadnum

integer

None.

recDocPrefix

string

None.

recDocNumb

integer

None.

recDocDate

date

None.

recEntyDate

date

None.

recPdcdate

date

None.

recDoctype

string

None.

recModePaym

string

None.

recDescrip

string

None.

recReferNo

string

None.

clientKey

integer

None.

clientName

string

None.

clientAdrs

string

None.

recDocPost

string

None.

recAmount

decimal number

None.

currencyKey

integer

None.

currencyRate

decimal number

None.

ledgerCashkey

integer

None.

ledgerCashName

string

None.

ledgerARkey

integer

None.

ledgerArName

string

None.

yearKey

integer

None.

userKey

integer

None.

compKey

integer

None.

branchKey

integer

None.

recPostedBy

integer

None.

recPostedDt

date

None.

recModifiedBy

string

None.

recModifiedDt

date

None.

recAmountrecd

decimal number

None.

recAmtType

string

None.

addEdittag

string

None.

subsordemo

string

None.

receiptDetailList

Collection of ReceiptsDetailModel

None.

receiptsArDetailList

Collection of ReceivableARModel

None.

Request Formats

application/json, text/json

Sample:
{
  "recHeadnum": 1,
  "recDocPrefix": "sample string 2",
  "recDocNumb": 3,
  "recDocDate": "2026-04-02T05:21:25.6430841+04:00",
  "recEntyDate": "2026-04-02T05:21:25.6430841+04:00",
  "recPdcdate": "2026-04-02T05:21:25.6430841+04:00",
  "recDoctype": "sample string 7",
  "recModePaym": "sample string 8",
  "recDescrip": "sample string 9",
  "recReferNo": "sample string 10",
  "clientKey": 11,
  "clientName": "sample string 12",
  "clientAdrs": "sample string 13",
  "recDocPost": "sample string 14",
  "recAmount": 15.1,
  "currencyKey": 16,
  "currencyRate": 17.1,
  "ledgerCashkey": 18,
  "ledgerCashName": "sample string 19",
  "ledgerARkey": 20,
  "ledgerArName": "sample string 21",
  "yearKey": 22,
  "userKey": 23,
  "compKey": 24,
  "branchKey": 25,
  "recPostedBy": 26,
  "recPostedDt": "2026-04-02T05:21:25.6430841+04:00",
  "recModifiedBy": "sample string 28",
  "recModifiedDt": "2026-04-02T05:21:25.6430841+04:00",
  "recAmountrecd": 30.1,
  "recAmtType": "sample string 31",
  "addEdittag": "sample string 32",
  "subsordemo": "sample string 33",
  "receiptDetailList": [
    {
      "recDLinenum": 1,
      "recHeadnum": 2,
      "recDescrip": "sample string 3",
      "recTransDate": "2026-04-02T05:21:25.6430841+04:00",
      "ledgerKey": 5,
      "recDebit": 6.1,
      "recCredit": 7.1,
      "ledgerName": "sample string 8",
      "compKey": 9
    },
    {
      "recDLinenum": 1,
      "recHeadnum": 2,
      "recDescrip": "sample string 3",
      "recTransDate": "2026-04-02T05:21:25.6430841+04:00",
      "ledgerKey": 5,
      "recDebit": 6.1,
      "recCredit": 7.1,
      "ledgerName": "sample string 8",
      "compKey": 9
    }
  ],
  "receiptsArDetailList": [
    {
      "arHeadNmb": 1,
      "arDocTag": "sample string 2",
      "arDocPrefix": "sample string 3",
      "arDocNmb": 4,
      "arDocDate": "2026-04-02T05:21:25.6430841+04:00",
      "arDescrip": "sample string 6",
      "arReference": "sample string 7",
      "paymteDays": 8,
      "arAmount": 9.1,
      "paidAmount": 10.1,
      "balEditAmount": 11.1,
      "balAmount": 12.1,
      "clientKey": 13,
      "clientCode": "sample string 14",
      "clientName": "sample string 15",
      "docPosted": "sample string 16",
      "currencyKey": 17,
      "currencyRate": 18.1,
      "yearKey": 19,
      "branchKey": 20,
      "userKey": 21,
      "compKey": 22,
      "totalInvAmt": 23.1,
      "totalpaidAmt": 24.1,
      "totalbalAmt": 25.1
    },
    {
      "arHeadNmb": 1,
      "arDocTag": "sample string 2",
      "arDocPrefix": "sample string 3",
      "arDocNmb": 4,
      "arDocDate": "2026-04-02T05:21:25.6430841+04:00",
      "arDescrip": "sample string 6",
      "arReference": "sample string 7",
      "paymteDays": 8,
      "arAmount": 9.1,
      "paidAmount": 10.1,
      "balEditAmount": 11.1,
      "balAmount": 12.1,
      "clientKey": 13,
      "clientCode": "sample string 14",
      "clientName": "sample string 15",
      "docPosted": "sample string 16",
      "currencyKey": 17,
      "currencyRate": 18.1,
      "yearKey": 19,
      "branchKey": 20,
      "userKey": 21,
      "compKey": 22,
      "totalInvAmt": 23.1,
      "totalpaidAmt": 24.1,
      "totalbalAmt": 25.1
    }
  ]
}

text/xml

Sample:
<ReceiptsHeadModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Com.Probooks.ng.Domain.ViewModels">
  <addEdittag>sample string 32</addEdittag>
  <branchKey>25</branchKey>
  <clientAdrs>sample string 13</clientAdrs>
  <clientKey>11</clientKey>
  <clientName>sample string 12</clientName>
  <compKey>24</compKey>
  <currencyKey>16</currencyKey>
  <currencyRate>17.1</currencyRate>
  <ledgerARkey>20</ledgerARkey>
  <ledgerArName>sample string 21</ledgerArName>
  <ledgerCashName>sample string 19</ledgerCashName>
  <ledgerCashkey>18</ledgerCashkey>
  <recAmount>15.1</recAmount>
  <recAmountrecd>30.1</recAmountrecd>
  <recAmtType>sample string 31</recAmtType>
  <recDescrip>sample string 9</recDescrip>
  <recDocDate>2026-04-02T05:21:25.6430841+04:00</recDocDate>
  <recDocNumb>3</recDocNumb>
  <recDocPost>sample string 14</recDocPost>
  <recDocPrefix>sample string 2</recDocPrefix>
  <recDoctype>sample string 7</recDoctype>
  <recEntyDate>2026-04-02T05:21:25.6430841+04:00</recEntyDate>
  <recHeadnum>1</recHeadnum>
  <recModePaym>sample string 8</recModePaym>
  <recModifiedBy>sample string 28</recModifiedBy>
  <recModifiedDt>2026-04-02T05:21:25.6430841+04:00</recModifiedDt>
  <recPdcdate>2026-04-02T05:21:25.6430841+04:00</recPdcdate>
  <recPostedBy>26</recPostedBy>
  <recPostedDt>2026-04-02T05:21:25.6430841+04:00</recPostedDt>
  <recReferNo>sample string 10</recReferNo>
  <receiptDetailList>
    <ReceiptsDetailModel>
      <compKey>9</compKey>
      <ledgerKey>5</ledgerKey>
      <ledgerName>sample string 8</ledgerName>
      <recCredit>7.1</recCredit>
      <recDLinenum>1</recDLinenum>
      <recDebit>6.1</recDebit>
      <recDescrip>sample string 3</recDescrip>
      <recHeadnum>2</recHeadnum>
      <recTransDate>2026-04-02T05:21:25.6430841+04:00</recTransDate>
    </ReceiptsDetailModel>
    <ReceiptsDetailModel>
      <compKey>9</compKey>
      <ledgerKey>5</ledgerKey>
      <ledgerName>sample string 8</ledgerName>
      <recCredit>7.1</recCredit>
      <recDLinenum>1</recDLinenum>
      <recDebit>6.1</recDebit>
      <recDescrip>sample string 3</recDescrip>
      <recHeadnum>2</recHeadnum>
      <recTransDate>2026-04-02T05:21:25.6430841+04:00</recTransDate>
    </ReceiptsDetailModel>
  </receiptDetailList>
  <receiptsArDetailList>
    <ReceivableARModel>
      <arAmount>9.1</arAmount>
      <arDescrip>sample string 6</arDescrip>
      <arDocDate>2026-04-02T05:21:25.6430841+04:00</arDocDate>
      <arDocNmb>4</arDocNmb>
      <arDocPrefix>sample string 3</arDocPrefix>
      <arDocTag>sample string 2</arDocTag>
      <arHeadNmb>1</arHeadNmb>
      <arReference>sample string 7</arReference>
      <balAmount>12.1</balAmount>
      <balEditAmount>11.1</balEditAmount>
      <branchKey>20</branchKey>
      <clientCode>sample string 14</clientCode>
      <clientKey>13</clientKey>
      <clientName>sample string 15</clientName>
      <compKey>22</compKey>
      <currencyKey>17</currencyKey>
      <currencyRate>18.1</currencyRate>
      <docPosted>sample string 16</docPosted>
      <paidAmount>10.1</paidAmount>
      <paymteDays>8</paymteDays>
      <totalInvAmt>23.1</totalInvAmt>
      <totalbalAmt>25.1</totalbalAmt>
      <totalpaidAmt>24.1</totalpaidAmt>
      <userKey>21</userKey>
      <yearKey>19</yearKey>
    </ReceivableARModel>
    <ReceivableARModel>
      <arAmount>9.1</arAmount>
      <arDescrip>sample string 6</arDescrip>
      <arDocDate>2026-04-02T05:21:25.6430841+04:00</arDocDate>
      <arDocNmb>4</arDocNmb>
      <arDocPrefix>sample string 3</arDocPrefix>
      <arDocTag>sample string 2</arDocTag>
      <arHeadNmb>1</arHeadNmb>
      <arReference>sample string 7</arReference>
      <balAmount>12.1</balAmount>
      <balEditAmount>11.1</balEditAmount>
      <branchKey>20</branchKey>
      <clientCode>sample string 14</clientCode>
      <clientKey>13</clientKey>
      <clientName>sample string 15</clientName>
      <compKey>22</compKey>
      <currencyKey>17</currencyKey>
      <currencyRate>18.1</currencyRate>
      <docPosted>sample string 16</docPosted>
      <paidAmount>10.1</paidAmount>
      <paymteDays>8</paymteDays>
      <totalInvAmt>23.1</totalInvAmt>
      <totalbalAmt>25.1</totalbalAmt>
      <totalpaidAmt>24.1</totalpaidAmt>
      <userKey>21</userKey>
      <yearKey>19</yearKey>
    </ReceivableARModel>
  </receiptsArDetailList>
  <subsordemo>sample string 33</subsordemo>
  <userKey>23</userKey>
  <yearKey>22</yearKey>
</ReceiptsHeadModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.