Skip to main content

Get Payment

Request

GET:/{accountBookId}/payment

Request Parameters

ParameterDescriptionType
docNoDocument number of record.stringrequired

Example Request URL:

Parameters:
accountBookId = 1
docNo = PV-000001

URL:
GET: https://accounting-api.autocountcloud.com/1/payment?docNo=PV-000001

Response

Success Response

Status Code: 200

Response Body

object: Cash Book Entry View Model

Example Success Response Body
{
"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
}
]
}

Error Response

Response Body

object: Error Response Model

Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}