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 Credentials API

Base path: /api/v1/pos

Overview

Manage POS adapter credentials and test adapter connectivity for a partner.

GET /api/v1/pos/adapters

List supported POS adapters.
["poster", "iiko"]

PUT /api/v1/pos/credentials

Upsert credentials for a partner.
curl --request PUT \
  --url https://api.foodsave.kz/api/v1/pos/credentials \
  -H 'Authorization: Bearer $ADMIN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"partnerId":"p-1","adapterName":"poster","credentialsJson":"{\"apiKey\":\"secret\"}"}'
{}

POST /api/v1/pos/test-connection

Test a connection without saving credentials.
true

Errors

CodeMeaningHow to fix
401UNAUTHORIZEDUse admin token
400INVALID_CREDENTIALSCheck adapter JSON schema