POST api/Sales/InsertSales

Request Information

URI Parameters

None.

Body Parameters

SalesHeadModel
NameDescriptionTypeAdditional information
slsHeadnum

integer

None.

slsDocPrefix

string

None.

slsDocNumb

integer

None.

slsDocDate

date

None.

slsDocDueDate

date

None.

slsEntyDate

date

None.

slsSaleType

string

None.

slsDescrip

string

None.

clientKey

integer

None.

clientName

string

None.

clientAdrs

string

None.

slsReferNo

string

None.

slsDocPost

string

None.

ledgerSalesKey

integer

None.

ledgerDiscKey

integer

None.

ledgerARkey

integer

None.

ledgerTaxKey

integer

None.

ledgerCesKey

integer

None.

ledgerRndKey

integer

None.

slsCashCust

string

None.

paymteDays

integer

None.

paymteName

string

None.

salepKey

integer

None.

salepName

string

None.

slsModifiedBy

string

None.

slsModifiedDt

date

None.

slsPostedBy

integer

None.

slsPostedDt

date

None.

currencyKey

integer

None.

currencyRate

decimal number

None.

yearKey

integer

None.

userKey

integer

None.

compKey

integer

None.

branchKey

integer

None.

addEdittag

string

None.

salesDetailList

Collection of SalesDetailModel

None.

sumDiscAmt

decimal number

None.

sumProductTotal

decimal number

None.

Subsordemo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "slsHeadnum": 1,
  "slsDocPrefix": "sample string 2",
  "slsDocNumb": 3,
  "slsDocDate": "2026-04-02T05:25:47.7405206+04:00",
  "slsDocDueDate": "2026-04-02T05:25:47.7405206+04:00",
  "slsEntyDate": "2026-04-02T05:25:47.7405206+04:00",
  "slsSaleType": "sample string 7",
  "slsDescrip": "sample string 8",
  "clientKey": 9,
  "clientName": "sample string 10",
  "clientAdrs": "sample string 11",
  "slsReferNo": "sample string 12",
  "slsDocPost": "sample string 13",
  "ledgerSalesKey": 14,
  "ledgerDiscKey": 15,
  "ledgerARkey": 16,
  "ledgerTaxKey": 17,
  "ledgerCesKey": 18,
  "ledgerRndKey": 19,
  "slsCashCust": "sample string 20",
  "paymteDays": 21,
  "paymteName": "sample string 22",
  "salepKey": 23,
  "salepName": "sample string 24",
  "slsModifiedBy": "sample string 25",
  "slsModifiedDt": "2026-04-02T05:25:47.7405206+04:00",
  "slsPostedBy": 27,
  "slsPostedDt": "2026-04-02T05:25:47.7405206+04:00",
  "currencyKey": 29,
  "currencyRate": 30.1,
  "yearKey": 31,
  "userKey": 32,
  "compKey": 33,
  "branchKey": 34,
  "addEdittag": "sample string 35",
  "salesDetailList": [
    {
      "slsLinenum": 1,
      "slsHeadnum": 2,
      "productKey": 3,
      "productName": "sample string 4",
      "slsDescrp": "sample string 5",
      "productPacQty": 6.1,
      "productQty": 7.1,
      "productPrice": 8.1,
      "discPerc": 9.1,
      "discAmt": 10.1,
      "taxKeyOne": 11,
      "taxName": "sample string 12",
      "taxPerc": 13.1,
      "taxTag": "sample string 14",
      "taxAmount": 15.1,
      "productTotal": 16.1,
      "doHeadnum": 17,
      "doDLinenum": 18,
      "ledgerKey": 19,
      "ledgerName": "sample string 20",
      "jobKey": 21,
      "jobName": "sample string 22",
      "costCenterKey": 23,
      "costCenterName": "sample string 24",
      "compStoreKey": 25,
      "compStoreName": "sample string 26",
      "compKey": 27
    },
    {
      "slsLinenum": 1,
      "slsHeadnum": 2,
      "productKey": 3,
      "productName": "sample string 4",
      "slsDescrp": "sample string 5",
      "productPacQty": 6.1,
      "productQty": 7.1,
      "productPrice": 8.1,
      "discPerc": 9.1,
      "discAmt": 10.1,
      "taxKeyOne": 11,
      "taxName": "sample string 12",
      "taxPerc": 13.1,
      "taxTag": "sample string 14",
      "taxAmount": 15.1,
      "productTotal": 16.1,
      "doHeadnum": 17,
      "doDLinenum": 18,
      "ledgerKey": 19,
      "ledgerName": "sample string 20",
      "jobKey": 21,
      "jobName": "sample string 22",
      "costCenterKey": 23,
      "costCenterName": "sample string 24",
      "compStoreKey": 25,
      "compStoreName": "sample string 26",
      "compKey": 27
    }
  ],
  "sumDiscAmt": 36.1,
  "sumProductTotal": 37.1,
  "Subsordemo": "sample string 38"
}

text/xml

