Get Quotation
Request
GET:/{accountBookId}/quotation
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Example Request URL:
Parameters:accountBookId
= 1 docNo
= QT-000001 URL:
GET: https://accounting-api.autocountcloud.com/1/quotation?docNo=QT-000001
Response
Success Response
Status Code: 200
Response Body
object: Quotation View Model
Example Success Response Body
{
{
"master": {
"docKey": 70,
"docNo": "QT-000001",
"docDate": "2023-03-06T00:00:00",
"debtorCode": "300-D001",
"debtorName": "Customer A",
"currencyCode": "MYR",
"currencyRate": 1.000000000000,
"email": "debtorA@gmail.com",
"emailCC": null,
"emailBCC": null,
"address": "116 Jalan Damai, Kuala Lumpur, Wilayah Persekutuan",
"attention": "",
"phone1": "03-2161 2168",
"fax1": "",
"deliverAddress": "116 Jalan Damai, Kuala Lumpur, Wilayah Persekutuan",
"deliverContact": "",
"deliverPhone1": "",
"deliverFax1": "",
"ref": null,
"description": null,
"note": null,
"remark1": null,
"remark2": null,
"remark3": null,
"remark4": null,
"creditTerm": "C.O.D.",
"salesAgent": "Ali",
"salesLocation": "HQ",
"inclusiveTax": false,
"isRoundAdj": false,
"cancelled": false,
"documentStatus": 0,
"lostReason": null,
"totalExTax": 800.00,
"tax": 40.00,
"localTax": 40.00,
"exTax": 40.00,
"localExTax": 40.00,
"taxableAmt": 800.00,
"localTaxableAmt": 800.00,
"netTotal": 840.00,
"localNetTotal": 840.00,
"roundAdj": 0.00,
"total": 800.00,
"finalTotal": 840.00,
"createdUserID": "ADMIN",
"createdTimeStamp": "2023-03-06T09:27:28.0456479",
"lastModifiedUserID": "ADMIN",
"lastModified": "2023-06-22T18:25:33.3400169",
"yourRef": null,
"validity": null,
"cc": null,
"deliveryTerm": null,
"paymentTerm": null,
"status": "Pending",
"approverID": "ADMIN",
"approvedTimeStamp": "2023-03-06T16:42:26.9875477",
"rejectReason": null
},
"details": [
{
"docKey": 70,
"dtlKey": 124,
"seq": 0,
"productId": 5,
"productCode": "P-00001",
"productVariantId": null,
"productVariant1Option": null,
"productVariant2Option": null,
"description": "Shirt",
"furtherDescription": "",
"qty": 1.00000000,
"unit": "shirts",
"unitPrice": 350.00000000,
"discount": null,
"discountAmt": 0.00,
"taxCode": "S-5",
"taxRate": 5.000000,
"taxAdjustment": 0.00,
"localTaxAdjustment": 0.00,
"subTotalExTax": 350.00,
"localSubTotalExTax": 350.00,
"tax": 17.50,
"localTax": 17.50,
"subTotal": 350.00,
"localSubTotal": 350.00,
"deptNo": null
},
{
"docKey": 70,
"dtlKey": 125,
"seq": 1,
"productId": 11,
"productCode": "P-00002",
"productVariantId": null,
"productVariant1Option": null,
"productVariant2Option": null,
"description": "Pants",
"furtherDescription": "",
"qty": 1.00000000,
"unit": "pairs",
"unitPrice": 450.00000000,
"discount": null,
"discountAmt": 0.00,
"taxCode": "S-5",
"taxRate": 5.000000,
"taxAdjustment": 0.00,
"localTaxAdjustment": 0.00,
"subTotalExTax": 450.00,
"localSubTotalExTax": 450.00,
"tax": 22.50,
"localTax": 22.50,
"subTotal": 450.00,
"localSubTotal": 450.00,
"deptNo": null
}
]
}
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}