Bps sync
bps_syncBPS-Lager (Fulfillment BPS Germany) ins System holen: liest die BPS-API mit dem ApiKey der BPS-Integration des Shops (nie ausgegeben) und schreibt in die Taufnaus-Tabellen. umfang: 'bestand' (Vorgabe; GET /Stock -> aktueller Bestand + Snapshot im Bestandsverlauf, nur Aenderungen), 'artikel' (GET /Product -> Barcodes, SKU, Name, Packungsgroesse), 'auftraege' (GET /Order, neueste max_pages Seiten à ~100 Auftraege -> Auslieferungen je Barcode mit Versanddatum), 'voll' (alles, alle Auftragsseiten; dauert wegen 1 Aufruf/s mehrere Minuten — laeuft ohnehin taeglich 02:30 UTC per Cron). Idempotent. Schreibt nur in die eigene Datenbank, nie nach BPS.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "bps_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| umfang | No | ||
| store_id | No | Shop mit BPS-Integration; leer = der einzige Shop im Zugriff mit BPS | |
| max_pages | No | nur bei 'auftraege': Seiten (Vorgabe 5, max 500) |