# Add to Cart

## zapiAddActivityToCart

<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.                    |
| activityId<mark style="color:red;">\*</mark>           | integer | ID of the activity.                                                                                |
| cartId<mark style="color:red;">\*</mark>               | integer | ID of the cart session to add the activity to.                                                     |
| 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.                                                                  |
| activityDate<mark style="color:red;">\*</mark>         | integer | The travel start date.  Format: YYYY:MM:DD.                                                        |
| activityEndDate<mark style="color:red;">\*</mark>      | integer | The travel end date.  Format: YYYY:MM:DD. Required for rental activities only.                     |
| activityTime<mark style="color:red;">\*</mark>         | integer | Required for non-rental activities only. Format: HH:MM:SS.                                         |
| activityTimeOptionId<mark style="color:red;">\*</mark> | integer | Required for rental activities only. Can be retrieved using the zapiGetActivityDetailsByActivityId |
| rentalStartTime<mark style="color:red;">\*</mark>      | integer | Required for rental activities only.                                                               |
| rentalEndTime<mark style="color:red;">\*</mark>        | integer | Required for rental activities only.                                                               |
| passengers<mark style="color:red;">\*</mark>           | integer | Required for non-equipment based rental activities only.                                           |
| CategoryId<mark style="color:red;">\*</mark>           | integer | ID of the equipment category                                                                       |
| equipmentCategoryName                                  | string  | Name of the equipment category                                                                     |
| equipmentId                                            | integer | ID of the specific piece of equipment to book                                                      |

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

```xml
<<request>
   <zapiToken></zapiToken>
   <zapiAccountId></zapiAccountId>
   <zapiUserId></zapiUserId>
   <zapiMethod>
    <methodName>zapiAddActivityToCart</methodName>
    <cartId></cartId>
    <activityId></activityId>
    <activityDate></activityDate>
    <activityEndDate></activityEndDate>
    <activityTime></activityTime>
    <activityTimeOptionId></activityTimeOptionId>
    <rentalStartTime></rentalStartTime>
    <rentalEndTime></rentalEndTime>
    <passengers>
        <seniors>0</seniors>
        <adults>0</adults>
        <students>0</students>
        <children>0</children>
        <infants>0</infants>
    </passengers>
    <equipment>
      <equipmentCategory>
        <CategoryId></CategoryId>
        <equipmentCategoryName></equipmentCategoryName>
        <quantity></quantity>
      </equipmentCategory>
      <selectedEquipment>
        <equipmentId></equipmentId>
        <equipmentId></equipmentId>
      </selectedEquipment>
    </equipment>
  </zapiMethod>
</request>
```

{% endtab %}

{% tab title="Response" %}

```xml
Response not currently available
```

{% endtab %}
{% endtabs %}
