ResumeMessageInsert
This article explains how to attach a summary to the message flow via the Unico Check REST API.
How to use it?
Make a POST request to the /messages/{processoId}/resume
endpoint
With a valid Access token, make a request to the endpoint (POST/messages/{processoId}/resume) sending the following parameters:
{
"resumes": [
{
"description": "DESCRICAO_RESUMO",
"html": "HTML_RESUMO"
},
]
}
Parameters:
- PATH PARAMETERS
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
processoId | String | Mandatory | Process number |
- HEADER PARAMETERS
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
APIKEY | String | Mandatory | API key |
Authorization | String | Mandatory | Access token |
Content-Type | String | Mandatory | "application/json" |
- REQUEST BODY SCHEMA
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
resumes.description | String | Mandatory | Indica a descrição do resumo |
resumes.html | String | Mandatory | Indica o HTML do resumo |
Request example:
{
"resumes": [
{
"description": "Resumo 1",
"html": "<html> <body> <p> Resumo </p> </body> </html>"
},
{
"description": "Resumo 2",
"html": "<html> <body> <p> Resumo </p> </body> </html>"
}
]
}
If the request was executed successfully, the return response is a JSON containing the ID of the process created by sending the photo as follows:
{
"id": "6ab1771e-dfab-4e47-8316-2452268e5481"
}
If an error occurs, the return response is a JSON containing the error code and description:
{
"Error": {
"code": "40004",
"description": "Error description"
}
}
For more information on the errors returned, see the list available in the article Response Errors.
Any concerns?
Missing something or still need help? If you are already a customer or partner, you can contact us through the Help Center.