Skip to Content
Przykłady

Przykłady HTTP

Przykłady cURL i żądań dla API Tillor

Ostatnio zaktualizowano

Godziny otwarcia i święta dla publicznej strony: API godzin otwarcia.

Żądanie API z cURL

curl -X GET "https://tillor.eu/api/orgs/org_abc123/customers" \
  -H "x-api-key: tkn_xxx" \
  -H "Content-Type: application/json"

Tworzenie klucza 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"}'

Tworzenie webhooka

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
  }'
Czy ta strona była pomocna?

Na tej stronie