Waste Disposal Webhook
When a Waste Disposal generation occurs, the webhook will send a POST request with one of the following JSON payloads
Waste Disposal Payload
{
"id": "46346051-2e3c-46b8-a165-dfebeec76cd8",
"error": null,
"data": {
"waste_disposal_id": "46346051-2e3c-46b8-a165-dfebeec76cd8",
"attachments": [
{
"type":"MTR",
"code":"411026300000",
"schema":"SINIR",
"status":"INTEGRATED",
"error":null,
"attachment_id": "46346051-2e3c-46b8-a165-dfebeec76cd8",
"file_name":"mtr.pdf",
"mimetype":"application.pdf",
"base_64": "base64 formated file",
"page_count": 1
}
]
}
}
Field Descriptions
id: The integration request uuiderror: Show the error message when has some issue processing the MTRdata: Object containing the processed Waste Disposal datawaste_disposal_id: The uuid of the created waste disposalattachments: Array containing the MTR attachmentstype: Attachment type (MTR or CDF)code: MTR or CDF codeschema: Government schema as: SINIR, IMA...error: Error captured on fail integrate with the governmentattachment_id: The Attachment's uuid on eloverdefile_name: The original file name from the attachmentmimetype: The original file mimetype from the attachmentbase_64: The file enconded in Base64 formatpage_count: When the file is an PDF show the document's number of pages