POST /v1/integrations/asaas/account
const url = 'https://seu-endereco-da-api/v1/integrations/asaas/account';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"personType":"PF","companyType":"MEI","name":"example","cpfCnpj":"example","birthDate":"example","email":"hello@example.com","mobilePhone":"example","incomeCents":1,"postalCode":"example","address":"example","addressNumber":"example","complement":"example","province":"example","termsAccepted":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/integrations/asaas/account \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "personType": "PF", "companyType": "MEI", "name": "example", "cpfCnpj": "example", "birthDate": "example", "email": "hello@example.com", "mobilePhone": "example", "incomeCents": 1, "postalCode": "example", "address": "example", "addressNumber": "example", "complement": "example", "province": "example", "termsAccepted": true }'Permissão que a Chave de acesso precisa: Gerenciar a Central de apps (integrations:manage).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”object
Responses
Seção intitulada “Responses”object
Sandbox keys create test charges only
Last characters of the stored key; the key itself never leaves the server
Open charges whose payment stops being tracked on disconnect
Name of the Asaas account the key belongs to
Created: the account was opened from inside the system
Null for an account connected by key; charging is blocked until approved
Where the account holder sends the pending documents
Only when disconnected: whether an Asaas account can be opened from here
Tracking of charges created straight in Asaas
object
Official WhatsApp number that messages the customers of these charges
Example
{ "environment": "sandbox", "origin": "key", "accountStatus": "analysis", "externalCharges": { "dealMode": "none", "methods": [ "pix" ] }}Asaas_terms_required, or asaas_account_field_invalid with the refused field
Asaas_account_exists, asaas_already_connected or asaas_account_creation_in_progress
Asaas_account_rejected: Asaas refused the data, with its reason in detail
Asaas did not answer