district query
Retrieves regulatory requirements for the specified property as defined by its jurisdiction. The query can return all regulatory information in our system for the jurisdiction, such as allowed property types, registration numbers, and minimum and maximum length-of-stay requirements.
Reading regulatory requirements in the query response
For the following request:
- Request
- Response
1query {2 property(id: "96465844", idSource: EXPEDIA) {3 geoLocation {4 latitude5 longitude6 }7 district(locale: "en_US") {8 id9 description10 nativeLocale11 localizedName12 referenceUrls13 registrationRequired14 legalPropertyTypes {15 type16 subtype17 }18 requirements {19 regulatoryCategory20 regulatoryCategoryLabel21 qualifiedPropertyTypes {22 type23 subtype24 }25 registrationNumberRequirements {26 numberType27 numberTypeLabel28 localName29 format30 regex31 isOptional32 isExpirationDateRequired33 allowPendingRegistrations34 url35 thirdPartyValidation {36 required37 attributes38 }39 }40 additionalDataRequirements {41 key42 keyLocalized43 type44 typeLocalized45 subtype46 subtypeLocalized47 group48 groupLocalized49 isOptional50 }51 minStayNights52 maxNightCap {53 annualLimit54 isEnforced55 }56 exemptions {57 category58 description59 }60 isVacationRental61 }62 }63 }64}
Here is an explanation of the response:
- Registration is required (
"registrationRequired": true
) for residences and hotels (legalPropertyTypes
object). - 16 registration requirements are listed for both types of properties (under each
registrationNumberRequirements
array). - To understand how to interpret the information for each requirement, consider these examples:
- For registration number (
"numberType": "REGISTRATION_NUMBER”
): - This is also referred to as VAT or tax ID (
"localName": "VAT or Tax ID”
), and it is mandatory ("isOptional": false
). - Three examples are given for the registration number format (
"format": "123456789, HR1234567890123, 123456789ABCDEFGHI"
) and the regular expression that describes this format is provided ("regex": "^[a-zA-Z0-9]{8,18}$"
). - No expiration date is required (
"isExpirationDateRequired": false
). - Pending registrations are not allowed (
"allowPendingRegistrations": false
).
- For registration number (
- For entity type (
"numberType": "ENTITY_TYPE”
):- This is optional (
"isOptional": true
). - In Expedia Partner Central (EPC), this is set by the "Are you a business or an individual?" question, and the acceptable values include "Individual" and "Business".
- No expiration date is required (
"isExpirationDateRequired": false
). - Pending registrations are not allowed (
"allowPendingRegistrations": false
).
- This is optional (
- For property address (
"numberType": "LEGAL_ADDRESS”
):- This is not required as part of its regulatory information (
"isOptional": true
). - In EPC, the address is set by the "What is your legal business address or legal registered address?" question.
- The submitted values are validated by this regular expression: ^.{1,240}$.
- No expiration date is required (
"isExpirationDateRequired": false
). - Pending registrations are not allowed (
"allowPendingRegistrations": false
).
- This is not required as part of its regulatory information (
Syntax
1query {4 }5}
Examples
Retrieving compliance and property status information
If you have implemented the property status capability, you can retrieve property status and compliance information using one query. The following query retrieves this information:
- Expedia distributed URL
- Whether the property is live on Expedia (
BEXPropertyIsEnabledPredicate
checkpoint has"fulfilled": true
) - Whether the property is compliant with local regulations: (
registration : detail : compliant : status
) - If not compliant, a link to local regulatory laws (
district : referenceUrls
)
- Request
- Response
1query {2 property(id: "34479786", idSource: EXPEDIA) {3 name4 coordinates {5 latitude6 longitude7 }8 district(locale: "fr_FR") {9 id10 referenceUrls11 }12 listings(domains: ["expedia.com"]) {13 url14 }15 activeStatus {16 active17 statusCheckpoint {18 name19 lastEvaluated20 resolutionStatus21 checkpoints {22 name23 path24 lastEvaluated25 resolutionStatus26 fulfilled27 }28 }29 }30 }31}
Interactive example
The GraphQL explorer is provided for the example below. For more examples, refer to the Introduction.
Use this interactive explorer to get comfortable with the sample query.
- A test property ID is passed into the explorer for use by the query; its test data is returned.
- Click Run Query to execute the query in the explorer on the page. You can modify the query to retrieve the desired fields, and the explorer provides a list of fields when you start typing.
- Click API Explorer to launch the full explorer in another tab/window, which provides syntax highlighting, schema introspection, real-time error highlighting, and auto-completion, among other things.
District
API ExplorerResponse
Arguments
Name | Description |
---|---|
| Required. Expedia ID (EID) or supplier ID (external ID in the partner's system) of the property.. Type: String |
| Source system of the ID. EXPEDIA is the default value. Type: IdSource |
Types
Name | Type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AdditionalDataRequirement | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional parameters to meet onboarding requirements.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Boolean | Boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
District | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
District regulatory information.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Exemption | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Exemption to jurisdiction requirements.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ExemptionCategory | Enum | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Exemption types.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IdSource | Enum | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Source of a given ID.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Int | Int | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
JurisdictionRequirement | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Jurisdiction regulations that the partner needs to meet to comply with onboarding to Expedia.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LegalPropertyType | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property type for the district. This type provides what’s possible for the
district. Then,
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MaxNightCap | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Representation of a physical property, including its units, reservations, and promotions.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Purpose | Enum | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Purpose of the requirement.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RegistrationNumberRequirement | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Registration requirement.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RegistrationNumberType | Enum | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Types of registration numbers (licenses).
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RegulatoryCategory | Enum | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Category values for regulatory categories. Most of jurisdiction districts only allow for two categories, HOTEL and VACATION_RENTAL, though more values GRAPHQL_VALIDATION_FAILED are provided to satisfy local government requirements.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
String | String | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ThirdPartyValidation | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||