Update Creditor
Request
PUT:/{accountBookId}/creditor
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
code | Creditor code/ account number of creditor record. | string | required |
Request Body
object: Creditor Data Model
accNo
and parentAccNo
are required fields for update method.
Example Request Body
Example: Add website to record created in Create Creditor.
{
"accNo": "400-0001",
"parentAccNo": "400-0000",
"companyName": "Apparel Supplier",
"desc2": "",
"registerNo": "202201524856",
"isActive": true,
"address": "Jalan Wawasan 4/12, Pusat Bandar Puchong, Puchong, Selangor",
"postCode": "47100",
"phone1": "03-5192 9527",
"phone2": "",
"fax1": "",
"fax2": "",
"areaCode": "SLG",
"emailAddress": "apparelSupplier@gmail.com",
"webURL": "www.apparelSupplier.com",
"attention": "",
"natureOfBusiness": "Manufacturing",
"currencyCode": "MYR",
"creditTerm": "C.O.D.",
"taxCode": "P-5",
"taxRegisterNo": "C 0564394372 ",
"note": ""
}
Example Request URL:
Parameters:accountBookId
= 1 code
= 400-0001 URL:
PUT: https://accounting-api.autocountcloud.com/1/creditor?code=400-0001
Response
Success Response
Code: 204
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}