Monitoring the Default Import status

1. Initiate Command

Initiate the Default Import command /v1/default-import.xml, which will begin the import process.

It’s important to call this command immediately after receiving the sessionId and sessionIdSignature. You can call this command only once per session - if the command fails at any point, you have to create a new session (ask the user to log in again).

2. Polling for Status

Once the command is initiated, you need to monitor its status. You can do this by periodically querying the Get Import Result endpoint - /v1/command/{id}.xml endpoint, where {id} is the identifier of the command you received when starting the import.

We recommend polling every 2-5 seconds until a final state is received. This ensures that you get timely updates without overwhelming the system.

In the response you will receive one of the command states: setup, in_progress, successful, error or fatal.

If the state was setup or in_progress, continue with the polling loop, otherwise, please see the next section.

3. Handle the Final Status

Once the command reaches a final state, act accordingly:

Documentation

For technical documentation, refer to our unified documentation that offers comprehensive support for customers integrating with AIS services, our PDF parser, and Data Analysis solutions. Discover detailed guidance on seamless integration with Kontomatik services and explore their full range of capabilities.

Contact

Sales

Do you need help in explaining our products, costs, and cooperation?

Technical Support

Do you have technical questions about our services or API integration?