Getting Person Answers
Gets a list of answers for a Person.
Method Info
| Url | https://www.payit2.com/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": "495eff24-545c-4bdc-a546-3e31a7e7eafa",
"AnswerText": "My Answer",
"OptionId": null
},
{
"Id": 1234,
"QuestionText": "My Question",
"QuestionId": "006ef12b-cb07-45f1-85d9-3c839fd48c24",
"AnswerText": "My Answer",
"OptionId": "54439a6b-aa13-40f0-b62a-29b88c2b3ed7"
}
]