Getting Questions
Gets a list of questions for a collect page.
Method Info
Url | https://www.payit2.com/api/v1/collect-page/{CollectPageId}/questions |
---|---|
Verb | GET |
Headers | X-PayItSquare-AppKey, X-PayItSquare-Token |
{CollectPageId} | The id of the collect page. |
Output
Property | Data Type | Other Info |
---|---|---|
Id | Guid | The id of the question. This will be needed for calls to update or delete the individual question. |
QuestionType | Int32 | This is the type of control to use for this question. PayIt2 supports the following question types: Text Box (1), Text Area (2), Drop Down (3), Checkbox (4), Number (5). and Short Text Box (6) |
QuestionText | String | The text to use for the question |
IsRequired | Boolean | When true, payers must enter a value to continue |
SortOrder | Int32 | This determines the order that the question will display on the collect page. |
Sample Get Output
[ { "Id": "99f99fdf-8ed2-45ad-a591-d95d7957e182", "QuestionType": 1, "QuestionText": "My Question", "IsRequired": true, "SortOrder": 3 }, { "Id": "76c329f1-8796-42ba-abc8-bd186b446ad0", "QuestionType": 2, "QuestionText": "My Question", "IsRequired": true, "SortOrder": 3 } ]