Listar webhooks activos
curl --request GET \
--url https://dte.ia-erp.cl/v1/webhooks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dte.ia-erp.cl/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://dte.ia-erp.cl/v1/webhooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dte.ia-erp.cl/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"webhooks": [
{
"creado_en": "2023-11-07T05:31:56Z",
"eventos": [
"<string>"
],
"id": "<string>",
"modo": "<string>",
"url": "<string>",
"descripcion": "<string>"
}
],
"$schema": "https://dte.ia-erp.cl/schemas/ListarWebhooksOutputBody.json"
}{
"$schema": "https://dte.ia-erp.cl/schemas/ErrorModel.json",
"code": "rut_invalido",
"detail": "receptor.rut es obligatorio y debe ser un RUT chileno válido",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "urn:uuid:75acf40d-e49d-4267-9199-fdb9a0f98264",
"status": 400,
"title": "Datos del DTE inválidos",
"type": "urn:ia-erp:api:rut_invalido"
}Webhooks
Listar webhooks activos
Lista los webhooks activos de la empresa en el modo de la API key (live o test). Nunca devuelve secretos.
GET
/
v1
/
webhooks
Listar webhooks activos
curl --request GET \
--url https://dte.ia-erp.cl/v1/webhooks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dte.ia-erp.cl/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://dte.ia-erp.cl/v1/webhooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dte.ia-erp.cl/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"webhooks": [
{
"creado_en": "2023-11-07T05:31:56Z",
"eventos": [
"<string>"
],
"id": "<string>",
"modo": "<string>",
"url": "<string>",
"descripcion": "<string>"
}
],
"$schema": "https://dte.ia-erp.cl/schemas/ListarWebhooksOutputBody.json"
}{
"$schema": "https://dte.ia-erp.cl/schemas/ErrorModel.json",
"code": "rut_invalido",
"detail": "receptor.rut es obligatorio y debe ser un RUT chileno válido",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "urn:uuid:75acf40d-e49d-4267-9199-fdb9a0f98264",
"status": 400,
"title": "Datos del DTE inválidos",
"type": "urn:ia-erp:api:rut_invalido"
}