Error 400 invalid_billingType trying to create a billing using the billingType CREDIT_CARD?

You need to go to MY ACCOUNT > INFORMATION > COMMERCIAL DATA and fill in all the data, including cpfCnpj or perform the call to update commercial data sending all the data. After that, just try again.

Only accounts with 100% of their business details completed and approved will be able to create credit card charges.

My system is not updating Asaas charges, what could it be?

You need to visualize how your system writes off charges. This can be done through webhooks. If you use webhooks and your charges are not updating in your system, you probably have a problem with your Webhook queue being interrupted. This happens when there is a communication failure between your application and Asaas.

Check the paused queue documentation for more details

In it we talk about the main webhook errors.

How to create a pre-authorized charge?

Pre-authorization charges allow you to validate the limit available on your customer's card, without necessarily capturing the transaction.

This modality is generally used in car rental companies, where a deposit is reserved to guarantee credit.

In Asaas, you can perform pre-authorizations using the bill creation API. The only difference is that to pre-authorize, you must send the authorizedOnly parameter with the value true. This way, if validation occurs, the transaction will be created with the status AUTHORIZED.

If you want to capture the transaction, you can do so by consuming this API.

The maximum possible period for pre-authorization at the moment is 3 days, therefore, if after this period the transaction has not yet been captured, it will be automatically reversed.

If you need to reverse the transaction before 3 days, simply use the available refund API.

What to do when you are receiving a lot of card declines?

First, it is important to highlight that card refusal is not an API demand, since those who refuse the card transaction are the acquirers, card issuers or the security validator, not the API Integration. Therefore, it is a demand that needs to be checked with the account manager. If there are many card declines, it is best to talk to your account manager to understand what is happening.