Get started
Quick start
Check the key, register a webhook, send a first order.
- Get the base URL and API key from the restaurant. The till shows both once, when the connection is created.
- Check the key:Bash
curl https://management.horeca-24.de/api/partner/v1/ping \ -H "Authorization: Bearer pk_pc_3f1c…" - Register your webhook URL and store the
webhookSecretfrom the answer. It is shown only this once.Bashcurl -X PUT https://management.horeca-24.de/api/partner/v1/webhook \ -H "Authorization: Bearer pk_pc_3f1c…" -H "Content-Type: application/json" \ -d '{"url":"https://partner.example/hooks/horeca24"}' - If the restaurant has synced its menu, you receive
menu.updatedright away. Download the file from itsurl. - Send an order with
POST /orders(see §8.1). It rings in the till under the connection's name. - Handle the
order.*events the restaurant's actions produce.