Situ's API for seamless integration with Situ's workflow.
Xenia Connect API (1.0.1)
Enquiries
Enquiries are the start point in the booking journey. Providing as much information as possible upfront about an enquiry will increase its conversion rate and reduce touchpoints. We are constantly looking for what we can add to our set of information to make our process easier for everybody. If you have any suggestions get in contact!
Request
Change the state of an enquiry in the sandbox environment, triggering its relevant event as well. You cannot go back to a previous state. If you specify QUOTED then it will trigger all eligible states before it, so in this example it would be SHORTLISTING and then finally QUOTED. Some states will be exceptions such as CLOSED which can happen in any of the previous states. This is not available in production.
The reason for the enquiry closure. This is not always available and may be null.
- Mock serverhttps://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/sandbox/enquiries/{id}/change-state
- Productionhttps://api-xenia.staysitu.com/external-api/v1/sandbox/enquiries/{id}/change-state
- Sandboxhttps://api-xenia-cisandbox.staysitu.com/external-api/v1/sandbox/enquiries/{id}/change-state
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/sandbox/enquiries/R4E2F3A4/change-state \
-H 'Content-Type: application/json' \
-H 'X-Api-Key: YOUR_API_KEY_HERE' \
-d '{
"enquiryState": "CLOSED"
}'Supported webhook events.
- Mock serverhttps://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/sandbox/enquiries/{id}/trigger-webhook-event
- Productionhttps://api-xenia.staysitu.com/external-api/v1/sandbox/enquiries/{id}/trigger-webhook-event
- Sandboxhttps://api-xenia-cisandbox.staysitu.com/external-api/v1/sandbox/enquiries/{id}/trigger-webhook-event
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/sandbox/enquiries/R4E2F3A4/trigger-webhook-event \
-H 'Content-Type: application/json' \
-H 'X-Api-Key: YOUR_API_KEY_HERE' \
-d '{
"eventType": "ENQUIRY.CREATED"
}'