| Requires any of the roles: | Agent, Administrator |
| GET | /v1/Survey/GiftCard/{UID} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UID | path | Guid | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Survey | form | GiftCardSurvey | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GiftCardId | form | int | No | |
| GiftCards | form | List<string> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SurveyId | form | int | No | |
| ContactId | form | int | No | |
| Questions | form | List<SurveyQuestion> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| QuestionId | form | int | No | |
| QuestionType | form | string | No | |
| HTML | form | string | No | |
| DependsOn | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Survey/GiftCard/{UID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Survey":{"GiftCardId":0,"GiftCards":["String"],"SurveyId":0,"ContactId":0,"Questions":[{"QuestionId":0,"QuestionType":"String","HTML":"String","DependsOn":"String"}]},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}