Skip to main content

Update subscriptions

You must ensure that you have a hotel level access token to authenticate requests related to subscriptions. More information about hotel access tokens.

Updating a subscription

You must specify the ID of the subcription which can be found by querying all subscriptions. More information about querying subscriptions.

If you provide an endpoint, a POST healthcheck request will be sent to the endpoint and it will be validated if a valid 2xx response status code is sent.

mutation updateMarketplaceAppSubscription {
updateMarketplaceAppSubscription(
where: { id: "69ba68fa-a480-4fd4-bf25-049e5182155f" }
data: { topics: [Booking, Order] }
) {
id
endpoint
topics
}
}

Reponse

{
"data": {
"updateMarketplaceAppSubscription": {
"id": "69ba68fa-a480-4fd4-bf25-049e5182155f",
"endpoint": "https://api.your-app.com/xxxxx",
"topics": ["Booking", "Order"]
}
}
}