# Update Notes to Cart

## zapiUpdateNotesToCart

<mark style="color:green;">`POST`</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. |
| cartId<mark style="color:red;">\*</mark>        | integer | ID of the current 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.                                               |
| notes<mark style="color:red;">\*</mark>         | string  | Notes/Comments to add to the cart                                               |

{% 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>zapiUpdateNotesToCart</methodName>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage>Updated notes</methodErrorMessage>
        <notes>
            <![CDATA[These are my notes that I need to save to the cart.  Really anything can be placed in here, including characters \"\'\" \"!]]>
        </notes>
    </methodResponse>
</response>
```

{% endtab %}
{% endtabs %}

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

```xml
<request>
	<zapiToken></zapiToken>
	<zapiAccountId></zapiAccountId>
	<zapiUserId></zapiUserId>>
	<zapiMethod>
		<methodName>zapiUpdateNotesToCart</methodName>
		<cartId></cartId>
		<notes>Enter notes here</notes>
	</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>zapiUpdateNotesToCart</methodName>
		<methodErrorCode>0</methodErrorCode>
		<methodErrorMessage>Updated notes</methodErrorMessage>
		<notes></notes>
	</methodResponse>
</response>
```

{% endtab %}
{% endtabs %}
