Vorbereitung
- WS Forms Pro Formular einrichten
- In Bexio anmelden
- Bexio API Key generieren unter https://developer.bexio.com/
- Nimm gleiche Anmeldedaten wie Hauptbexio Account
URL Endpoints
https://api.bexio.com/2.0/contact
POST
JSON (application/json)
Feldzuordnung
Alle Felder welche du vom Formular an Bexio übermitteln willst.
| Formularfeld | Schlüssel | Typ |
| –first name | name_2 | Quelle |
| –last name | name_1 | Quelle |
| –strasse | street_name | Quelle |
| –hausnummer | house_number | Quelle |
| –plz | postcode | Quelle |
| –ort | city | Quelle |
| Quelle | ||
| –phone | phone_mobile | Quelle |
Benutzerdefiniertes Mapping
Felder welche du nicht an Bexio senden kannst, aber für die Übermittlung wichtig sind.
| Schlüssel | Wert | Typ |
| contact_type | 1 oder 2 | Quelle |
| user_id | idnr | Quelle |
| owner_id | idnr | Quelle |
| country_id | 1 | Quelle |
HTTP-Header Name/Werte
Basic Authentification auf „Nichts“ lassen.
| Name | Wert |
| Authorization | Bearer BEXIO-API-TOKEN |
| Accept | application/json |
Bexio user_id herausfinden
CLI nutzen.
Bash
curl -X GET "https://api.bexio.com/3.0/users" \
-H "Authorization: Bearer BEXIO-API-TOKEN" \
-H "Accept: application/json"Das gibt dir die ID des Superadmins. Diese in user_id und owner_id eintragen.