POST api/Purchase/GetPurchaseEntry
Request Information
URI Parameters
None.
Body Parameters
GetPurchaseRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PriHeadnum | integer |
None. |
|
| CompKey | integer |
None. |
|
| PrefixTag | string |
None. |
|
| SupplierKey | integer |
None. |
|
| Subsordemo | string |
None. |
|
| insertPurchaseHeader | PurchaseHeadModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"PriHeadnum": 1,
"CompKey": 2,
"PrefixTag": "sample string 3",
"SupplierKey": 4,
"Subsordemo": "sample string 5",
"insertPurchaseHeader": {
"priHeadnum": 1,
"priDocPrefix": "sample string 2",
"priDocNumb": 3,
"priDocDate": "2026-04-02T05:20:53.3439874+04:00",
"priDocDueDate": "2026-04-02T05:20:53.3439874+04:00",
"priEntyDate": "2026-04-02T05:20:53.3439874+04:00",
"priDescrip": "sample string 7",
"supplierKey": 8,
"supplierName": "sample string 9",
"supplierAdrs": "sample string 10",
"priReferNo": "sample string 11",
"priDocPost": "sample string 12",
"ledgerPurchKey": 13,
"ledgerDiscKey": 14,
"ledgerApKey": 15,
"ledgerNoStockKey": 16,
"ledgerCogsKey": 17,
"ledgerTaxKey": 18,
"ledgerCesKey": 19,
"ledgerRoundKey": 20,
"priDocType": "sample string 21",
"cashCust": "sample string 22",
"paymteDays": 23,
"paymteName": "sample string 24",
"priModifyBy": "sample string 25",
"priModifyDt": "2026-04-02T05:20:53.3439874+04:00",
"priRoundAmt": 27.1,
"priPostedBy": 28,
"priPostedDt": "2026-04-02T05:20:53.3457458+04:00",
"currencyKey": 30,
"currencyRate": 31.1,
"yearKey": 32,
"userKey": 33,
"compKey": 34,
"branchKey": 35,
"addEdittag": "sample string 36",
"purchaseDetailist": [
{
"priLinenum": 1,
"priHeadnum": 2,
"productKey": 3,
"productName": "sample string 4",
"priDescrip": "sample string 5",
"productQty": 6.1,
"productPrice": 7.1,
"discPerc": 8.1,
"discAmt": 9.1,
"taxKeyOne": 10,
"taxName": "sample string 11",
"taxPerc": 12.1,
"taxTag": "sample string 13",
"taxAmount": 14.1,
"productTotal": 15.1,
"grvHeadnum": 16,
"grvDLinenum": 17,
"lpoHeadnum": 18,
"lpoDLinenum": 19,
"ledgerKey": 20,
"ledgerName": "sample string 21",
"jobKey": 22,
"jobName": "sample string 23",
"costCenterKey": 24,
"costCenterName": "sample string 25",
"compStoreKey": 26,
"compStoreName": "sample string 27",
"compKey": 28
},
{
"priLinenum": 1,
"priHeadnum": 2,
"productKey": 3,
"productName": "sample string 4",
"priDescrip": "sample string 5",
"productQty": 6.1,
"productPrice": 7.1,
"discPerc": 8.1,
"discAmt": 9.1,
"taxKeyOne": 10,
"taxName": "sample string 11",
"taxPerc": 12.1,
"taxTag": "sample string 13",
"taxAmount": 14.1,
"productTotal": 15.1,
"grvHeadnum": 16,
"grvDLinenum": 17,
"lpoHeadnum": 18,
"lpoDLinenum": 19,
"ledgerKey": 20,
"ledgerName": "sample string 21",
"jobKey": 22,
"jobName": "sample string 23",
"costCenterKey": 24,
"costCenterName": "sample string 25",
"compStoreKey": 26,
"compStoreName": "sample string 27",
"compKey": 28
}
],
"sumDiscAmt": 37.1,
"sumProductTotal": 38.1,
"Subsordemo": "sample string 39"
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.