DocumentNumbering

URL

https://api.primatime.com/v1/documentNumberings

Properties

Name Type Access Required Description
autoNumbering Boolean read write no Determines whether the document number will be generated automatically.
createdAt Date read only no Date of creation.
displayName String read only no Describes an object in human readable form.
docType DocumentType read write YES Document type.
id String read write no Unique object identifier.
numberingScheme String read write no A mask for the document number.
trashItem TrashItem read write no Informs whether an object is in the trash. An object is in the trash if a trash item was specified.
updatedAt Date read only no Last modified date.
version Long read write no Object version number.

Metadata

{
    "type" : "DocumentNumbering",
    "path" : "/v1/documentNumberings",
    "fields" : [
        {
            "type" : "Boolean",
            "name" : "autoNumbering",
            "description" : "Determines whether the document number will be generated automatically.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "createdAt",
            "description" : "Date of creation.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "String",
            "name" : "displayName",
            "description" : "Describes an object in human readable form.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "DocumentType",
            "name" : "docType",
            "description" : "Document type.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "NotNull"
                },
                {
                    "type" : "Enum",
                    "details" : "BILL"
                }
            ]
        },
        {
            "type" : "String",
            "name" : "id",
            "description" : "Unique object identifier.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "Pattern",
                    "details" : "regexp [0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}"
                },
                {
                    "type" : "NotNull"
                }
            ]
        },
        {
            "type" : "String",
            "name" : "numberingScheme",
            "description" : "A mask for the document number.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "TrashItem",
            "path" : "/v1/trash",
            "name" : "trashItem",
            "description" : "Informs whether an object is in the trash. An object is in the trash if a trash item was specified.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "updatedAt",
            "description" : "Last modified date.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "Long",
            "name" : "version",
            "description" : "Object version number.",
            "access" : "READ_WRITE"
        }
    ],
    "cascades" : [
        {
            "cascadeType" : "REMOVE",
            "objectTypes" : [
                "TrashItem"
            ]
        }
    ]
}

Dummy data

{
    "id" : "f16cd58a-ccf8-44ea-9c58-ae7562ff7dce",
    "createdAt" : "/Date(1651049967306)/",
    "updatedAt" : "/Date(1651068507306)/",
    "version" : 5,
    "docType" : "BILL",
    "numberingScheme" : "BIL-{number}/{year}",
    "autoNumbering" : true,
    "displayName" : "BIL-{number}/{year}"
}

results matching ""

    No results matching ""