Create a new document

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query Parameters

generate_stampintegerOptional

Request

This endpoint expects an object.
optionsobjectOptional
headerobjectOptional
detailslist of objectsOptional
referenceslist of objectsOptional
globals_discounts_surchargeslist of objectsOptional
totalsobjectOptional

Response

Document created successfully
document_idinteger or null
Document ID.
document_statusinteger or null

Indicates the status of the document. 0 = Draft (Chile only), 1 = issued, 2 = cancelled (Mexico only). Changing this value through PATCH operations will issue or cancel the document.

headerobject or null
detailslist of objects or null
totalsobject or null
electronic_documentobject or null
resultobject or null

Errors