Customers may leave reviews about their experience with an activity. Reviews consist of a numeric rating and optional written comment.
Reviews for activity
Forbidden: activity is not accessible to partners
Not found: activity with UUID does not exist
Error
curl -i -X GET \ 'https://sandbox.musement.com/api/v3/activities/{activityUuid}/reviews?limit=6&page=1&rating%5Bbetween%5D%5B%5D=1..7&sort_by=HIGHEST-RATED&traveler_type_in%5B%5D=ALONE' \ -H 'Accept-Language: en-US' \ -H 'X-Musement-Application: string' \ -H 'X-Musement-Version: 3.4.0'
[- {
- "comment": "Just perfect!",
- "customer_country": "Germany",
- "date": "2020-04-13",
- "rating_value": 9.9,
- "uuid": "d3edd1ff-91d5-4d56-ba93-47b49b921dcd"
}
]
Created: review successfully submitted
Bad request: there are errors in the request
Unauthorized: token is not valid
Forbidden: activity is not accessible to partners
Not found: activity with UUID does not exist
Conflict: review already exists for the activity's order item
Service unavailable
{- "age": 27,
- "comment": "Awesome experience.",
- "date": "2021-11-18T15:13:13",
- "is_public": true,
- "locale": "en-GB",
- "order_item_uuid": "d83d4e0a-e62b-4c81-b403-4206914cd697",
- "provider": "QUALTRICS",
- "provider_id": "R_wXE9FFQ1qhK2J0w",
- "public_username": "John Doe",
- "rating_categories": [
- {
- "category_code": "SERVICE",
- "category_rating": 4,
- "rating_scale": "1..5"
}
], - "rating_scale": "1..5",
- "rating_value": 4,
- "traveler_type": "WITH-FAMILY"
}
{- "code": "0",
- "message": "Parameter \"page\" of value \"-1\" violated a constraint \"Parameter 'page' value, does not match requirements '\\\\d+'\""
}
Review statistics for activity
Unauthorized: token is not valid
Forbidden: activity is not accessible to partners
Not found: activity with UUID does not exist
Service unavailable
curl -i -X GET \ 'https://sandbox.musement.com/api/v3/activities/{activityUuid}/reviews/statistics' \ -H 'Accept-Language: en-US' \ -H 'X-Musement-Application: string' \ -H 'X-Musement-Version: 3.4.0'
{- "reviews_number": 700,
- "overall_rating": 7.65,
- "reviews_per_rating": [
- {
- "rating": 1,
- "reviews_count": 0
}, - {
- "rating": 2,
- "reviews_count": 100
}, - {
- "rating": 3,
- "reviews_count": 0
}, - {
- "rating": 4,
- "reviews_count": 200
}, - {
- "rating": 5,
- "reviews_count": 0
}, - {
- "rating": 6,
- "reviews_count": 250
}, - {
- "rating": 7,
- "reviews_count": 0
}, - {
- "rating": 8,
- "reviews_count": 0
}, - {
- "rating": 9,
- "reviews_count": 75
}, - {
- "rating": 10,
- "reviews_count": 175
}
], - "rating_categories": [
- {
- "category_code": "SERVICE",
- "category_name": "Service",
- "category_rating": 7.5
}
]
}