Ejemplos
Ejemplos HTTP
Ejemplos de cURL y de peticiones para la API de Tillor
Última actualización el
Horario de apertura y festivos para un sitio público: API de horario de apertura.
Petición a la API con cURL
curl -X GET "https://tillor.eu/api/orgs/org_abc123/customers" \
-H "x-api-key: tkn_xxx" \
-H "Content-Type: application/json"Crear una clave de API
curl -X POST "https://tillor.eu/api/api-keys" \
-H "Cookie: session=..." \
-H "Content-Type: application/json" \
-d '{"name": "Mijn integratie", "description": "Optionele beschrijving"}'Crear un webhook
curl -X POST "https://tillor.eu/api/orgs/org_abc123/webhooks" \
-H "x-api-key: tkn_xxx" \
-H "Content-Type: application/json" \
-d '{
"url": "https://jouw-server.com/webhooks/tillor",
"subscribedEventKeys": ["invoice:created", "invoice:paid", "customer:updated"],
"enabled": true
}'¿Te ha resultado útil esta página?