Get Payment Method Listing
Request
GET:/{accountBookId}/paymentmethod/listingRequest Parameters
| Parameter | Description | Type | |
|---|---|---|---|
page | Page index of returned records. Each page contains at most 100 records. Using a page index beyond the number of available pages will result in empty result. | number | required |
activeOnly | Active only flag. When field value is "true", only active payment methods will be included in the query. | boolean |
Example Request URL:
Parameters:accountBookId = 1 page = 1 activeOnly = true URL:
GET: https://accounting-api.autocountcloud.com/1/paymentmethod/listing?activeOnly=true&page=1 Response
Success Response
Status Code: 200
Response Body
| Field | Description | Type |
|---|---|---|
data | Response data. | array[Payment Method Listing View Model] |
totalCount | Number of records retrieved. | number |
Example Success Response Body
{
"data": [
{
"paymentMethod": "CASH",
"bankAccount": "320-0000",
"bankChargeAccount": "",
"bankChargePercent": 0,
"mergeBankChargeTrans": false,
"specialAccType": "SCH",
"journalType": "CASH",
"acceptChequeNo": false,
"paymentBy": "",
"isActive": true,
"minBankCharge": 0.00,
"bankChargeTaxCode": "",
"bankChargeTaxBRNo": "",
"bankChargeTaxBName": "",
"bankChargeTaxRegisterNo": "",
"taxEntity": ""
},
{
"paymentMethod": "BANK",
"bankAccount": "310-0000",
"bankChargeAccount": "902-0000",
"bankChargePercent": 1.5,
"mergeBankChargeTrans": true,
"specialAccType": "SBK",
"journalType": "GENERAL",
"acceptChequeNo": true,
"paymentBy": "CHEQUE",
"isActive": true,
"minBankCharge": 0.50,
"bankChargeTaxCode": "",
"bankChargeTaxBRNo": "",
"bankChargeTaxBName": "",
"bankChargeTaxRegisterNo": "",
"taxEntity": ""
}
],
"totalCount": 2
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}