Skip to main content

Get Payment Method Listing

Request

GET:/{accountBookId}/paymentmethod/listing

Request Parameters

ParameterDescriptionType
pagePage 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.numberrequired
activeOnlyActive 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

FieldDescriptionType
dataResponse data.array[Payment Method Listing View Model]
totalCountNumber 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."
}