-
Notifications
You must be signed in to change notification settings - Fork 2
Create Data Documentation Item
liqian-simit edited this page Sep 10, 2019
·
6 revisions
Using CURL in terminal console to create the Item data. (* If there is no data in the data column, user may direct remove the column from the create data array.)
curl --header "Content-Type: application/x-www-form-urlencoded" \
--request POST \
--data '
{
"action": "createItemProfile",
"module": "inventory",
"token": null,
"uid": "admin",
"org": "INTEC",
"branch": "HQ",
"data": {
"header": {
"item_code": "ITEM_001",
"item_name": "SOFTWARE",
"item_alternatename": "",
"item_barcode": "SOFTWARE01234",
"seqno": "10",
"isactive": "1"
},
"line": {
"baseuom_code": "Unit",
"salesuom_code": "Unit",
"salesuom_rate": "1",
"purchaseuom_code": "Unit",
"purchaseuom_rate": "1",
"costingmethod_code": "FIFO",
"sell_price": "1000",
"purchase_price": "600",
"isstock": "0",
"ispurchase": "1",
"issold": "1",
"purchaseaccount_code": "2000\/004",
"creditsalesaccount_code": "4009\/202",
"cashsalesaccount_code": "4009\/202"
}
}
}
' \
https://simbiz_system_url/simbiz/api.php