Skip to main content

Create Credit Note

Request

POST:/{accountBookId}/creditNote

Request Body

object: Credit Note Input Model

Example Request Body
{
"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
}
],
"autoFillOption": {
"accNo": false,
"taxCode": false,
"tariffCode": false,
"unitCost": false
},
"saveApprove": null
}

Example Request URL:

Parameters:
accountBookId = 1

URL:
POST: https://accounting-api.autocountcloud.com/1/creditnote

Response

Success Response

Code: 201

Response Headers

location: The link to the created record, similar to request url in Get Credit Note API method.

Example Success Response Headers
content-length: 0 
date: Mon,06 Mar 2023 09:38:19 GMT
location: https://accounting-api.autocountcloud.com/1/creditnote?docNo=CN-000001
server: Microsoft-IIS/10.0
x-powered-by: ASP.NET
x-rate-limit-limit: 1m
x-rate-limit-remaining: 99
x-rate-limit-reset: 2023-03-06T09:39:15.9652026Z

Error Response

Response Body

object: Error Response Model

Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}