TABLE OF CONTENTS



Get Info on a Form that is Attached to an Event


Informatiom about forms that are attached to an event is returned when you get details on an Event Template. 

See Event & Calendar APIs (B2C) for information on which APIs to use to get Event Data.


Submit a Form Response


POST /v2/b2c/forms/responses

Headers:

x-acme-api-key
x-b2c-tenant-id


Body:

Field NameDescription
formIdThe ID of the form that is attached to the Event
nameName of the form
type'order'
source'acme'
responseDataFieldsA list of the fields in the form and the values the customer submits


See Forms Object for information on how to obtain the above values.


Example Payload (this example form only has 1 field):


   "formId": "661d80edc96539252664a1b0",
   "name": "Simple Form",
   "type": "order",
   "source": "acme",
   "responseData": {
       "fields": [
               {
               "value": "Katie",
               "label": "Attendee Name",
               "name": "text-1713209570611"
               }
       ]
   }
}


Response: Form Response Object


Example Response:


{
    "id": "661ec4e7648e4667a486e458",
    "formId": "661d80edc96539252664a1b0",
    "name": "Simple Form",
    "type": "order",
    "source": "acme",
    "customFields": [],
    "responseData": {
        "fields": [
            {
                "value": "Katie",
                "label": "Attendee Name",
                "name": "text-1713209570611"
            }
        ]
    },
    "publishedFormTemplate": {
        "id": "661d80edc96539252664a1b0",
        "name": "Simple Form",
        "type": "order",
        "source": "acme",
        "sourceFormId": "661d80ebc96539252664a1af",
        "sourceFormUrl": "",
        "sourceFormEditUrl": "",
        "sourceFormDefinition": "[{\"type\":\"text\",\"required\":true,\"label\":\"Attendee Name\",\"subtype\":\"text\",\"name\":\"text-1713209570611\",\"dataCustomField\":\"none\",\"className\":\"orders-forms-text form-control\"}]",
        "state": "published",
        "draftId": "661d80ebc96539252664a1af",
        "lastUpdatedDate": "2024-04-15T12:33:01-07:00",
        "lastPublishedDate": "2024-04-15T12:33:01-07:00",
        "oncePerCart": false
    }
}