Employee List

zapiSystem_GetEmployee

GET https://{yourdomainname}.zaui.net/zapi/

Request Body

NameTypeDescription

zapiToken*

integer

Token that must be used for a reseller to communicate with the supplier system.

userType*

integer

See User Type IDs in appendix

methodName*

string

The method being called.

zapiUserId*

integer

Generated by the supplier system when a new contact is created.

zapiAccountId*

integer

Generated by the supplier system.

<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiSystem_GetEmployee</methodName>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage/>
        <users>
            <user>
                <userId>282</userId>
                <userType>1</userType>
                <userTypeAsString>
                    <![CDATA[Administrator]]>
                </userTypeAsString>
                <firstName>
                    <![CDATA[Driver]]>
                </firstName>
                <lastName>
                    <![CDATA[Bob]]>
                </lastName>
            </user>
        </users>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage>
            <![CDATA[]]>
        </methodErrorMessage>
    </methodResponse>
</response>
<request>
   <zapiToken></zapiToken>
   <zapiAccountId></zapiAccountId>
   <zapiUserId></zapiUserId>
   <zapiMethod>
      <methodName>zapiSystem_GetEmployee</methodName>
      <userType></userType>
   </zapiMethod>
</request>

Last updated