Skip to main content

Document Package

For each document package state, a request is generated with the following body, varying in the description of the status.


Notified States

NameDescription
CREATEThis state is notified when a document package is created.
NOTIFICATIONThis state is notified when a package participant has completed their signature.
SIGNED_PACKAGEThis state is notified when all parties have signed the document package.
DOCUMENT_REJECTThis state is notified when one of the documents in the package has been rejected.
REJECTEDThis state is notified with the details of the participant who rejected the package.
BLOCKEDNotified when a signer exceeds the identity validation attempts (3), requiring manual validation.

🧪 Notification Examples

tip

You can copy any of the examples according to your preferred language.

Notification Parameters

NameTypeDescription
packageStringDocument package identifier.
nameStringDocument package name.
statusStringCurrent package status (CREATE, NOTIFICATION, SIGNED_PACKAGE, DOCUMENT_REJECT, REJECTED or BLOCKED).
signerObjectSigner information, present when the status is NOTIFICATION, REJECTED or BLOCKED.
messageStringMessage associated with the signer's status. If the status is REJECTED, contains the message written by the participant on rejection; if BLOCKED, contains the reason for the block.
documentsArrayList of documents that are part of the package (absent in the NOTIFICATION and REJECTED states).
documents.codeStringDocument code.
documents.nameStringDocument name.
documents.statusStringIndividual document status (CREATE, FINISH, REJECT or EXPIRED).
documents.urlStringDocument URL.
tagsArrayList of tags or custom fields assigned to the package, if defined.

Process Creation

{
"package": "idPackage", //Package identifier
"name": "API test documents", //Document package name
"status": "CREATE", //Document package status
"documents": [
{
"code": "DOCUMENTCODE",
"name": "Test document 1",
"status": "CREATE",
"url": "https://test.auco.ai/contrato-de-prueba1.pdf"
},
{
"code": "DOCUMENTCODE",
"name": "Test document 2",
"status": "CREATE",
"url": "https://test.auco.ai/contrato-de-prueba2.pdf"
}
]
}

Participant Signature

{
"package": "idPackage",
"name": "API test documents",
"signer": {
"id": "participant_id",
"name": "participant name",
"email": "email",
"phone": "phone"
},
"status": "NOTIFICATION"
}

Process Completion

{
"package": "idPackage",
"name": "API test documents",
"status": "SIGNED_PACKAGE",
"documents": [
{
"code": "DOCUMENTCODE",
"name": "Test document 1",
"status": "FINISH",
"url": "https://test.auco.ai/contrato-de-prueba1.pdf"
},
{
"code": "DOCUMENTCODE",
"name": "Test document 2",
"status": "FINISH",
"url": "https://test.auco.ai/contrato-de-prueba2.pdf"
}
]
}

Document Rejection

{
"package": "idPackage",
"name": "API test documents",
"status": "DOCUMENT_REJECT",
"documents": [
{
"code": "DOCUMENTCODE",
"name": "Test document 1",
"status": "REJECT",
"url": "https://test.auco.ai/contrato-de-prueba1.pdf"
},
{
"code": "DOCUMENTCODE",
"name": "Test document 2",
"status": "CREATE",
"url": "https://test.auco.ai/contrato-de-prueba2.pdf"
}
]
}

Participant Rejection

{
"package": "idPackage",
"name": "API test documents",
"signer": {
"id": "participant_id",
"name": "participant name",
"email": "email",
"phone": "phone"
},
"status": "REJECTED",
"message": "message"
}

Signer Blocked

{
"package": "idPackage",
"name": "API test documents",
"signer": {
"id": "participant_id",
"name": "participant name",
"email": "email",
"phone": "phone"
},
"status": "BLOCKED",
"message": "OTP_CODE_INVALID"
}