Asaas Split on Pluga
How to Use the Asaas Payment Split Feature in an Integration with Pluga
Create charges with Split in Asaas through a Pluga automation, without building your own integration.
The source tool can be Google Sheets or another system compatible with the chosen automation template.
Before you begin
Have:
- an active Asaas account;
- a Pluga account;
- a source tool for the charge data;
- access to the Asaas account that will create the charges;
- the recipients and the split rule defined;
- the recipients'
walletIds, when used in the template.
Split can use a fixed amount or a percentage. The percentage is calculated on the net value of the charge (netValue).
ImportantThe split is calculated on the net value of the charge, that is, after the applicable fees are deducted.
Therefore, the amount actually transferred may be lower than a split calculated on the gross value of the charge.
AttentionTo use split, all recipients must have an Asaas account.
Also, do not provide the
walletIdof the account issuing the charge itself. The net balance not distributed via split automatically remains with the issuing account.
If you need to retrieve an account's identifier, see Retrieve WalletId.
How it works
%%{init: {"flowchart": {"nodeSpacing": 18,"rankSpacing": 24,"diagramPadding": 4,"padding": 7}}}%%
flowchart TD
A["Prepare the data"] --> B["Configure the trigger"]
B --> C["Connect Asaas"]
C --> D["Map the charge"]
D --> E["Configure the Split"]
E --> F["Finish the automation"]
F --> G["Create test charge"]
G --> H["Validate the transfers"]
classDef inicio fill:#DBEAFE,stroke:#2563EB,color:#1E3A8A,stroke-width:3px
classDef validacao fill:#E0F2FE,stroke:#0284C7,color:#0C4A6E,stroke-width:2px
classDef sucesso fill:#DCFCE7,stroke:#16A34A,color:#14532D,stroke-width:3px
class A inicio
class B,C,D,E,F,G validacao
class H sucesso
linkStyle default stroke:#94A3B8,stroke-width:2px
1. Prepare the data
Organize the information needed to create the charge and configure the Split.
| Group | Examples |
|---|---|
| Customer | Name, email, phone, and CPF/CNPJ |
| Charge | Amount, due date, description, and payment method |
| Control | Order ID or external reference |
| Split | walletId, split type, and amount |
When using a spreadsheet as the source, put each piece of information in its own column.
Best practiceUse a control column, such as the order number or external reference, to make reconciliation easier and reduce the risk of duplicate charges.
2. Configure the trigger
In the Pluga dashboard:
- create a new automation;
- choose the source tool, such as Google Sheets;
- select the spreadsheet or resource that contains the data;
- choose the template that creates a charge in Asaas;
- define when the automation should run.
Configure the trigger to fire only after all the required data has been filled in.
For example, a control column can start the creation of the charge only when it receives a specific value, such as Yes.
3. Connect Asaas
Select Asaas as the destination tool and choose the charge creation action.
Connect the account following the authentication flow presented by Pluga.
SecurityThe API key allows actions to be performed on the Asaas account.
Use an identifiable key for Pluga and avoid sharing it in places without access control.
4. Map the charge
Associate the data from the source tool with the fields used by the Pluga template.
Review in particular:
- customer;
- amount;
- due date;
- payment method;
- description;
- sale reference, when used.
The available fields depend on the selected automation.
5. Configure the Split
Enable Payment Split in the charge configuration.
Choose how to identify the recipients according to the options available in the template:
- already registered subaccounts; or
walletId.
Then define the transfer by:
- fixed amount;
- percentage.
Fixed amount
Defines an exact amount for the recipient.
Example:
Net value of the charge: R$ 100.00
Fixed split for partner: R$ 25.00
Amount transferred to partner: R$ 25.00
Remaining balance for the issuing account: R$ 75.00Percentage
The percentage is applied to the netValue.
Example:
Net value of the charge: R$ 100.00
Split for partner: 30%
Amount transferred to partner: R$ 30.00
Remaining balance for the issuing account: R$ 70.00For percentage-only Splits, the sum cannot exceed 100%. The configured values must also respect the net value available in the charge.
AttentionIf the total split amount is greater than the net value of the charge, the split may be rejected, blocked, or require adjustment, depending on when the inconsistency is identified.
See the complete rules in Payment Split.
6. Define the recipients
Confirm that each walletId belongs to the account that should receive the transfer.
AttentionDo not use the
walletIdof the account issuing the charge itself.The net amount that is not distributed via split will be automatically credited to the issuing account.
You only need to configure as recipients the accounts that will receive part of the amount. The remaining net balance stays in the account that created the charge.
7. Finish and test
Before activating the automation:
- review the mapped fields;
- check the recipients;
- validate the amounts or percentages;
- confirm the trigger;
- run a test with controlled data.
Then finish the automation in Pluga.
Expected result
Pluga should create the charge in Asaas with the Split configuration defined in the automation.
After the charge is received, Asaas calculates the netValue and processes the transfers according to the configured rules.
Avoid duplicates
If the source allows it, keep control fields to record the result of the automation.
For example:
| order | generateCharge | asaasChargeId | status |
|---|---|---|---|
| 1001 | Yes | pay_000000000001 | Created |
| 1002 | No | Pending |
Before reprocessing a row or event:
- check the automation history in Pluga;
- confirm whether the charge has already been created;
- use the order ID or external reference for reconciliation.
Track the Splits
For manual validation, check the paid and received Splits directly in the Asaas interface:
Check Splits through the interface.
For automated tracking, use Webhooks instead of recurring API queries.
The event:
PAYMENT_SPLIT_DONEis sent when a specific Split is settled. If a charge has more than one Split, each settlement may generate its own event.
Refunds
When a charge with Split is refunded, the related transfers are also refunded.
Take this behavior into account when reconciling the issuing account, the recipients, and the source tool.
Common errors
| Situation | What to check |
|---|---|
| Charge was not created | Required fields, data sent, and connection with Asaas |
| Split was not applied | Split option and split fields |
Invalid walletId | Identifier and recipient account |
| Transfer different from expected | Calculation considering the netValue |
| Duplicate charge | Trigger and control identifier |
| Automation did not run | Trigger, filters, and Pluga history |
ImportantThe availability of tools, triggers, actions, and automation templates is defined by Pluga.
To see the complete, up-to-date list of integrations available for Asaas, visit the Asaas page on Pluga.
Next steps
Updated 5 days ago
