Getting a Payer Answer
Returns a answer for a payer.
Method Info
| Url | https://www.payitsquare.com/api/v1/collect-page/{CollectPageId}/payer/{PayerId}/answer/{Id} |
|---|---|
| Verb | GET |
| Headers | X-PayItSquare-AppKey, X-PayItSquare-Token |
| {CollectPageId} | The id of the collect page. |
| {PayerId} | The id of the payer. |
| {Id} | The id of the answer. |
Input
| Property | Data Type | Validation Info |
|---|---|---|
| QuestionId | Guid | The ID of the question being answered. |
| AnswerText | String | The answer for the question. |
| OptionId | Nullable`1 | If the question has options, this is the id of the option they've selected. |
Output
| Property | Data Type | Other Info |
|---|---|---|
| Id | Int32 | The ID of this pay option. |
| AmountPer | Single | The amount paid per pay option. |
| Quantity | Int32 | The number purchased by the payer. |
| PayOptionId | Guid Array | This is the ID of the pay option the payer is purchasing. |
Sample Get Output
{
"Id": 1234,
"QuestionText": "My Question",
"QuestionId": "ceacb214-2cda-4594-bc3e-8b908c9c72aa",
"AnswerText": "My Answer",
"OptionId": null
}
Sample Input
{
"QuestionId": "4ce00b5c-3ddc-4ee3-a1df-56b8ed06c6d5",
"AnswerText": "My Answer",
"OptionId": null
}
Sample Success Response
{
"IsSuccess": true,
"Messages": []
}
Sample Error Response
{
"IsSuccess": false,
"Messages": [
"Error Message 1",
"Error Message 2"
]
}





