Note: The Form Submission API only works with the Wix Forms app. Call GetAppInstance to confirm that the app named wix_forms
is installed on the site.
Counts the number of submissions belonging to the specified forms.
You can only call this method when authenticated as a Wix app or Wix user identity.
Form IDs.
Identifies the app which the form submissions belong to. For example, the namespace for the Wix Forms App is "wix.form_app.form"
. The namespace of a submission can be retrieved using the Get Submission endpoint.
List of statuses of submissions which should be taken into count Default: CONFIRMED, PAYMENT_WAITING, PAYMENT_CANCELED
Forms submission count.
curl -X POST \
'http://www.wixapis.com/form-submission/v4/submissions/count' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"formIds": [
"e62e3011-55cf-4de3-a497-e097b52d86b8"
],
"namespace": "wix.form_app.form"
}'
{
"formsSubmissionsCount": [
{
"formId": "e62e3011-55cf-4de3-a497-e097b52d86b8",
"totalCount": 2,
"unseenCount": 1
}
]
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.