Get a submission request

GET /api/v1/submission-request/{id}

Path parameters

  • id string Required

    The ID of the submission request.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was updated.

    • The description of the form submission request

    • form object

      The form linked to this submission request

    • Denotes if this request has a submission stored against it

    • The submission stored against this request

GET /api/v1/submission-request/{id}
curl \
 -X GET https://api.plannrcrm.com/api/v1/submission-request/id \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json"
Response examples (200)
{
  "form": {
    "live": true,
    "uuid": "313a56b9-2e3c-4310-b96a-a099d2382334",
    "title": "Annual Catchup 2022",
    "sections": "App\\Http\\Resources\\FormQuestionResource",
    "created_at": "2024-10-16T11:10:14+01:00",
    "updated_at": "2024-10-16T11:10:14+01: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": "d7c68768-b449-4bdf-ba1b-a73a6dce638c",
  "created_at": "2024-10-16T11:10:14+01:00",
  "submission": {
    "form": "App\\Http\\Resources\\FormResource",
    "uuid": "4ddee102-8416-4976-96f6-367f06ed656f",
    "stage": "draft",
    "account": "App\\Http\\Resources\\AccountResource",
    "answers": [
      {
        "last_name": "olive",
        "first_name": "john"
      }
    ],
    "request": "App\\Http\\Resources\\FormSubmissionRequestResource",
    "created_at": "2024-10-16T11:10:14+01:00",
    "updated_at": "2024-10-16T11:10:14+01:00"
  },
  "updated_at": "2024-10-16T11:10:14+01:00",
  "description": "Please submit your annual survey form",
  "has_submission": true
}