mutation {
webhook {
createSubscriptionWebhook(
refreshToken: "YOUR_REFRESH_TOKEN"
label: "Sample flightPassengerListChanged"
subscription: "subscription flightPassengerListChanged($oAuthClientId: OAuthClientId!) { integration { flightSupport { flightPassengerListChanged(oAuthClientId: $oAuthClientId) { flight { flightNid paxCount paxList { ... on NonNullListOfNonNullFlightSupportPassengerContactValue { value { name surname dateOfBirth gender placeOfBirth nationality { code codeIso } departureTravelDocument { travelDocumentType country { code codeIso } number dateOfIssue dateOfExpiry } arrivalTravelDocument { travelDocumentType country { code codeIso } number dateOfIssue dateOfExpiry } } } ... on ErrorList { errorList { message category path } } } } } } } }"
variables: "{\"oAuthClientId\": \"YOUR_OAUTH_CLIENT_ID\"}"
webhookUrl: "https://YOUR_WEBHOOK_URL"
includeAuthorizationHeader: true
) {
... on CreateSubscriptionWebhookViolationList {
error: value {
message
path
category
}
}
... on NonNullBooleanValue {
success: value
}
}
}
}