Magidoc

reserveDocumentNumber
Mutation

Reserves the next document number for the selected finance document type.

Arguments

#

workspaceId

ID !
Non-null

glCompanyId

Whose books the document belongs to. Omitted, the number comes from the workspace's default company's series. A number this hands out is issued: it is never re-issued, and never renumbered into another company's series.

documentType

Non-null

prefix

Response

#

Returns ReservedDocumentNumber !.

Example

#