Skip to content

Create Debtor Credit Note

simitben edited this page Oct 16, 2025 · 6 revisions

Using CURL in terminal console to insert the Debtor Credit Note data.(* If there is no data in the data column, user may direct remove the column from the insert data array.)

curl --header "Content-Type: application/x-www-form-urlencoded" \
--request POST \
--data '
{
"action": "createDebtorCreditNote",
"module": "sales",
"token": "simit_5d6ce44404688-30487",
"uid": "admin",
"organization_code": "SIMIT",
"branch_code": "HQ",
"data": {
"headerarr": {
"document_no": "API-ARCN-00001",
"document_refno": "API_DOC_TEST",
"document_date": "2019-09-02",
"document_status": "D",
"document_prepareby": "admin",
"document_desc": "DOCUMENT CREATED FROM API",
"document_note": "ADDITIONAL NOTE",
"document_reason": "",
"document_glmemo": "ADDITIONAL GLMEMO",
"accounts_code": "11-1000",
"bpartner_no": "S0001",
"bpartner_name": "",
"billcontacts_name": "",
"billcontacts_hp": "",
"billaddress_street1": "",
"billaddress_street2": "",
"billaddress_street3": "",
"billaddress_street4": "",
"billaddress_postcode": "",
"billaddress_city": "",
"billaddress_area": "",
"billaddress_country": "",
"shipaddress_street1": "",
"shipaddress_street2": "",
"shipaddress_street3": "",
"shipaddress_street4": "",
"shipaddress_postcode": "",
"shipaddress_city": "",
"shipaddress_area": "",
"shipaddress_country": "",
"shippinginfo": "",
"shipcontacts_name": "",
"shipcontacts_hp": "",
"totalamt": "200",
"totalamt_local": "200",
"totaltaxamt": "",
"totaltaxamt_local": "",
"totalnetamt": "200",
"totalnetamt_local": "200",
"salesagent_name": "",
"terms_name": "",
"terms_day": "",
"currency_code": "MYR",
"currency_rate": "1",
"document_trackdate": "0000-00-00",
"document_tracktype": "",
"document_trackremark": "",
"document_trackupdated": "0000-00-00 00:00:00",
"document_trackupdatedby": "",
"track1_code": "",
"track2_code": "",
"track3_code": "",
"track4_code": "",
"track5_code": "",
"isprinted": "0",
"isop": "0",
"isimport": "0",
"filling_date": "2019-08-06",
"filingdatelastchangebyuser": "admin",
"created": "2019-08-06 12:04:36",
"createdby": "admin",
"updated": "2019-08-06 12:04:36",
"updatedby": "admin",
"organization_code": "SIMIT",
"branch_code": "HQ",
"rounding_amount": "0.00"
},
"linearr": [
{
"documentline_seq": "10",
"documentline_desc": "",
"documentline_promisedate": "0000-00-00",
"item_code": "",
"item_name": "TEST ITEM 1",
"quantity": "1",
"basequantity": "1",
"uom_code": "",
"baseuom_code": "",
"unitprice": "100",
"unitprice_local": "100",
"discount": "",
"discount_amt": "",
"amount_sub": "100",
"amount_sub_local": "100",
"amount_tax": "",
"amount_tax_local": "",
"amount_netttotal": "100",
"amount_netttotal_local": "100",
"accounts_code": "11-1000",
"isinclusive": "0",
"tax_name": "",
"tax_rate": "",
"taxaccounts_id": "",
"msic_code": "",
"serialno": "",
"batchno": "",
"lotno": "",
"track1_code": "",
"track2_code": "",
"track3_code": "",
"track4_code": "",
"track5_code": "",
"customfield1": "",
"customfield2": "",
"customfield3": "",
"created": "2019-08-06 12:04:36",
"createdby": "admin",
"updated": "2019-08-06 12:04:36",
"updatedby": "admin",
"isprint": "0",
"isremark": "0",
"linedocument_no": "",
"inventorydebitacc_id": "",
"inventorycreditacc_id": "",
"syscalgstamt": "",
"taxupdatedby": "",
"inventorycost": "",
"othercost": "",
"hscode_code": ""
},
{
"documentline_seq": "10",
"documentline_desc": "",
"documentline_promisedate": "0000-00-00",
"item_code": "",
"item_name": "TEST ITEM 1",
"quantity": "1",
"basequantity": "1",
"uom_code": "",
"baseuom_code": "",
"unitprice": "100",
"unitprice_local": "100",
"discount": "",
"discount_amt": "",
"amount_sub": "100",
"amount_sub_local": "100",
"amount_tax": "",
"amount_tax_local": "",
"amount_netttotal": "100",
"amount_netttotal_local": "100",
"accounts_code": "11-1000",
"isinclusive": "0",
"tax_name": "",
"tax_rate": "",
"taxaccounts_id": "",
"msic_code": "",
"serialno": "",
"batchno": "",
"lotno": "",
"track1_code": "",
"track2_code": "",
"track3_code": "",
"track4_code": "",
"track5_code": "",
"customfield1": "",
"customfield2": "",
"customfield3": "",
"created": "2019-08-06 12:04:36",
"createdby": "admin",
"updated": "2019-08-06 12:04:36",
"updatedby": "admin",
"isprint": "0",
"isremark": "0",
"linedocument_no": "",
"inventorydebitacc_id": "",
"inventorycreditacc_id": "",
"syscalgstamt": "",
"taxupdatedby": "",
"inventorycost": "",
"othercost": "",
"hscode_code": ""
}
]
}
}
' \
https://simbiz_system_url/simbiz/api.php

