Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.foodsave.kz/llms.txt

Use this file to discover all available pages before exploring further.

POS Webhook

Base path: /api/v1/pos/webhooks

Overview

Webhook receiver for POS providers such as Poster. The endpoint verifies signatures and deduplicates events before dispatching downstream sync jobs.
Duplicate events are accepted and acknowledged with 200 to keep upstream retries safe.

POST /api/v1/pos/webhooks/poster

Process a webhook from Poster.
curl --request POST \
  --url https://api.foodsave.kz/api/v1/pos/webhooks/poster \
  -H 'Content-Type: application/json' \
  -H 'X-Poster-Signature: sha256=abcd1234' \
  -d '{"event":"order_created","externalId":"ext-1","data":{}}'
{ "status": "ok" }

Errors

CodeMeaningHow to fix
400BAD_PAYLOADVerify JSON structure
401INVALID_SIGNATUREValidate HMAC secret used by POS