Payments
Error 400 invalid_billingType trying to create a billing using the billingType CREDIT_CARD?
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.
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.
Currently, the default pre-authorization timeframe is 3 days, after which the transaction is automatically reversed if it is not captured.
The pre-authorization timeframe may vary according to account settings and merchant category rules (MCC). To change the default timeframe applied to your transactions, access the Pre-Authorization Settings resource.
If it is necessary to cancel the pre-authorization before the configured deadline, use the Payment Refund resource.
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.
Updated 6 days ago