Update a specific document

Authentication

AuthorizationBearer

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

Path Parameters

document_idstringRequired

Request

This endpoint expects an object.
document_idintegerOptional
Document ID.
document_statusintegerOptional

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.

headerobjectOptional
detailslist of objectsOptional
totalsobjectOptional
electronic_documentobjectOptional
resultobjectOptional

Response

Document updated 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