Headless / REST-API · Print Configurator Pro
Der Konfigurator funktioniert auch ohne WooCommerce-Frontend. Über eine öffentliche REST-API kannst du Profile, Preise und Konfigurationsdaten direkt aus deinem eigenen Stack (Next.js, Nuxt, Mobile App, Marketplace-Backend) abrufen.
1. Profil-Liste abrufen
curl -s https://teraplugin.tailc65931.ts.net/wp-json/teraprint/v2/public/profiles
Liefert alle aktiven Konfigurator-Profile mit Slug, Kategorie, Preismodus, Mindestpreis, Trust- und Info-Badges.
2. Einzelnes Profil abrufen
curl -s https://teraplugin.tailc65931.ts.net/wp-json/teraprint/v2/public/profiles/demo-poster-preismatrix
Liefert die komplette Konfigurator-Definition für das Plakat-Matrix-Profil — Format-Auswahl, Preise pro Größe, Papier-Optionen, alles für eigenes Frontend.
3. WooCommerce Store API (Standard)
curl -s "https://teraplugin.tailc65931.ts.net/wp-json/wc/store/products?per_page=20"
Die Standard-Store-API von WooCommerce funktioniert ebenfalls. Du kannst Cart-Operationen, Order-Daten und Produktlisten direkt aus deinem Frontend lesen.
Use Cases
- Eigene React/Vue-Storefront mit dem Konfigurator als Pricing-Engine im Backend
- B2B-Portal mit individueller Preis-API für Großkunden
- Mobile App für Druckaufträge unterwegs
- Marketplace-Integration (Amazon, Etsy, Idealo) mit Preis-Sync
Datenformat
Alle Responses sind JSON, Unicode (UTF-8) und CORS-aktiviert für deine Domain (über WP-Filter konfigurierbar).
Authentifizierung optional über Application Passwords (WordPress-Core), JWT-Plugin oder API-Key (separates Pro-Addon).