Beispiele¶
Request- und Response-Beispiele verifiziert auf Dev (org1, shop1) am 2026-06-14. Kundendaten in den JSON-Beispielen sind als Max Mustermann / max@example.com anonymisiert.
| Host | URL |
|---|---|
| Manager (Dev) | https://manager.pharmaone.dev.secpaid.com |
| Shop-Proxy (Dev) | https://shop1.pharmaone.dev.secpaid.com |
| Manager (Produktion) | https://manager.prod.pharmaone.shop |
API-Schlüssel: Manager → Org Settings → Integrations → External API keys (einmalig bei Erstellung).
Setup¶
export BASE="https://manager.pharmaone.dev.secpaid.com"
export SHOP="https://shop1.pharmaone.dev.secpaid.com"
export ORG="org1"
export APIKEY="your-integration-api-key"
export TOKEN="$(curl -s -X POST "$BASE/api/v2/public/orgs/$ORG/auth/token" \
-H "apikey: $APIKEY" | jq -r .access_token)"
1. API-Schlüssel gegen JWT tauschen¶
2. Shops auflisten¶
3. Bestellungen auflisten¶
4. Bestellung nach ID¶
{
"id": "ORD_20260614_8v039dhnrv",
"shop_id": "shop1",
"customer_name": "Max Mustermann",
"customer_email": "max@example.com",
"items": [{ "name": "24/1 IUVO KC OJ Zainbow", "quantity": 11, "price": 8.75 }],
"shipping_address": {
"street": "Musterstr. 1",
"city": "Berlin",
"postal_code": "10115",
"phone": "+49123456789"
}
}
5. Bestellstatus patchen¶
6. Bestellanfrage (v2 + JWT)¶
7. Bestellanfrage (v1 + API-Schlüssel)¶
Kong prüft apikey. shop_id im Payload ist Pflicht.
8. Shop-Proxy — externe Telemedizin-Bestellung¶
Kein JWT. Shop setzt shop_id automatisch. Siehe Externer Telemedizin-Connector.
9. Rezepte — Liste & Ingest¶
10. Bestand, Produkte, Berichte¶
Smoke-Test¶
TOKEN=$(curl -s -X POST "$BASE/api/v2/public/orgs/$ORG/auth/token" -H "apikey: $APIKEY" | jq -r .access_token)
curl -s "$BASE/api/v2/public/orgs/$ORG/shops" -H "Authorization: Bearer $TOKEN" | jq .
Vollständige Beispiele (EN): Examples (English).
Import: Interaktiver API-Explorer.