ContactFormRequest Service

Description

This service is used to simplify entering basic web forms into Atollon. In Atollon, it's possible to add more complex business logic based on request type and it's parameters. Web developers are let go of understanding Atollon blackbox.

Request

POST https://<HOST>/crab/contact_form/<request_type>?instance=<instance_name>

New URL format:

POST https://<HOST>/svc/contact_form/<request_type>?instance=<instance_name>

// Consider removing instance

Request Types

New Lead

https://<HOST>/crab/contact_form/lead?instance=<instance_name>

New URL format:

POST https://<HOST>/svc/contact_form/lead?instance=<instance_name>

// Consider removing instance

POST data in JSON format:

{
    "person": {
        "firstName": "<jmeno>",
        "lastName": "<prijmeni>"
    },
    "company": {
        "companyName": "<nazev_firmy>"
    },
    "contacts": {
        "email": "<email>",
        "phone": "<telefon>"
    },
    "comment": "<text_pozadavku>",
    "interestedIn": ["<p1>"," <p2>"," ..." ],
    "leadCategory": "<string>",
    "trackingCode": "<string>",
    "url": "<string>"
}

Function progress

Company lead
Person lead

After the request is imported successfully, change the TIF status to "2".

New Issue

https://<HOST>/svc/contact_form/v1/issue?instance=<instance_name>

// consider removing instance_name

POST data in JSON format:

{
    "person": {
        "firstName": "<jmeno>",
        "lastName": "<prijmeni>"
    },
    "company": {
        "companyName": "<nazev_firmy>",
        "companyRegNo": "<registration_number>"
    },
    "contacts": {
        "email": "<email>",
        "phone": "<telefon>"
    },
    "comment": "<text_pozadavku>",
    "interestedIn": ["<p1>", "<p2>", "..."],
    "leadCategory": "<string>",
    "trackingCode": "<string>",
    "url": "<string>",
    "requestType": "<New_Issue_Template>",
    "formFields": {
        "formField1": "<value1>",
        "formField2": "<value2>",
        "...": "..."
    }
}

Function progress

The same as above for New Lead, except instead of New Message with new comment, we create New Issue.

Screenshot 2025-01-26 at 8.10.14.png


Revision #21
Created 29 July 2021 13:11:05 by Martina Pivonkova
Updated 26 January 2025 07:10:51 by Jan Safka