Get all submissions for a form
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Query parameters
-
include string
Comma separated list of relationships to include in the response. Valid relationships are [account]
-
filter[uuid] string
Filter by a comma separated list of UUIDs.
-
filter[created_after] string
Date to filter when the record was created after. Example 2022-04-05
-
filter[created_before] string
Date to filter when the record was created before. Example 2022-05-31
-
filter[form.title] string
filter title of the form
-
filter[stage] string
filter submissions by their stage
-
filter[account] string
name of the account to filter by
-
filter[hide_null_accounts] boolean
hide null accounts
-
sort string
Field to sort by. Valid fields are [created_at, updated_at, title]. Negative sign to denote DESC. Defaults to '-created_at'.
-
per_page integer
Number of results to return with pagination (Default 15. Max 500).
GET /api/v1/form/{form_uuid}/submission
curl \
-X GET https://api.plannrcrm.com/api/v1/form/form_uuid/submission \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
"data": [
{
"form": {
"live": true,
"uuid": "f22b7d60-8714-4861-bdf0-ea910ca3853d",
"title": "Annual Catchup 2022",
"sections": "App\\Http\\Resources\\FormQuestionResource",
"created_at": "2024-11-20T13:24:01+00:00",
"updated_at": "2024-11-20T13:24:01+00:00",
"visibility": "public",
"client_type": "client",
"description": "This is the annual catchup form for 2022",
"allowed_hosts": [
"domain.com",
"subdomain.domain.com"
],
"create_client": true,
"draft_submissions_count": 5,
"submitted_submissions_count": 5
},
"uuid": "8d97b08d-07ad-4b68-b5cf-31409b277c28",
"stage": "draft",
"account": {
"firm": "App\\Http\\Resources\\FirmResource",
"name": "Gareth Thompson",
"role": "client",
"tags": "App\\Http\\Resources\\TagResource",
"type": "client",
"uuid": "6ee67f96-a3d9-4fff-ace4-af91c6d5e96c",
"email": "gareth@codepotato.co.uk",
"groups": "App\\Http\\Resources\\GroupResource",
"owners": "App\\Http\\Resources\\AccountResource",
"last_name": "Thompson",
"created_at": "2024-11-20T13:24:01+00:00",
"first_name": "Gareth",
"updated_at": "2024-11-20T13:24:01+00:00",
"with_login": true,
"custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
"introduced_by": "App\\Http\\Resources\\AccountResource",
"primary_email": "App\\Http\\Resources\\ContactDetailResource",
"can_be_deleted": "false",
"assigned_adviser": "App\\Http\\Resources\\AccountResource",
"next_review_date": "2024-11-20T13:24:01+00:00",
"has_joint_account": true,
"current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
"first_contact_date": "2024-11-20T13:24:01+00:00",
"external_references": "App\\Http\\Resources\\ExternalReferenceResource",
"assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
"previous_review_date": "2024-11-20T13:24:01+00:00",
"primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
"assigned_administrator": "App\\Http\\Resources\\AccountResource",
"anniversary_review_date": "2024-11-20T13:24:01+00:00"
},
"answers": [
{
"last_name": "olive",
"first_name": "john"
}
],
"request": {
"form": "App\\Http\\Resources\\FormResource",
"uuid": "b6b7da32-919d-4026-964f-066a49f2b82d",
"created_at": "2024-11-20T13:24:01+00:00",
"submission": "App\\Http\\Resources\\FormSubmissionResource",
"updated_at": "2024-11-20T13:24:01+00:00",
"description": "Please submit your annual survey form",
"has_submission": true
},
"created_at": "2024-11-20T13:24:01+00:00",
"updated_at": "2024-11-20T13:24:01+00:00"
}
]
}