Update Quotation
Request
PUT:/{accountBookId}/quotation
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Request Body
object: Quotation Input Model
Example Request Body
Example: Add another product detail under details
field for record created in Create Quotation.
{
"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
},
{
"productCode": "P-00002",
"productVariant": null,
"description": "Pants",
"furtherDescription": "",
"qty": 1,
"unit": "pairs",
"unitPrice": 450,
"discount": null,
"taxCode": "S-5",
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"deptNo": null
}
],
"autoFillOption": {
"taxCode": true
}
}
Example Request URL:
Parameters:accountBookId
= 1 docNo
= QT-000001 URL:
PUT: https://accounting-api.autocountcloud.com/1/quotation?docNo=QT-000001
Response
Success Response
Code: 204
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}