ReferenceReviews

setReviewResponse mutation

Enables partners to respond to traveler reviews.

Syntax

1mutation {
2 setReviewResponse(
3 propertyId: ID!
4 propertyIdSource: IdSource!
5 reviewId: ID!
8}

Example

1mutation {
2 setReviewResponse(
3 propertyId: "9309913",
4 propertyIdSource: EXPEDIA,
5 reviewId: "61f87508de53060cb1ff59e9",
6 body: {
7 value: "Thank you very much for the generous review.",
8 locale: "en-US"
9 }
10 ) {
11 createdDateTime
12 status
13 body {
14 value
15 locale
16 }
17 }
18}

Arguments

NameDescription

body

Required.

"Property manager's response to the review (localized).

Type: InputLocalizedString

propertyId

Required.

Property ID. If using an external ID (from your system, source is SUPPLIER), specify the ID in this format: system_ID/advertiser_ID/property_ID. If the source is EXPEDIA, this is the Expedia ID (EID).

Type: ID

propertyIdSource

Required.

Source of the ID.

Type: IdSource

reviewId

Required.

Expedia's review ID.

Type: ID

Types


Name
Type
ID
ID

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

IdSource
Enum

Source of a given ID.

NameDescription
EXPEDIA

Expedia is the source of the ID.

SUPPLIER

Connectivity provider or lodging partner is the source of the ID. This value is not supported for use in promotions.

VRBO

Unsupported.

InputLocalizedString
InputObject

Response text and its locale code.

FieldDescription
localeNot nullable.

Locale code used to localize the response text, which conforms to the BCP-47 (RFC 5646) standard, such as fr-FR.

Type: String
valueNot nullable.

Localized response text.

Type: String
Locale
Locale

A type that represents a string that conforms to the BCP-47 (RFC 5646) standard. Example: en-GB.

LocalizedString
Object

Localized text and its locale code.

FieldDescription
localeNot nullable.

Locale code used to localize the text, which conforms to the BCP-47 (RFC 5646) standard, such as fr-FR.

Type: Locale
valueNot nullable.

Localized text.

Type: String
String
String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

UpdatedReviewResponse
Object

Review response, including status and creation date of the response.

FieldDescription
bodyNot nullable.

Localized review response text.

Type: LocalizedString
createdDateTimeNot nullable.

Creation date and time in ISO format.

Type: String
statusNot nullable.

Status of the response.

Type: String