Reactivate Process
PUT /document/reactivate
This service allows you to reactivate a signing process that has been rejected or has expired. Upon reactivation, the system notifies pending signers and those who previously rejected, allowing them to continue with the process. If the process had an expired date, it is automatically recalculated based on the company configuration.
info
This service applies to processes that are in rejected or expired status. If the process was expired, the expiration date is automatically recalculated based on the company configuration.
Authentication
Include your private key in the Authorization header.
Authorization: prk_xxx...
Creation Parameters
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Conditional | Code of the document to reactivate. Required if package is not provided. |
package | string | Conditional | Code of the package to reactivate. Required if code is not provided. |
email | string | Required | Email of the user performing the reactivation. Saved as a record of the action. |
note
The code and package fields are mutually exclusive: you must send one and only one of the two.
🧪 Usage Examples
Reactivate a document
- curl
- Python
- Node.js
curl --location --request PUT 'https://dev.auco.ai/v1.5/ext/document/reactivate' \
--header 'Authorization: prk_private_key_company' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "DOCUMENTCODE",
"email": "manager@auco.ai"
}'
import requests
import json
url = "https://dev.auco.ai/v1.5/ext/document/reactivate"
payload = json.dumps({
"code": "DOCUMENTCODE",
"email": "manager@auco.ai"
})
headers = {
'Authorization': 'prk_private_key_company',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text)
const axios = require('axios');
let data = JSON.stringify({
code: 'DOCUMENTCODE',
email: 'manager@auco.ai',
});
let config = {
method: 'put',
maxBodyLength: Infinity,
url: 'https://dev.auco.ai/v1.5/ext/document/reactivate',
headers: {
Authorization: 'prk_private_key_company',
'Content-Type': 'application/json',
},
data: data,
};
axios
.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Reactivate a package
- curl
- Python
- Node.js
curl --location --request PUT 'https://dev.auco.ai/v1.5/ext/document/reactivate' \
--header 'Authorization: prk_private_key_company' \
--header 'Content-Type: application/json' \
--data-raw '{
"package": "PACKAGECODE",
"email": "manager@auco.ai"
}'
import requests
import json
url = "https://dev.auco.ai/v1.5/ext/document/reactivate"
payload = json.dumps({
"package": "PACKAGECODE",
"email": "manager@auco.ai"
})
headers = {
'Authorization': 'prk_private_key_company',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text)
const axios = require('axios');
let data = JSON.stringify({
package: 'PACKAGECODE',
email: 'manager@auco.ai',
});
let config = {
method: 'put',
maxBodyLength: Infinity,
url: 'https://dev.auco.ai/v1.5/ext/document/reactivate',
headers: {
Authorization: 'prk_private_key_company',
'Content-Type': 'application/json',
},
data: data,
};
axios
.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response Examples
Successful response
{
"notifications": 2,
"users": ["Juan Pérez", "María García"]
}
| Field | Type | Description |
|---|---|---|
notifications | number | Number of notifications sent to signers |
users | Array | Names of the signers who received a notification |
⚠️ Error Responses
| Code | Description |
|---|---|
| 400 | Missing parameters, or some validations do not meet applicability conditions |
| 401 | Invalid or missing authentication |
| 404 | PROCESS_NOT_FOUND — Process not found |