Finance document

Create a document for accounting documents.

Create a document for accounting documents

post/rest/api/finance/documents/{id}/documents/

Path parameters

idstring required

Request body

idExternalinteger required

Unique document ID

numberstring nullable required

Document number

statusstring required

1-enabled/ok, 4-disabled/error

typestring

1-printed (default), 2-exported to an external platform

Example request

{
  "idExternal": 24,
  "number": "DOC/013/2023",
  "preferences": {
    "message": "An error occurred while trying to print the receipt"
  }
}

Response

Document has not been created

{"stackTrail":"paths:/rest/api/finance/documents/{id}/documents/:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.