Submitting Answers to Questions for an Order and Its Requests
This section describes the App Broker REST API endpoint to submit Answers to Questions for an Order and requires HTTP POST method. The orderId is the required field which must be passed in the API URL and all fields which are present in the request body are mandatory fields. After successful submission of response to the questions, a 201-response code with the empty response is returned.
| Endpoint Example | Request Body Example |
|---|---|
| [POST] http://localhost/esd/api/orders/10/answers | { "AnsweredBy": "AppPortal", "RequestQuestions": [ { "RequestId": 11, "QuestionId": 1008, "Response": "Great -1" }, { "RequestId": 11, "QuestionId": 1014, "Response": "1" }, { "RequestId": 12, "QuestionId": 1011, "Response": "3/17/2022" }, { "RequestId": 12, "QuestionId": 1012, "Response": "0" }, ] } |
note
We can submit response to multiple requests, but those requests should be linked to the same order.