GET authorize
The authorize function is always the first port of call when connecting to the Aventri API. You will need your API credentials, consisting of your Aventri account ID and account key, which can be found within the Aventri system.

Once logged into the API, you will receive an access token, which you will need to pass into other function requests.

Resource URL

https://www.eiseverywhere.com/api/v2/global/authorize.format

Parameters

accountid
required
Your account ID, will always be numeric.
key
required
The account key for your API credentials, always alpha-numeric and 40 characters long.
Example: 8f0a20c7578ccb8445f0cb20b39e4e1279d45d8d

Example success response

1
2
3
4
<?xml version="1.0" encoding="UTF-8"?>
<etouches>
    <accesstoken>Ub57+fu2p/4KcaqIRNUNQD9HV8nWid+7flRBxbskZIv/DWkaZG0+e6H6ZcjPaAoAGqOtjSq4tHh9ChxUChZdZw==</accesstoken>
</etouches>

1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<etouches>
    <error>
        <accountid>Account ID (##) was not numeric</accountid>
    </error>
</etouches>

1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<etouches>
    <error>
        <key>Key was not entered</key>
    </error>
</etouches>

1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<etouches>
    <error>
        <key>Key should be 40 characters long, currently key length is ##</key>
    </error>
</etouches>

1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<etouches>
    <error>
        <credentials>Account could not be authorized</credentials>
    </error>
</etouches>