Get Quotation Listing (Specific)
Get quotation listing using specific listing filters.
Request
POST:/{accountBookId}/quotation/listing
Request Body
object: Quotation Listing Input Model
Example Request Body
Get quotation listing using a date filter
Available date filters for quotation records are date
, createdDate
and lastModifiedDate
.
Add date filters in quotation listing filter input model according to your needs.
Example: Get quotation records with document date falling between a specific date range.
Date formats for from
and to
fields can be found here.
{
"page": 1,
"filter": {
"date": {
"from": "2022-05-02",
"to": "2023-05-02"
}
}
}
Get quotation listing using a string filter
Available string filters for quotation records are docNo
, debtorCode
and salesAgent
.
Add string filters in quotation listing filter input model according to your needs.
Example: Get quotation records with specific document numbers.
For filtering specific string values, use the multiSelect
field in the filter.
{
"page": 1,
"filter": {
"docNo": {
"multiSelect": ["QT-000001", "QT-000002"]
}
}
}
Example: Get quotation records with document number falling between a range of string values.
For filtering a range of string values, use the from
and to
fields in the filter.
{
"page": 1,
"filter": {
"docNo": {
"from": "QT-000001",
"to": "QT-000005"
}
}
}
Composite example:
{
"page": 1,
"filter": {
"date": {
"from": "2023-01-06",
"to": "2023-03-06"
},
"docNo": {
"multiSelect": ["QT-000001","QT-000003","QT-000005"]
}
}
}
Example Request URL:
Parameters:accountBookId
= 1 URL:
POST: https://accounting-api.autocountcloud.com/1/quotation/listing
Response
Success Response
Status Code: 200
Response Body
Field | Description | Type |
---|---|---|
data | Response data. | array[Quotation View Model] |
totalCount | Number of records retrieved. | number |
Example Success Response Body
{
"data": [
{
"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-03-08T14:39:44.9998753",
"yourRef": null,
"validity": null,
"cc": null,
"deliveryTerm": null,
"paymentTerm": null,
"status": "Pending"
},
"details": [
{
"docKey": 70,
"dtlKey": 101,
"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
}
]
}
],
"totalCount": 1
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}