> For the complete documentation index, see [llms.txt](https://docs.zaui.com/zapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zaui.com/zapi/zapi-calls/waitlist/single-activity-waitlist.md).

# Single Activity Waitlist

## zapiGetAllWaitListGuestsByActivityIdAndDate

<mark style="color:blue;">`GET`</mark> `https://{yourdomainname}.zaui.net/zapi/`

#### Request Body

| Name                                            | Type    | Description                                                                     |
| ----------------------------------------------- | ------- | ------------------------------------------------------------------------------- |
| zapiToken<mark style="color:red;">\*</mark>     | integer | Token that must be used for a reseller to communicate with the supplier system. |
| activityTime<mark style="color:red;">\*</mark>  | integer | Timeslot of activity to add guest to the waitlist for. Format: HH:MM:SS.        |
| activityDate<mark style="color:red;">\*</mark>  | integer | The travel date.  Format: YYYY-MM-DD                                            |
| activityId<mark style="color:red;">\*</mark>    | integer | ID of the activity.                                                             |
| methodName<mark style="color:red;">\*</mark>    | string  | The method being called.                                                        |
| zapiUserId<mark style="color:red;">\*</mark>    | integer | Generated by the supplier system when a new contact is created.                 |
| zapiAccountId<mark style="color:red;">\*</mark> | integer | Generated by the supplier system.                                               |

{% tabs %}
{% tab title="200: OK " %}

```xml
<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiGetAllWaitListGuestsByActivityIdAndDate</methodName>
        <activityId>80</activityId>
        <activityDate>2021-11-30</activityDate>
        <waitListGuests>
            <guest>
                <waitListId>3</waitListId>
                <firstName>
                    <![CDATA[Harry]]>
                </firstName>
                <lastName>
                    <![CDATA[Potter]]>
                </lastName>
                <mobilePhone>
                    <![CDATA[604-456-7896]]>
                </mobilePhone>
                <email>
                    <![CDATA[harry_test@test.com]]>
                </email>
                <comments>
                    <![CDATA[Testing]]>
                </comments>
                <dateCreated>
                    <![CDATA[2021-11-17 10:06:52]]>
                </dateCreated>
                <passengers>
                    <seniors>0</seniors>
                    <adults>2</adults>
                    <students>0</students>
                    <children>0</children>
                    <infants>0</infants>
                    <passengersAsString>
                        <![CDATA[2 (ad)]]>
                    </passengersAsString>
                </passengers>
            </guest>
        </waitListGuests>
        <totalGuestsOnWaitList>2</totalGuestsOnWaitList>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage>
            <![CDATA[]]>
        </methodErrorMessage>
    </methodResponse>
</response>
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Request" %}

```xml
<request>
	<zapiToken></zapiToken>
	<zapiAccountId></zapiAccountId>
	<zapiUserId></zapiUserId>
	<zapiMethod>
		<methodName>zapiGetAllWaitListGuestsByActivityIdAndDate</methodName>
		<activityId></activityId>
		<activityDate></activityDate>
		<activityTime></activityTime>
	</zapiMethod>
</request>
```

{% endtab %}

{% tab title="Response" %}

```xml
<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiGetAllWaitListGuestsByActivityIdAndDate</methodName>
        <activityId></activityId>
        <activityDate></activityDate>
        <waitListGuests>
            <guest>
                <waitListId></waitListId>
                <firstName></firstName>
                <lastName></lastName>
                <mobilePhone></mobilePhone>
                <email></email>
                <comments></comments>
                <dateCreated></dateCreated>
                <passengers>
                    <seniors></seniors>
                    <adults></adults>
                    <students></students>
                    <children></children>
                    <infants></infants>
                    <passengersAsString></passengersAsString>
                </passengers>
            </guest>
        </waitListGuests>
        <totalGuestsOnWaitList></totalGuestsOnWaitList>
        <methodErrorCode></methodErrorCode>
        <methodErrorMessage></methodErrorMessage>
    </methodResponse>
</response>
```

{% endtab %}
{% endtabs %}
