Skip to main content

Get DocNo Format Listing

Request

GET:/{accountBookId}/docNoFormat/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
docTypeDocument type of record.string

Example Request URL:

Example: Get listing of payment voucher document numbering formats.

Parameters:
accountBookId = 1
page = 1
docType = PV

URL:
GET: https://accounting-api.autocountcloud.com/1/docnoformat/listing?docType=PV&page=1

Response

Success Response

Status Code: 200

Response Body

FieldDescriptionType
dataResponse data.array[DocNo Format Listing View Model]
totalCountNumber of records retrieved.number
Example Success Response Body
{
"data": [
{
"name": "PV Default",
"docType": "PV",
"nextNumber": 9,
"maxNumber": 0,
"format": "PV-<000000>",
"sample": "PV-000001",
"oneMonthOneSet": false,
"isDefault": true
}
],
"totalCount": 1
}

Error Response

Response Body

object: Error Response Model

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