Get Debtor
Request
GET:/{accountBookId}/debtor
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
code | Debtor code/ account number of debtor record. | string | required |
Example Request URL:
Parameters:accountBookId
= 1 code
= 300-D001 URL:
PUT: https://accounting-api.autocountcloud.com/1/debtor?code=300-D001
Response
Success Response
Status Code: 200
Response Body
object: Debtor Data Model
Example Success Response Body
{
"accNo": "300-D001",
"parentAccNo": "300-0000",
"companyName": "Customer A",
"desc2": "",
"registerNo": "202301000001",
"isActive": true,
"address": "116 Jalan Damai, Kuala Lumpur, Wilayah Persekutuan",
"postCode": "55000",
"phone1": "03-2161 2168",
"phone2": "",
"fax1": "",
"fax2": "",
"deliverAddress": "116 Jalan Damai, Kuala Lumpur, Wilayah Persekutuan",
"deliverPostCode": "55000",
"areaCode": "KUL",
"emailAddress": "debtorA@gmail.com",
"webURL": "",
"attention": "",
"natureOfBusiness": "",
"salesAgent": "Ali",
"currencyCode": "MYR",
"creditTerm": "C.O.D.",
"taxCode": null,
"taxRegisterNo": "C 2584563202",
"note": ""
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}