Application Rating
Use Application Rating to collect feedback about the Air Doctor service.
This screen includes:
| # | Element | Description |
|---|---|---|
| 1 | Feedback modal | Collects service feedback. |
| 2 | Modal title | Displays Your opinion matters. |
| 3 | Close action | Closes the modal. |
| 4 | Branding | Displays the Air Doctor logo. |
| 5 | Rating title | Displays Rate Air Doctor’s service. |
| 6 | Rating question | Asks for recommendation likelihood. |
| 7 | Rating scale | Lets the user select a score from 0 to 10. |
| 8 | Rating labels | Defines 0 = Not likely and 10 = Very likely. |
| 9 | Feedback text field | Accepts optional feedback. |
| 10 | Character limit hint | Shows the 200-character limit. |
| 11 | Contact consent checkbox | Lets the user agree to follow-up contact. |
| 12 | Submit action | Submits the feedback. |
Workflow
- Open the application rating screen.
- Select a rating from 0 to 10.
- Enter optional feedback.
- Select contact consent when applicable.
- Submit the application rating.
- Continue to the next rating step or confirmation state.
Validations
| Scenario | App behavior | SDK output |
|---|---|---|
| Rating not selected | Disable Submit | validation = rating_required |
| Rating selected | Enable Submit | rating = selected |
| Feedback exceeds character limit | Display character limit state | validation = max_length_exceeded |
| Feedback within character limit | Accept feedback text | feedback = valid |
| Contact consent selected | Save follow-up consent | contactConsent = true |
| Rating submitted | Continue rating flow | rating = submitted |
| Request rejected | Display error state | status = 405 |
Actions
| Scenario | App behavior | SDK output |
|---|---|---|
| Application rating opens | Load application rating screen | PUT /api/v3/rating/application |
| Rating selected | Update selected rating | rating = updated |
| Feedback entered | Update feedback text | feedback = updated |
| Contact consent changed | Update contact consent state | contactConsent = updated |
| Submit selected | Submit application rating | POST /api/v3/rating/application |
| Close selected | Close the modal | state = dismissed |
| Request rejected | Preserve current state | state = unchanged |
Endpoint Resources
Application Rating
PUT
v3/rating/application
Returns the application rating screen.
Proceed Application Rating
POST
V3/rating/application
Submits the application rating.