Sample:
<SalesHeadModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Com.Probooks.ng.Domain.ViewModels">
  <Subsordemo>sample string 38</Subsordemo>
  <addEdittag>sample string 35</addEdittag>
  <branchKey>34</branchKey>
  <clientAdrs>sample string 11</clientAdrs>
  <clientKey>9</clientKey>
  <clientName>sample string 10</clientName>
  <compKey>33</compKey>
  <currencyKey>29</currencyKey>
  <currencyRate>30.1</currencyRate>
  <ledgerARkey>16</ledgerARkey>
  <ledgerCesKey>18</ledgerCesKey>
  <ledgerDiscKey>15</ledgerDiscKey>
  <ledgerRndKey>19</ledgerRndKey>
  <ledgerSalesKey>14</ledgerSalesKey>
  <ledgerTaxKey>17</ledgerTaxKey>
  <paymteDays>21</paymteDays>
  <paymteName>sample string 22</paymteName>
  <salepKey>23</salepKey>
  <salepName>sample string 24</salepName>
  <salesDetailList>
    <SalesDetailModel>
      <compKey>27</compKey>
      <compStoreKey>25</compStoreKey>
      <compStoreName>sample string 26</compStoreName>
      <costCenterKey>23</costCenterKey>
      <costCenterName>sample string 24</costCenterName>
      <discAmt>10.1</discAmt>
      <discPerc>9.1</discPerc>
      <doDLinenum>18</doDLinenum>
      <doHeadnum>17</doHeadnum>
      <jobKey>21</jobKey>
      <jobName>sample string 22</jobName>
      <ledgerKey>19</ledgerKey>
      <ledgerName>sample string 20</ledgerName>
      <productKey>3</productKey>
      <productName>sample string 4</productName>
      <productPacQty>6.1</productPacQty>
      <productPrice>8.1</productPrice>
      <productQty>7.1</productQty>
      <productTotal>16.1</productTotal>
      <slsDescrp>sample string 5</slsDescrp>
      <slsHeadnum>2</slsHeadnum>
      <slsLinenum>1</slsLinenum>
      <taxAmount>15.1</taxAmount>
      <taxKeyOne>11</taxKeyOne>
      <taxName>sample string 12</taxName>
      <taxPerc>13.1</taxPerc>
      <taxTag>sample string 14</taxTag>
    </SalesDetailModel>
    <SalesDetailModel>
      <compKey>27</compKey>
      <compStoreKey>25</compStoreKey>
      <compStoreName>sample string 26</compStoreName>
      <costCenterKey>23</costCenterKey>
      <costCenterName>sample string 24</costCenterName>
      <discAmt>10.1</discAmt>
      <discPerc>9.1</discPerc>
      <doDLinenum>18</doDLinenum>
      <doHeadnum>17</doHeadnum>
      <jobKey>21</jobKey>
      <jobName>sample string 22</jobName>
      <ledgerKey>19</ledgerKey>
      <ledgerName>sample string 20</ledgerName>
      <productKey>3</productKey>
      <productName>sample string 4</productName>
      <productPacQty>6.1</productPacQty>
      <productPrice>8.1</productPrice>
      <productQty>7.1</productQty>
      <productTotal>16.1</productTotal>
      <slsDescrp>sample string 5</slsDescrp>
      <slsHeadnum>2</slsHeadnum>
      <slsLinenum>1</slsLinenum>
      <taxAmount>15.1</taxAmount>
      <taxKeyOne>11</taxKeyOne>
      <taxName>sample string 12</taxName>
      <taxPerc>13.1</taxPerc>
      <taxTag>sample string 14</taxTag>
    </SalesDetailModel>
  </salesDetailList>
  <slsCashCust>sample string 20</slsCashCust>
  <slsDescrip>sample string 8</slsDescrip>
  <slsDocDate>2026-04-02T05:25:47.7405206+04:00</slsDocDate>
  <slsDocDueDate>2026-04-02T05:25:47.7405206+04:00</slsDocDueDate>
  <slsDocNumb>3</slsDocNumb>
  <slsDocPost>sample string 13</slsDocPost>
  <slsDocPrefix>sample string 2</slsDocPrefix>
  <slsEntyDate>2026-04-02T05:25:47.7405206+04:00</slsEntyDate>
  <slsHeadnum>1</slsHeadnum>
  <slsModifiedBy>sample string 25</slsModifiedBy>
  <slsModifiedDt>2026-04-02T05:25:47.7405206+04:00</slsModifiedDt>
  <slsPostedBy>27</slsPostedBy>
  <slsPostedDt>2026-04-02T05:25:47.7405206+04:00</slsPostedDt>
  <slsReferNo>sample string 12</slsReferNo>
  <slsSaleType>sample string 7</slsSaleType>
  <sumDiscAmt>36.1</sumDiscAmt>
  <sumProductTotal>37.1</sumProductTotal>
  <userKey>32</userKey>
  <yearKey>31</yearKey>
</SalesHeadModel>

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.