Getting Person Answers
Gets a list of answers for a Person.
Method Info
| Url | https://payitsquare.azurewebsites.net/api/v1/collect-page/{CollectPageId}/Person/{PayerId}/answers |
|---|---|
| Verb | GET |
| Headers | X-PayItSquare-AppKey, X-PayItSquare-Token |
| {CollectPageId} | The id of the collect page. |
| {PayerId} | The id of the Person. |
Output
| Property | Data Type | Other Info |
|---|---|---|
| Id | Int32 | The ID of this answer. |
| QuestionText | String | The text for the question. This will be the text of the question at the time it was answered. |
| QuestionId | Guid | The ID of the question being answered. |
| AnswerText | String | The answer for the question. |
| OptionId | Guid Array | If the question has options, this is the id of the option they've selected. |
Sample Get Output
[
{
"Id": 1234,
"QuestionText": "My Question",
"QuestionId": "8ebe0ccb-73d2-4b01-92f1-0306b1eb00b8",
"AnswerText": "My Answer",
"OptionId": null
},
{
"Id": 1234,
"QuestionText": "My Question",
"QuestionId": "aa4cd56c-6cd5-471d-9108-4f07a89b3cee",
"AnswerText": "My Answer",
"OptionId": "38c5ae4d-6770-4fa8-a257-57e1e81df049"
}
]