Creates a new subaccount linked to the authenticated parent account.
The parent account creating the subaccount must be a legal entity (CNPJ).
The response includes the new subaccount's apiKey and walletId. Capture the apiKey from the creation response, because its value cannot be retrieved later.
When webhooks is provided, the Webhook configurations are created together with the subaccount.
Subaccount postal code (CEP)Provide a valid postal code (CEP) in
postalCode. Asaas uses this value to identify the city of the address and returns400when the postal code cannot be found.
Free-of-charge closureNon-BaaS subaccounts closed within 48 hours of creation are not charged the creation fee, when applicable. For this, the subaccount must meet the non-BaaS subaccount closure criteria, including never having logged in. After this period, closure through this flow is no longer allowed.
See the amounts applicable to your contract in Account Settings > Fees.
