4.3 ww.dll API Reference : General use : Note on the <avail> tag
 
Note on the <avail> tag
 
The <avail> tag returns information on whether a particular item is available based on Max4Sale or Points4Sale restrictions for a certain date or date range. If the tag is absent or is specified as <avail>0</avail>, nothing is calculated. The <avail>...</avail> tag can contain a single number or date, multiple numbers or dates each separated by a comma, a range of numbers or dates or a combination of numbers, dates and ranges using the following guidelines:
<avail>1</avail> means calculate availability for the current day
<avail>1-7</avail> means to calculate for today (1) until six days from now (7)
<avail>1,3,7</avail> means to calculate for today, two days from now and six days from now
<avail>8/29/2008-9/1/2008,9/15/2008-9/30/2008</avail> means to calculate for 8/29/2008 through 9/1/2008 and 9/15/2008 through 9/30/2008
 
Comma separated values and ranges can be mixed:
 
<avail>1-4,6,7</avail> is valid as is 1-7,10/1/2008-10/12/2008. Also, the identifiers bm and em are in place and mean beginning-of-month and end-of-month respectively. So, <avail>bm-em</avail> gives all values for the current month.
 
Values are returned in the avail_info field and are in an XML list using the Julian Day, e.g.:
 
avail_info='[39793]0[/39793][39794]0[/39794][39797]1[/39797]'
A 1 indicates availability while a 0 indicates no availability.