Get Payment Listing (Specific)
Get payment listing using specific listing filters.
Request
POST:/{accountBookId}/payment/listing
Request Body
object: Cash Book Entry Listing Input Model
Example Request Body
Get payment listing for a specific document type
Available docType
values are "PV" for Payment Voucher and "OR" for Receipt Voucher.
Example: Get payment voucher records.
{
"page": 1,
"docType": "PV"
}
Get payment listing using a date filter
Available date filters for payment records are date
, createdDate
and lastModifiedDate
.
Add date filters in cash book entry listing filter input model according to your needs.
Example: Get payment 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 payment listing using a string filter
Available string filter for payment records is docNo
.
Example: Get payment records with specific document numbers.
For filtering specific string values, use the multiSelect
field in the filter.
{
"page": 1,
"filter": {
"docNo": {
"multiSelect": ["PV-000001", "PV-000002"]
}
}
}
Example: Get payment 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": "PV-000001",
"to": "PV-000005"
}
}
}
Composite example:
{
"page": 1,
"docType": "PV",
"filter": {
"date": {
"from": "2023-01-06",
"to": "2023-03-06"
},
"docNo": {
"multiSelect": ["PV-000001","PV-000003","PV-000005"]
}
}
}
Example Request URL:
Parameters:accountBookId
= 1 URL:
POST: https://accounting-api.autocountcloud.com/1/payment/listing
Response
Success Response
Status Code: 200
Response Body
Field | Description | Type |
---|---|---|
data | Response data. | array[Cash Book Entry View Model] |
totalCount | Number of records retrieved. | number |
Example Success Response Body
{
"data": [
{
"master": {
"docKey": 92,
"docNo": "PV-000001",
"docNo2": null,
"docDate": "2023-03-06T00:00:00",
"taxDate": null,
"docType": "PV",
"currencyCode": "MYR",
"currencyRate": 1.000000000000,
"journalType": "GENERAL",
"dealWith": "Apparel Supplier",
"description": "Pants payment",
"note": null,
"cancelled": false,
"totalPayment": 472.50,
"localTotalPayment": 472.50,
"total": 472.50,
"localTotal": 472.50,
"totalExTax": 472.50,
"localTotalExTax": 472.50,
"taxableAmt": 0.00,
"localTaxableAmt": 0.00,
"tax": 0.00,
"localTax": 0.00,
"exTax": 0.00,
"localExTax": 0.00,
"netTotal": 472.50,
"localNetTotal": 472.50,
"createdTimeStamp": "2023-03-06T15:02:29.8201669",
"createdUserID": "ADMIN",
"lastModified": "2023-03-06T15:27:43.914987",
"lastModifiedUserID": "ADMIN",
"status": "Unapplied",
"approverID": "ADMIN",
"approvedTimeStamp": "2023-03-06T16:42:26.9875477",
"rejectReason": null
},
"details": [
{
"docKey": 92,
"dtlKey": 264,
"seq": 1,
"accNo": "400-0001",
"toAccountRate": 1.000000000000,
"description": "Payment for PI-000001\t",
"furtherDescription": null,
"amount": 472.50,
"localAmount": 472.50,
"taxCode": null,
"taxRate": null,
"taxAdjustment": 0.00,
"localTaxAdjustment": 0.00,
"tariffCode": null,
"taxExportCountry": null,
"taxPermitNo": null,
"taxBRNo": null,
"taxBName": null,
"taxRefNo": null,
"taxRegisterNo": null,
"taxBillDate": null,
"amountExTax": 472.50,
"localAmountExTax": 472.50,
"tax": 0.00,
"localTax": 0.00,
"amountWithTax": 472.50,
"localAmountWithTax": 472.50,
"salesAgent": null,
"inclusiveTax": true,
"deptNo": null
}
],
"paymentDetails": [
{
"docKey": 92,
"dtlKey": 265,
"seq": 1,
"paymentMethod": "CASH",
"paymentBy": null,
"chequeNo": null,
"floatDay": 0,
"bankCharge": 0.00,
"paymentAmt": 472.50,
"localPaymentAmt": 472.50,
"bankChargeTaxCode": null,
"bankChargeTaxRate": 0.000000,
"bankChargeTax": 0.00,
"bankChargeTaxRefNo": null,
"toBankRate": 1.000000000000
}
]
}
],
"totalCount": 1
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}