The available field for insert Debtor Credit Note Data

Debtor Credit Note Header Data

NoField NameData Type (Size)RequiredDescription
1document_novarchar(255)YDebtor Credit Note document number
2document_refnovarchar(255)Debtor Credit Note reference number
3document_datedateDebtor Credit Note document date
4document_statusvarchar(30)Debtor Credit Note document status
5document_preparebyvarchar(50)Preparer of the document
6document_desctextDebtor Credit Note description
7document_notetextDebtor Credit Note document note
8document_reasonvarchar(255)Debtor Credit Note Void reason
9document_glmemovarchar(255)Debtor Credit Note document GL memo
10accounts_codevarchar(50)YDebtor Credit Note Account Code
11bpartner_novarchar(50)Debtor Credit Note business partner number
12bpartner_namevarchar(255)Debtor Credit Note business partner name
13payeetypevarchar(255)Payment Voucher payee type ("others"/"bpartner")
14paidfrom_tovarchar(255)Payment Voucher Paid From To
15billcontacts_namevarchar(255)Debtor Credit Note Bill Contact Name
16billcontacts_hpvarchar(255)Debtor Credit Note bill contact handphone number
17billaddress_street1varchar(255)Debtor Credit Note bill address street 1
18billaddress_street2varchar(255)Debtor Credit Note bill address street 2
19billaddress_street3varchar(255)Debtor Credit Note bill address street 3
20billaddress_street4varchar(255)Debtor Credit Note bill address street 4
21billaddress_postcodevarchar(50)Debtor Credit Note bill address postcode
22billaddress_cityvarchar(50)Debtor Credit Note bill address city
23billaddress_areavarchar(50)Debtor Credit Note bill address area
24billaddress_countryvarchar(50)Debtor Credit Note bill address country
25shipaddress_street1varchar(255)Debtor Credit Note ship address street 1
26shipaddress_street2varchar(255)Debtor Credit Note ship address street 2
27shipaddress_street3varchar(255)Debtor Credit Note ship address street 3
28shipaddress_street4varchar(255)Debtor Credit Note ship address street 4
29shipaddress_postcodevarchar(50)Debtor Credit Note ship address postcode
30shipaddress_cityvarchar(50)Debtor Credit Note ship address city
31shipaddress_areavarchar(50)Debtor Credit Note ship address area
32shipaddress_countryvarchar(50)Debtor Credit Note ship address country
33shippinginfovarchar(255)Debtor Credit Note shipping info
34shipcontacts_namevarchar(255)Debtor Credit Note shipping contact name
35shipcontacts_hpvarchar(50)Debtor Credit Note shipping contact handphone
36totalamtdecimal(22,2)Debtor Credit Note total amount
37totalamt_localdecimal(22,2)Debtor Credit Note total amount in local currency
38totaltaxamtdecimal(22,2)Debtor Credit Note total tax amount
39totaltaxamt_localdecimal(22,2)Debtor Credit Note total tax amount in local currency
40totalnetamtdecimal(22,2)Debtor Credit Note total net amount (amt + tax)
41totalnetamt_localdecimal(22,2)Debtor Credit Note total net amount in local currency
42salesagent_namevarchar(255)Debtor Credit Note sales agent
43terms_namevarchar(255)Debtor Credit Note term name
44terms_dayint(11)Debtor Credit Note term day
45currency_codevarchar(255)Debtor Credit Note currency code
46currency_ratedecimal(14,8) NULLDebtor Credit Note currency rate
47document_trackdatedate [1970-01-01]Debtor Credit Note track date
48document_tracktypevarchar(100)Debtor Credit Note track type
49document_trackremarktextDebtor Credit Note track remark
50document_trackupdateddatetimeDebtor Credit Note track last update date time
51document_trackupdatedbyvarchar(50)Debtor Credit Note track last update by
52track1_codevarchar(255)Debtor Credit Note track 1 code
53track2_codevarchar(255)Debtor Credit Note track 2 code
54track3_codevarchar(255)Debtor Credit Note track 3 code
55track4_codevarchar(255)Debtor Credit Note track 4 code
56track5_codevarchar(255)Debtor Credit Note track 5 code
57isprintedsmallint(1)Debtor Credit Note is allow print out in the print format
58isopsmallint(1) [0]
59isimportsmallint(1)
60filling_datedateDebtor Credit Note filling Date
61filingdatelastchangebyuservarchar(50)Debtor Credit Note filling Date last updated user
62createddatetimeDebtor Credit Note created date in the system
63createdbyvarchar(50)Debtor Credit Note creator
64updateddatetimeDebtor Credit Note last updated date
65updatedbyvarchar(50)Debtor Credit Note last updated user
66organization_codevarchar(10)Debtor Credit Note was created under which organization
67branch_codevarchar(40)Debtor Credit Note was created under which branch
68process_auto_knockoffsmallint(1)Option to procress auto knockoff with FIFO method

