Update Payment
Request
PUT:/{accountBookId}/payment
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Request Body
object: Cash Book Entry Input Model
Example Request Body
Example: Add another cashbook detail under details
field for record created in Create Payment.
{
"master": {
"docNo": "PV-000001",
"docNo2": "",
"docNoFormatName": null,
"docType": "PV",
"docDate": "2023-03-13",
"taxDate": "2023-03-13",
"currencyCode": "MYR",
"currencyRate": 1,
"journalType": "GENERAL",
"dealWith": "Apparel Supplier",
"description": "Pants payment",
"note": ""
},
"details": [
{
"accNo": "400-0001",
"toAccountRate": 1,
"description": "Payment for PI-000001",
"furtherDescription": "",
"amount": 472.5,
"taxCode": "",
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"tariffCode": "",
"taxExportCountry": "",
"taxPermitNo": "",
"taxBRNo": "",
"taxBName": "",
"taxRefNo": "",
"taxRegisterNo": "",
"taxBillDate": null,
"salesAgent": "",
"inclusiveTax": true,
"deptNo": ""
},
{
"accNo": "400-0002",
"toAccountRate": 1,
"description": "Payment for PI-000018",
"furtherDescription": "",
"amount": 53.00,
"taxCode": "",
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"tariffCode": "",
"taxExportCountry": "",
"taxPermitNo": "",
"taxBRNo": "",
"taxBName": "",
"taxRefNo": "",
"taxRegisterNo": "",
"taxBillDate": null,
"salesAgent": "",
"inclusiveTax": true,
"deptNo": ""
}
],
"paymentDetails": [
{
"paymentMethod": "CASH",
"paymentBy": "",
"chequeNo": "",
"floatDay": 0,
"bankCharge": 0,
"toBankRate": 1,
"paymentAmt": 525.50,
"bankChargeTaxCode": "",
"bankChargeTaxRate": 0,
"bankChargeTax": 0,
"bankChargeTaxRefNo": ""
}
],
"autoFillOption": {
"taxCode": false,
"tariffCode": false
}
}
Example Request URL:
Parameters:accountBookId
= 1 docNo
= PV-000001 URL:
PUT: https://accounting-api.autocountcloud.com/1/payment?docNo=PV-000001
Response
Success Response
Code: 204
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}