Update Debtor
Request
PUT:/{accountBookId}/debtor
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
code | Debtor code/ account number of debtor record. | string | required |
Request Body
object: Debtor Data Model
accNo
and parentAccNo
are required fields for update method.
Example Request Body
Example: Add website to record created in Create Debtor.
{
"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": "www.debtorA.com",
"attention": "",
"natureOfBusiness": "",
"salesAgent": "Ali",
"currencyCode": "MYR",
"creditTerm": "C.O.D.",
"taxCode": "",
"taxRegisterNo": "C 2584563202",
"note": ""
}
Example Request URL:
Parameters:accountBookId
= 1 code
= 300-D001 URL:
PUT: https://accounting-api.autocountcloud.com/1/debtor?code=300-D001
Response
Success Response
Code: 204
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}