Debtor Credit Note Line Data

NoField NameData Type (Size)RequiredDescription
1documentline_seqsmallint(6)Debtor Credit Note's document line Sequence No
2documentline_desctextDebtor Credit Note's Line description
3documentline_promisedatedateDebtor Credit Note's line promise date
4item_codevarchar(255)Debtor Credit Note's line item code
5item_namevarchar(255)Debtor Credit Note's line item name
6quantitydecimal(28,8)Debtor Credit Note's line item quantity
7basequantitydecimal(28,8)Debtor Credit Note's line item base quantity
8uom_codevarchar(255)Debtor Credit Note's line item UOM
9baseuom_codevarchar(255)Debtor Credit Note's line item base UOM
10accounts_codevarchar(50)YDebtor Credit Note's line item account code
11unitpricedecimal(24,4)Debtor Credit Note's line item unit price
12unitprice_localdecimal(24,4)Debtor Credit Note's line item unit price in local currency
13discountvarchar(255)Debtor Credit Note's line item discount percentage
14discount_amtdecimal(24,2)Debtor Credit Note's line item discount amount
15amount_subdecimal(22,2)Debtor Credit Note's line sub amount (unitprice * quantity)
16amount_sub_localdecimal(22,2)Debtor Credit Note's line sub amount in local currency
17amount_taxdecimal(22,2)Debtor Credit Note's line tax amount
18amount_tax_localdecimal(22,2)Debtor Credit Note's line tax amount in local currency
19amount_netttotaldecimal(22,2)Debtor Credit Note's line net total (sub amount + tax amount)
20amount_netttotal_localdecimal(22,2)Debtor Credit Note's line net total in local currency
21isinclusivesmallint(11)Is Inclusive tax? (Yes[1]/No[0])
22tax_namevarchar(255)Debtor Credit Note's line tax name
23tax_ratedecimal(10,4)Debtor Credit Note's line tax rate
24taxaccounts_idvarchar(50)Debtor Credit Note's line tax account
25msic_codevarchar(30)Debtor Credit Note's line MSIC code
26serialnotext NULLDebtor Credit Note's line item's serial number
27batchnovarchar(255)Debtor Credit Note's line item's batch number
28lotnovarchar(255)Debtor Credit Note's line item's lot number
29track1_codevarchar(255)Debtor Credit Note's line track 1 code
30track2_codevarchar(255)Debtor Credit Note's line track 2 code
31track3_codevarchar(255)Debtor Credit Note's line track 3 code
32track4_codevarchar(255)Debtor Credit Note's line track 4 code
33track5_codevarchar(255)Debtor Credit Note's line track 5 code
34customfield1varchar(255)Debtor Credit Note's line custom field 1
35customfield2varchar(255)Debtor Credit Note's line custom field 2
36customfield3varchar(255)Debtor Credit Note's line custom field 3
37createddatetimeDebtor Credit Note's line created date in the system
38createdbyvarchar(50)Debtor Credit Note's line creator
39updateddatetimeDebtor Credit Note's line last updated date
40updatedbyvarchar(50)Debtor Credit Note's line last updated user
41isprintsmallint(1) [1]Debtor Credit Note's line is allow print out in the print format? (Yes[1]/No[0])
42isremarkint(11)Is remark? (Yes[1]/No[0])
43linedocument_novarchar(255)
44inventorydebitacc_idvarchar(50)
45inventorycreditacc_idvarchar(50)
46syscalgstamtdecimal(14,2)
47taxupdatedbyvarchar(50)
48inventorycostdecimal(22,2) NULLDebtor Credit Note's line item's inventory cost
49othercostdecimal(22,2) NULLDebtor Credit Note's line item's landing cost
50hscode_codevarchar(50)Debtor Credit Note's line item's HS code

Clone this wiki locally