Skip to content

Questionnaire Answers

Submit answers to required questions from questionnaire.

The questionnaire answers endpoint lets you provide answers to required questions specified by the Questionnaire.

Endpoint

MethodUrl
PUT/v1.0/jobs/{job_id}/questionnaire/answers
Note

This endpoint follows PUT semantics, meaning you should always send the full set of answers for all questions as they'll be overridden every time

Url Parameters

job_id
guid

The job's ID.

Request Payload

answers
object

An object mapping question IDs to answers as specified in the Questionnaire questions field.

TypeAnswer Format
BOOLA boolean; either true or false
NUMERICA number; e.g 23
TEXTA string; e.g. "Hello world"
DATE_TIMEA string of a timestamp; e.g "2022-11-04T04:00:00.000Z"
SINGLE_SELECTAn id from the provide options; e.g."OPTION1"
MULTI_SELECTAn array of ids from the provide options; e.g. [“OPTION1”, "OPTION2"]

Sample Request

Copied
1curl -X PUT 'https://api.worklayer.com/v1.0/jobs/{job_id}/questionnaire/answers' \
2-H 'Authorization: Bearer {token}'
3-H 'Content-Type: application/json' \
4-H 'Accept: application/json' \
5-d '
6{
7 "answers": {
8 "QUESTION_1": true,
9 "QUESTION_2": 10,
10 "QUESTION_3": "Hello World",
11 "QUESTION_4": "2022-11-04T04:00:00.000Z",
12 "QUESTION_5": "OPTION1",
13 "QUESTION_6": ["OPTION1", "OPTION2"]
14 }
15}'

Response

ready_to_submit
boolean

To signal whether or not enough answers have been provided for any question in the questionnaire for the job to be submitted to the pool of Tax Pros.

update_time

When the answers were updated. A timestamp in format 2021-04-28T13:45:25.781Z.

Sample Response

Copied
1{
2 "ready_to_submit": true,
3 "update_time": "2021-04-28T13:52:27.379Z"
4}

Next steps

Last updated on October 11, 2023