Debtor / Accounts Receivable (A/R)
Debtor Access
Debtor List
- Request Instruction
HTTPS Method POST URL http://subdomain.supersuite.my/api/debtor/list Content Type application/json Response Type JSON Parameter Description token: string is required.
Request Headers {
"Content-Type":"application/json"
}
Request Body {
"token" : "B7ABD5DEEC6588997DE41B0FE0665"
}
- Response JSON Format
Successful Example {
"status" : true,
"data" :
[
{
"ref_id" : "0B31CD0066F81E3C27674B1BB8BC7FB1",
"chart_account_id" : "1",
"debtor_type_id" : null,
"company_name" : "SuperCounting",
"registration_number" : "R1234-123",
"debtor_account_number" : "300-0001",
"billing_address_1" : "Bayan Lepas Industrial Park,",
"billing_address_2" : "Penang, Malaysia",
"billing_address_3" : "",
"billing_address_4" : "",
"email" : "supercounting@kedios.com",
"phone_1" : "0123456789",
"phone_2" : "",
"fax_1" : "0421345",
"fax_2" : "",
"postcode" : "11600",
"currency_id" : "105",
"statement_type" : "O",
"aging_on" : "I",
"credit_limit" : "1000.00",
}
]
}
Fail Example {
"status" : false,
"error" : "Token invalid."
}
- Remark Property
Statement Type Only Accept : O, B, N
O = Open Item,
B = Balance Forward,
N = No Statement
Aging On Only Accept : I, D
I = Invoice Date,
D = Due Date
Get Debtor
- Request Instruction
HTTPS Method POST URL http://subdomain.supersuite.my/api/debtor/get-debtor/<ref_id> Content Type application/json Response Type JSON Parameter Description ref_id : string is required.
token: string is required.
Request Headers {
"Content-Type":"application/json"
}
Request Body {
"token" : "B7ABD5DEEC6588997DE41B0FE0665"
}
- Response JSON Format
Successful Example {
"status" : true,
"data" :
[
{
"ref_id" : "0B31CD0066F81E3C27674B1BB8BC7FB1",
"chart_account_id" : "1",
"debtor_type_id" : null,
"company_name" : "SuperCounting",
"registration_number" : "R1234-123",
"debtor_account_number" : "300-0001",
"billing_address_1" : "Bayan Lepas Industrial Park,",
"billing_address_2" : "Penang, Malaysia",
"billing_address_3" : "",
"billing_address_4" : "",
"email" : "supercounting@kedios.com",
"phone_1" : "0123456789",
"phone_2" : "",
"fax_1" : "0421345",
"fax_2" : "",
"postcode" : "11600",
"currency_id" : "105",
"statement_type" : "O",
"aging_on" : "I",
"credit_limit" : "1000.00",
}
]
}
Fail Example {
"status" : false,
"error" : "Token invalid. / Debtor does not existing."
}
- Remark Property
Statement Type Only Accept : O, B, N
O = Open Item,
B = Balance Forward,
N = No Statement
Aging On Only Accept : I, D
I = Invoice Date,
D = Due Date
Create Debtor
- Request Instruction
HTTPS Method POST URL http://subdomain.supersuite.my/api/debtor/create Content Type application/json Response Type JSON Parameter Description token : string, is required.
chart_account_number: string, is required.
company_name : string , is required.
currency_id : int, is required.
statement_type : Only accept O/B/N , is required.
aging_on : Only accept I/ D, is required.
credit_limit : decimal, is required.
debtor_type_id : int or null.
registration_number : string.
debtor_account_number : string.
billing_address_1 : string.
billing_address_2 : string.
billing_address_3 : string.
billing_address_4 : string.
email : string.
phone_1 : string.
phone_2 : string.
fax_1: string.
fax_2 : string.
postcode : string.
confirm : Only accept Y/N.
Request Headers {
"Content-Type":"application/json"
}
Request Body {
"token" : "B7ABD5DEEC6588997DE41B0FE0665",
"chart_account_number" : "300-0000",
"debtor_type_id" : null,
"company_name" : "SuperCounting",
"registration_number" : "R1234-123",
"debtor_account_number" : "300-0001",
"billing_address_1" : "Bayan Lepas Industrial Park,",
"billing_address_2" : "Penang, Malaysia",
"billing_address_3" : "",
"billing_address_4" : "",
"email" : "supercounting@kedios.com",
"phone_1" : "0123456789",
"phone_2" : "",
"fax_1" : "0421345",
"fax_2" : "",
"postcode" : "11600",
"currency_id" : "105",
"statement_type" : "O",
"aging_on" : "I",
"credit_limit" : "1000.00",
"confirm" : "Y"
}
- Response JSON Format
Successful Example {
"status" : true,
"debtor_account_number" : "300-F001",
"ref_id" : "FFFBD5DEEC6588997DE41B0FE0665",
}
Fail Example {
"status" : false,
"error" : "Token invalid. / Debtor save fail."
}
- Remark Property
Debtor Account Number If debtor account number is empty, it will auto generate by system.
Statement Type Only Accept : O, B, N
O = Open Item,
B = Balance Forward,
N = No Statement
Aging On Only Accept : I, D
I = Invoice Date,
D = Due Date
Confirm If your company name already exiting and you still want to create the same name so you need to put the confirm key as "Y" else "N".
Only Accept : Y,N
Y = Yes,
N = No
Edit Debtor
- Request Instruction
HTTPS Method POST URL http://subdomain.supersuite.my/api/debtor/edit/<ref_id> Content Type application/json Response Type JSON Parameter Description ref_id: string, is required.
token : string, is required.
chart_account_number: string, is required.
debtor_type_id : int or null.
company_name : string , is required.
registration_number : string.
debtor_account_number : string, is required.
billing_address_1 : string.
billing_address_2 : string.
billing_address_3 : string.
billing_address_4 : string.
email : string.
phone_1 : string.
phone_2 : string.
fax_1: string.
fax_2 : string.
postcode : string.
currency_id : int, is required.
statement_type : Only accept O/B/N , is required.
aging_on : Only accept I/ D, is required.
credit_limit : decimal, is required.
Request Headers {
"Content-Type":"application/json"
}
Request Body {
"token" : "B7ABD5DEEC6588997DE41B0FE0665",
"chart_account_number" : "300-0000",
"debtor_type_id" : null,
"company_name" : "SuperCounting",
"registration_number" : "R1234-123",
"debtor_account_number" : "300-0001",
"billing_address_1" : "Bayan Lepas Industrial Park,",
"billing_address_2" : "Penang, Malaysia",
"billing_address_3" : "",
"billing_address_4" : "",
"email" : "supercounting@kedios.com",
"phone_1" : "0123456789",
"phone_2" : "",
"fax_1" : "0421345",
"fax_2" : "",
"postcode" : "11600",
"currency_id" : "105",
"statement_type" : "O",
"aging_on" : "I",
"credit_limit" : "1000.00",
}
- Response JSON Format
Successful Example {
"status" : true,
"debtor_account_number" : "300-F001",
"ref_id" : "FFFBD5DEEC6588997DE41B0FE0665",
}
Fail Example {
"status" : false,
"error" : "Token invalid. / Debtor save fail."
}
- Remark Property
Debtor Account Number If debtor account number is empty, it will auto generate by system.
Statement Type Only Accept : O, B, N
O = Open Item,
B = Balance Forward,
N = No Statement
Aging On Only Accept : I, D
I = Invoice Date,
D = Due Date
Delete Debtor
- Request Instruction
HTTPS Method POST URL http://subdomain.supersuite.my/api/debtor/delete/<ref_id> Content Type application/json Response Type JSON Parameter Description ref_id: string, is required.
token : string, is required.
Request Headers {
"Content-Type":"application/json"
}
Request Body {
"token" : "B7ABD5DEEC6588997DE41B0FE0665",
}
- Response JSON Format
Successful Example {
"status" : true,
}
Fail Example {
"status" : false,
"error" : "Token invalid. / Debtor delete fail."
}