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
caution
When updating debtor/creditor data, only the fields to be updated need to be added to the request body. Fields that do not need to be updated should be omitted entirely instead of being left with a blank value.
Omitting the field in the request body will maintain the original value of the field while leaving the field value blank will remove the existing value of the field in the debtor/creditor record.
Omitting the field in the request body will maintain the original value of the field while leaving the field value blank will remove the existing value of the field in the debtor/creditor record.
Example: Add website to record created in Create Debtor.
{
"webURL": "www.debtorA.com"
}
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."
}