Nova aplicação de telemóvel | Experimente grátis!
Faturar no iphone com MagniFinance. Aceda ao link da Apple store Faturar no Android com MagniFinance. Aceda ao link para Android Store
 
API documentation Menu

API 2.0 | Go to the latest documentation arrow_forward

Parallelization


1.Parallelization best practices

You must keep the number of simultaneous requests under 6.



1.1. Reacting to timeouts or errors

In case a request is met with a timeout or error, that thread must wait 5 seconds before retrying, upon a second consecutive occurrence the thread must wait 25 seconds and 125 seconds on the third and following retries.



1.2. Avoid erros with early validations

On requests such as the DocumentCreate and AddPartner with an important field such as Tax Id, that Tax Id will be validated on server side and in case of being invalid an error will be returned. This is often very late in the process, the user might have already done a registration and left the website or the service was already provided and there is no easy way to contact the customer. These situations make it hard to correct the data and may put a strain your business. To avoid such inconvenience, it is highly recommended that fields like Tax Ids, Post Codes, Phone Numbers, Tax Percentages be validated early in your software or process so that an error is returned to the user and the user can easily correct the information.

Este site usa cookies para melhorar o desempenho e experiência. Ao continuar, declara aceitar todos os cookies. Fechar