POST Create lote
Changed onCom este método é possível criar um lote de documentos com 2 a 50 arquivos. Com o uso de lotes, você agrupa documentos e cria uma solicitação de lote (lote request) para enviá-los todos de uma só vez, otimizando o processo de coleta de assinaturas.
A API cria uma pasta com o nome do lote dentro da pasta indicada em folder_id (ou na raiz) e armazena os documentos nela. Se já existir uma pasta com o mesmo nome, o nome recebe um sufixo numérico, por exemplo Contratos (2). Arquivos Word (DOC/DOCX) são convertidos para PDF.
A resposta é 201 Created com o lote e os documentos criados.
Request
- Base URLhttps://app.plugsign.com.br
- URLhttps://app.plugsign.com.br/api/lotes
- AuthAPI key in header Authorization
Request body
Response
Lote criado
Example response
{
"data": {
"id": 10,
"company_id": 1,
"name": "lote_1",
"created_at": "2024-07-12 14:24:11",
"updated_at": "2024-07-12 14:24:11",
"files": [
{
"id": 101168,
"name": "lote_1-1",
"file_name": "V9kAvLtOfyk2iqe3azv5684OdfRzqLbR.pdf",
"extension": "pdf",
"size": 13,
"status": "Unsigned",
"document_key": "V9kAvLtOfyk2iqe3azv5684OdfRzqLbR",
"editted": "No",
"is_template": "No",
"accessibility": "Everyone",
"uploaded_by": {
"name": "Exemplo",
"last_name": "Exemplo"
},
"uploaded_on": "14/07/2024 14:24:12",
"download": "https://app.plugsign.com.br/api/files/download/V9kAvLtOfyk2iqe3azv5684OdfRzqLbR"
}
]
}
}Changes
- breaking
removed the success response with the status
- info
added the new optional request property
- info
added the new optional request property
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking