> 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/activity-category-by-id.md).

# Activity Category by ID

## zapiGetActivitiesByCategoryId

<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.             |
| 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.                                                                    |
| categoryId<mark style="color:red;">\*</mark>    | integer | ID of the category.                                                                         |
| verboseMode                                     | string  | True or False - Using this flag will curtail the amount of detail provided in the response. |

{% 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>zapiGetActivitiesByCategoryId</methodName>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage/>
        <categoryId>8</categoryId>
        <categoryName>
            <![CDATA[Canyon Walks]]>
        </categoryName>
        <imageUrl>
            <![CDATA[https://suppliertestsystem.zaui.net/themes/default/img/image_not_available.png]]>
        </imageUrl>
        <description>
            <![CDATA[Category place holder for all remotely mapped activities]]>
        </description>
        <activities>
            <activity>
                <activityId>80</activityId>
                <activityName>
                    <![CDATA[Canyon Icewalk ]]>
                </activityName>
                <hasBookings>false</hasBookings>
                <sharedInventoryDetails>
                    <isParent>true</isParent>
                </sharedInventoryDetails>
            </activity>
        </activities>
    </methodResponse>
</response>
```

{% endtab %}
{% endtabs %}

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

```xml
<request>
	<zapiToken></zapiToken>
	<zapiAccountId></zapiAccountId>
	<zapiUserId></zapiUserId>
	<zapiMethod>
		<methodName>zapiGetActivitiesByCategoryId</methodName>
		<categoryId></categoryId>
		<verboseMode></verboseMode>
	</zapiMethod>
</request>
```

{% endtab %}

{% tab title="Response" %}

```xml
<?xml version="1.0" encoding="utf-8"?>
<response>
	<zapiVersion>2.0</zapiVersion>
	<error>0</error>
	<message>OK</message>
	<methodResponse>
		<methodName>zapiGetActivitiesByCategoryId</methodName>
		<methodErrorCode>0</methodErrorCode>
		<methodErrorMessage></methodErrorMessage>
		<verboseMode>true</verboseMode>
		<categoryId></categoryId>
		<categoryName></categoryName>
		<imageUrl></imageUrl>
		<description></description>
		<activities>
			<activity>
				<activityId></activityId>
				<activityName></activityName>
				<hasBookings></hasBookings>
				<childrenActivities></childrenActivities>
			</activity>
		</activities>
	</methodResponse>
</response> 
```

{% endtab %}
{% endtabs %}
