API > Webhooks - Eliminar Webhook
Webhooks - Eliminar webhook
DEL https://{entorno}.ticketbaiws.eus/webhooks/{codigo_webhook}/
Elimina un webhook a partir de su codigo (lo devuelven POST y GET webhooks). Acepta los métodos DELETE y DEL.
Disponible en pruebas y en producción. Usa el mismo entorno en el que se creó el webhook (api-test o api).
PARÁMETROS
Sin parámetros: el código del webhook va en la URL.
DEL https://{entorno}.ticketbaiws.eus/webhooks/{codigo_webhook}/
$ curl --request DELETE \
--url https://api-test.ticketbaiws.eus/webhooks/6904a3501884e/ \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Token: xxx' \
--header 'Nif: 00000014Z'
$ composer require ticketbaiws/ticketbaiws-php
<?php
// Instalación: composer require ticketbaiws/ticketbaiws-php
require 'vendor/autoload.php';
$tbai = new \TicketbaiWS\Client('xxx', '00000014Z', ['entorno' => 'test']);
// Requiere ticketbaiws-php 1.3.0 o superior
$r = $tbai->eliminarWebhook('6904a3501884e');
if ($r->isError()) {
echo $r->getMessageText();
} else {
print_r($r->getData());
}
$ python -m pip install requests
import requests
url = "https://api-test.ticketbaiws.eus/webhooks/6904a3501884e/"
headers = {"Accept": "application/json", "Token" : "xxx", "Nif" : "00000014Z"}
response = requests.request("DELETE", url, headers=headers)
print(response.text)
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api-test.ticketbaiws.eus/webhooks/6904a3501884e/");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "Content-Type: application/json");
headers = curl_slist_append(headers, "Token: xxx");
headers = curl_slist_append(headers, "Nif: 00000014Z");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api-test.ticketbaiws.eus/webhooks/6904a3501884e/")
.delete()
.addHeader("Accept", "application/json")
.addHeader("Token", "xxx")
.addHeader("Nif", "00000014Z")
.build();
Response response = client.newCall(request).execute();
{ } Response JSON
HTTP/1.1 200 OK
{
"result": "OK",
"return": [],
"msg": "Webhook deleted successfully"
}
{ } Response (no encontrado) JSON
HTTP/1.1 200 OK
{
"result": "ERROR",
"return": null,
"msg": "WEBHOOK Not Found"
}
Métodos TicketBAI / Verifactu
- POST Nueva factura / subsanación (zuzendu) TicketBAI / Verifactu
- POST Completar factura simplificada
- GET Consulta factura TicketBAI / Verifactu
- GET Listado facturas TicketBAI / Verifactu
- GET Descarga XML TicketBAI / Verifactu
- GET Descarga factura en formato FacturaE
- GET Descarga factura en PDF
- GET Estado sistema
- DEL Anular factura TicketBAI / Verifactu
- PUT Forzar reenvío TicketBAI / Verifactu
- POST Validar NIF en la AEAT
- POST Validar NIF en el VIES
Documento representación
- GET Documento Representación - Descargar modelo
- POST Documento Representación - Enviar documento
- GET Documento Representación - Descargar documento cargado
- DELETE Documento Representación - Revocar documento cargado
Métodos específicos para BATUZ BIZKAIA
- GET Listado de epígrafes
- POST LROE - Facturas recibidas - Envío (BATUZ)
- PUT LROE - Facturas recibidas - Modificar (BATUZ)
- GET LROE - Facturas recibidas - Consulta (BATUZ)
- DEL LROE - Facturas recibidas - Anular (BATUZ)
- POST LROE - Gastos sin factura - Envío (BATUZ, modelo 140)
- PUT LROE - Gastos sin factura - Modificar (BATUZ, modelo 140)
- GET LROE - Gastos sin factura - Consulta (BATUZ, modelo 140)
- DEL LROE - Gastos sin factura - Anular (BATUZ, modelo 140)
- POST LROE - Criterio Caja COBROS - Envío (BATUZ)
- PUT LROE - Criterio Caja COBROS - Modificar (BATUZ)
- GET LROE - Criterio Caja COBROS - Consulta (BATUZ)
- DEL LROE - Criterio Caja COBROS - Anular (BATUZ)
- POST LROE - Criterio Caja PAGOS - Envío (BATUZ)
- PUT LROE - Criterio Caja PAGOS - Modificar (BATUZ)
- GET LROE - Criterio Caja PAGOS - Consulta (BATUZ)
- DEL LROE - Criterio Caja PAGOS - Anular (BATUZ)
SII (AEAT)
- GET SII - Consulta del libro de facturas emitidas
- POST SII - Facturas recibidas (AEAT, Gipuzkoa y Araba)
Clientes y productos (herramienta de facturación)
- GET Clientes - Buscar / consultar clientes
- POST Clientes - Nuevo cliente
- PUT Clientes - Modificar cliente
- GET Productos - Buscar / consultar productos
