Supported methods
List of all supported methods.| Command | Endpoints | GET | PUT | POST | DELETE |
|---|---|---|---|---|---|
| Retrieve all forms. | form/list | ||||
| Retrieve a specific form. | form/get | ||||
| Retrieve a specific form field. | form/getField | ||||
| Send a form inquiry. | form/send | ||||
| Retrieve details of a previously sent inquiry. | form/loadInquiry |
Methods for forms
These methods cover the complete lifecycle of online forms in the shop. They read out all configured forms including the fields, the required marking, the validations, and the email settings. If required, an individual form or an individual field can be loaded specifically by ID. In addition, it is possible to submit completed forms. In doing so, a transaction ID (inquiryId) is provided, which enables later tracking or detail queries.
GET form/list
The following call returns all forms configured in the shop, including field definitions and email settings. It can be used to create forms including required fields and validations.Parameter overview
| Parameter | Type | Description |
|---|---|---|
| — | — | No additional parameters. |
Example response
GET form/get
The following call lets you load an individual form by its technical ID (retrievable via “form/getAll”) including field definitions, required entries, validations, and email settings. It can be used to display a specific form. Example call that loads a form with theformId contact:
Parameter overview
| Parameter | Type | Description |
|---|---|---|
formId | string | Required field Technical ID of the form (retrievable via form/getAll) |
Example response
GET form/getField
The following call loads a form field with label, required status, and validations. It can be used to display the field specifically without reloading the entire form. Example call that loads thefirstName field from the contact form:
Parameter overview
| Parameter | Type | Description |
|---|---|---|
formId | string | Required field Technical ID of the form (retrievable via form/getAll) |
fieldId | string | Required field ID/name of the field in the form (e.g. firstName) |
Example response
GET form/loadInquiry
The following call lets you load an already sent inquiry by its transaction ID. It can be used to display a confirmation page after submitting the form or to view an inquiry again later. Example call that loads the inquiry with the ID7930f7e9fa7bb07b:
Parameter overview
| Parameter | Type | Description |
|---|---|---|
inquiryId | string | Required field Transaction ID of the inquiry (available, for example, from the response of form/send) |
Example response
POST form/send
The following call sends a form inquiry (e.g. a contact form) to the shop and creates a transaction for it. It can be used to submit a form and to display a confirmation including the transaction number.Example request
Parameter overview
| Parameter | Type | Description |
|---|---|---|
formId | string | Required field Technical ID of the form (retrievable via form/getAll) |
email | string | Required field Sender/reply email address of the inquiring person. |
form | object | Required field Here the field IDs from the form definition (e.g. firstName, subject, text) are specified including their value (first name, subject, etc.). |
Example response
InquiryId is the transaction ID of the sent inquiry.
Error codes
| Code | Description |
|---|---|
captchaFailed | A captcha is configured for the form and the captcha provided is incorrect. |
invalidFormId | The specified form ID is invalid. |
createInquiryFailed | Internal error. Please contact WEBSALE support. |
