Skip to main content

Update Creditor

Request

PUT:/{accountBookId}/creditor

Request Parameters

ParameterDescriptionType
codeCreditor code/ account number of creditor record.stringrequired

Request Body

object: Creditor 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.

Example: Add website to record created in Create Creditor.

{
"webURL": "www.apparelSupplier.com"
}

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."
}