> 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/activity-calls/cancelled-activities.md).

# Cancelled Activities

## zapiActivity\_GetCancellations

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

#### Request Body

| Name                                                    | Type      | Description                                                                     |
| ------------------------------------------------------- | --------- | ------------------------------------------------------------------------------- |
| zapiToken<mark style="color:red;">\*</mark>             | integerng | Token that must be used for a reseller to communicate with the supplier system. |
| zapiAccountId<mark style="color:red;">\*</mark>         | integer   | Generated by the supplier system.                                               |
| zapiUserId<mark style="color:red;">\*</mark>            | integer   | Generated by the supplier system when a new contact is created.                 |
| methodName<mark style="color:red;">\*</mark>            | string    | The method being called.                                                        |
| activityId<mark style="color:red;">\*</mark>            | integer   | ID of the activity.                                                             |
| cancellationStartDate<mark style="color:red;">\*</mark> | integer   | Start date of cancellation window. Format:  YYYY-MM-DD                          |
| cancellationEndDate<mark style="color:red;">\*</mark>   | integer   | End date of cancellation window. Format:  YYYY-MM-DD                            |

{% 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>zapiActivity_GetCancellations</methodName>
        <cancellations>
            <cancellation>
                <cancellationId>243</cancellationId>
                <activityId>80</activityId>
                <activityName>Canyon Icewalk </activityName>
                <cancellationStartDate>2022-04-21</cancellationStartDate>
                <cancellationEndDate>2022-04-21</cancellationEndDate>
                <cancellationStartTime>13:00:00</cancellationStartTime>
                <cancellationEndTime>17:00:00</cancellationEndTime>
                <daysOfWeek>
                    <sunday>true</sunday>
                    <monday>true</monday>
                    <tuesday>true</tuesday>
                    <wednesday>true</wednesday>
                    <thursday>true</thursday>
                    <friday>true</friday>
                    <saturday>true</saturday>
                </daysOfWeek>
            </cancellation>
        </cancellations>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage>
            <![CDATA[]]>
        </methodErrorMessage>
    </methodResponse>
</response>
```

{% endtab %}
{% endtabs %}

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

```xml
<request>
	<zapiToken></zapiToken>
	<zapiAccountId></zapiAccountId>
	<zapiUserId></zapiUserId>
	<zapiMethod>
		<methodName>zapiActivity_GetCancellations</methodName>
		<activityId></activityId>
		<cancellationStartDate></cancellationStartDate>
		<cancellationEndDate></cancellationEndDate>
	</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>zapiActivity_GetCancellations</methodName>
		<cancellations>
			<cancellation>
				<cancellationId></cancellationId>
				<activityId></activityId>
				<activityName></activityName>
				<cancellationStartDate></cancellationStartDate>
				<cancellationEndDate></cancellationEndDate>
				<cancelltionStartTime></cancelltionStartTime>
				<cancellationEndTime></cancellationEndTime>
				<daysOfWeek>
					<sunday></sunday>
					<monday></monday>
					<tuesday></tuesday>
					<wednesday></wednesday>
					<thursday></thursday>
					<friday></friday>
					<saturday></saturday>
				</daysOfWeek>
			</cancellation>
		</cancellations>
		<methodErrorCode>0</methodErrorCode>
		<methodErrorMessage></methodErrorMessage>
	</methodResponse>
</response> 
```

{% endtab %}
{% endtabs %}
