Update Credit Note
Request
PUT:/{accountBookId}/creditNote
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Request Body
object: Credit Note Input Model
Example Request Body
Example: Add another product detail under details
field for record created in Create Credit Note.
{
"master": {
"docNo": "CN-000001",
"docNoFormatName": null,
"docDate": "2023-03-06",
"taxDate": "2023-03-06",
"debtorCode": "300-D002",
"debtorName": "Customer B",
"email": "debtorB@gmail.com",
"emailCC": null,
"emailBCC": null,
"address": "No. 1327, Jalan Padang Benggali, Butterworth, Pulau Pinang",
"attention": "",
"phone1": "04-656 3345",
"fax1": "",
"deliverAddress": "No. 1327, Jalan Padang Benggali, Butterworth, Pulau Pinang",
"deliverContact": "",
"deliverPhone1": "",
"deliverFax1": "",
"ref": null,
"description": null,
"note": null,
"remark1": null,
"remark2": null,
"remark3": null,
"remark4": null,
"creditTerm": "C.O.D.",
"salesAgent": "Bob",
"salesLocation": "HQ",
"currencyRate": 1,
"inclusiveTax": false,
"isRoundAdj": false,
"ourInvoiceNo": null,
"reason": "Incorrect size"
},
"details": [
{
"productCode": "P-00002",
"productVariant": null,
"accNo": "510-0000",
"description": "Pants",
"furtherDescription": "",
"qty": 1,
"unit": "pairs",
"unitPrice": 450,
"discount": null,
"taxCode": "S-5",
"tariffCode": "40159000",
"taxExportCountry": null,
"taxPermitNo": null,
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"unitCost": 300,
"goodsReturn": true,
"yourPONo": null,
"yourPODate": null,
"deptNo": null
},
{
"productCode": "P-00001",
"productVariant": null,
"accNo": "510-0000",
"description": "Shirt",
"furtherDescription": "",
"qty": 1,
"unit": "shirts",
"unitPrice": 350,
"discount": null,
"taxCode": "S-5",
"tariffCode": "40159000",
"taxExportCountry": null,
"taxPermitNo": null,
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"unitCost": 200,
"goodsReturn": true,
"yourPONo": null,
"yourPODate": null,
"deptNo": null
}
],
"autoFillOption": {
"accNo": false,
"taxCode": false,
"tariffCode": false,
"unitCost": false
}
}
Example Request URL:
Parameters:accountBookId
= 1 docNo
= CN-000001 URL:
PUT: https://accounting-api.autocountcloud.com/1/creditnote?docNo=CN-000001
Response
Success Response
Code: 204
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}