Create Quotation
Request
POST:/{accountBookId}/quotation
Request Body
object: Quotation Input Model
Example Request Body
{
"master": {
"docNo": "QT-000001",
"docNoFormatName": null,
"docDate": "2023-03-06",
"debtorCode": "300-D003",
"debtorName": "Customer C",
"email": "debtorC@gmail.com",
"emailCC": null,
"emailBCC": null,
"address": "34 Taman Taming Indah, Lorong Tengku Ahmad, Alor Setar, Selangor",
"attention": "",
"phone1": "04-730 2555",
"fax1": "",
"deliverAddress": "34 Taman Taming Indah, Lorong Tengku Ahmad, Alor Setar, Selangor",
"deliverContact": "",
"deliverPhone1": "",
"deliverFax1": "",
"ref": null,
"description": null,
"note": null,
"salesAgent": "Ali",
"creditTerm": "C.O.D.",
"salesLocation": "HQ",
"remark1": null,
"remark2": null,
"remark3": null,
"remark4": null,
"currencyRate": 1,
"inclusiveTax": false,
"isRoundAdj": false,
"yourRef": null,
"validity": null,
"cc": null,
"deliveryTerm": null,
"paymentTerm": null
},
"details": [
{
"productCode": "P-00003",
"productVariant": null,
"description": "Coat",
"furtherDescription": "",
"qty": 1,
"unit": "coats",
"unitPrice": 300,
"discount": null,
"taxCode": "S-5",
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"deptNo": null
}
],
"autoFillOption": {
"taxCode": true
}
}
Example Request URL:
Parameters:accountBookId
= 1 URL:
POST: https://accounting-api.autocountcloud.com/1/quotation
Response
Success Response
Code: 201
Response Headers
location
: The link to the created record, similar to request url in Get Quotation API method.
Example Success Response Headers
content-length: 0
date: Mon,06 Mar 2023 02:30:40 GMT
location: https://accounting-api.autocountcloud.com/1/quotation?docNo=QT-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-06T02:31:38.4641884Z
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}