Get DocNo Format Listing
Request
GET:/{accountBookId}/docNoFormat/listing
Request 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 |
docType | Document 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
Field | Description | Type |
---|---|---|
data | Response data. | array[DocNo Format Listing View Model] |
totalCount | Number 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."
}