Skip to main content

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 uuid
  • error: Show the error message when has some issue processing the MTR
  • data: Object containing the processed Waste Disposal data
    • waste_disposal_id: The uuid of the created waste disposal
    • attachments: Array containing the MTR attachments
      • type: Attachment type (MTR or CDF)
      • code: MTR or CDF code
      • schema: Government schema as: SINIR, IMA...
      • error: Error captured on fail integrate with the government
      • attachment_id: The Attachment's uuid on eloverde
      • file_name: The original file name from the attachment
      • mimetype: The original file mimetype from the attachment
      • base_64: The file enconded in Base64 format
      • page_count: When the file is an PDF show the document's number of pages