# Custom Fields List

## zapiGetAllCustomFields

<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. |
| requiredOnly<mark style="color:red;">\*</mark>  | string  | True or False. Default is False.                                                |
| 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>zapiGetAllCustomFields</methodName>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage/>
        <customFields>
            <customField>
                <customFieldId>1</customFieldId>
                <customFieldType>TEXT</customFieldType>
                <customFieldLabel>
                    <![CDATA[Test Custom Field ]]>
                </customFieldLabel>
                <customFieldRequired>true</customFieldRequired>
            </customField>
        </customFields>
    </methodResponse>
</response>
```

{% endtab %}
{% endtabs %}

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

```xml
<request>
   <zapiToken></zapiToken>
   <zapiAccountId></zapiAccountId>
   <zapiUserId></zapiUserId>
   <zapiMethod>
      <methodName>zapiGetAllCustomFields</methodName>
      <requiredOnly></requiredOnly>
   </zapiMethod>
</request>
```

{% endtab %}

{% tab title="Response" %}

```html
<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiGetAllCustomFields</methodName>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage/>
        <customFields>
            <customField>
                <customFieldId></customFieldId>
                <customFieldType></customFieldType>
                <customFieldLabel></customFieldLabel>
                <customFieldRequired></customFieldRequired>
            </customField>
        </customFields>
    </methodResponse>
</response>
```

{% endtab %}
{% endtabs %}
