API V2.0: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 365: | Line 365: | ||
==Can I use API V2 to send pictures or webhooks?== | ==Can I use API V2 to send pictures or webhooks?== | ||
Currently no, however these features are coming soon. | Currently no, however these features are coming soon. | ||
==How can I see if a date is available for check-in/out?== | |||
The GET /inventory/rooms/availability returns information about if dates are available or not. If a date is false, it means it is not available for check-in. However, if the previous date is available, it means the date is available for check-out. | |||
For example, with the following a booking cannot check-in on 2024-01-03 because that date is unavailable. However, because the previous date 2024-01-04 is available, it means 2024-01-03 is available for check-out. | |||
"availability": { | |||
"2024-01-01": true, | |||
"2024-01-02": true, | |||
"2024-01-03": false | |||
} | |||