POST /v1/integrations/asaas
const url = 'https://seu-endereco-da-api/v1/integrations/asaas';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"apiKey":"example","environment":"sandbox"}'};
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 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "apiKey": "example", "environment": "sandbox" }'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" ] }}Not an Asaas key, a key of the other environment, or Asaas refused it
Asaas is already connected
Asaas did not answer