powering tour and activity businesses worldwide

Calendar with Monthly Availability

You always have the option to have the customer select dates before showing availability, for example like a hotel or airline search.  We have found, however, that showing available dates upfront makes for a better overall user experience.  In order to fetch and display dates, you will most likely need to generate a calendar of some form.  Once you have done that, you can use the monthly instruction to get the availability for a particular product for a specific month.  In this case, for example, we are looking for the overall monthly availability for the product with com 29438.

Sample XML Request

http://api.rezgo.com/xml?transcode=1446&key=0U1-V4W9-L2S5-E4S&i=month&g=1&q=29438&d=2016-08-01

Sample XML Response

<?xml version="1.0" encoding="UTF-8"?>
<response>
<name><![CDATA[Family River Rafting]]></name>
<com>29438</com>
<month>August</month>
<year>2016</year>
<day value="1" condition="u"></day>
<day value="2" condition="u"></day>
<day value="3" condition="u"></day>
<day value="4" condition="u"></day>
<day value="5" condition="u"></day>
<day value="6" condition="u"></day>
<day value="7" condition="u"></day>
<day value="8" condition="u"></day>
<day value="9" condition="u"></day>
<day value="10" condition="u"></day>
<day value="11" condition="u"></day>
<day value="12" condition="u"></day>
<day value="13" condition="u"></day>
<day value="14" condition="u"></day>
<day value="15" condition="u"></day>
<day value="16" condition="u"></day>
<day value="17" condition="u"></day>
<day value="18" condition="u"></day>
<day value="19" condition="u"></day>
<day value="20" condition="u"></day>
<day value="21" condition="u"></day>
<day value="22" condition="u"></day>
<day value="23" condition="u"></day>
<day value="24" condition="u"></day>
<day value="25" condition="u"></day>
<day value="26" condition="u"></day>
<day value="27" condition="u"></day>
<day value="28" condition="u"></day>
<day value="29" condition="u"></day>
<day value="30" condition="u"></day>
<day value="31" condition="u"></day>
<active>0</active>
<v>latest</v><gt>0.02871</gt></response>

Sample JSON Request

http://api.rezgo.com/json?transcode=1446&key=0U1-V4W9-L2S5-E4S&i=month&g=1&q=29438&d=2016-08-01

Sample JSON Response

{
 "name": "Family River Rafting",
 "com": "29438",
 "month": "August",
 "year": "2016",
 "day": [
 {
 "@attributes": {
 "value": "1",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "2",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "3",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "4",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "5",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "6",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "7",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "8",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "9",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "10",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "11",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "12",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "13",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "14",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "15",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "16",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "17",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "18",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "19",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "20",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "21",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "22",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "23",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "24",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "25",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "26",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "27",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "28",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "29",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "30",
 "condition": "u"
 },
 "0": "\n"
 },
 {
 "@attributes": {
 "value": "31",
 "condition": "u"
 },
 "0": "\n"
 }
 ],
 "active": "0",
 "v": "latest",
 "gt": "0.02355"
}

Written by

Stephen is the CEO and Co-Founder of Rezgo. He has been working as a travel & tourism technology consultant since 1995. Stephen is active in fostering tourism technology and is a Past Chair of the OpenTravel Alliance. He is also a regular contributor for Tnooz, a leading travel technology media site, and speaks regularly at conferences around the Globe on travel & tourism technology, messaging standards, and industry trends.