Pular para o conteúdo

POST /v1/integrations/asaas/account

POST
/v1/integrations/asaas/account
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).

Media typeapplication/json
object
personType
required
string
Allowed values: PF PJ
companyType
string
nullable
Allowed values: MEI LIMITED INDIVIDUAL ASSOCIATION
name
required
string
>= 2 characters <= 200 characters
cpfCnpj
required
string
>= 11 characters <= 40 characters
birthDate
string
nullable <= 10 characters
email
required
string format: email
<= 200 characters
mobilePhone
required
string
>= 10 characters <= 40 characters
incomeCents
required
number
>= 1 <= 10000000000
postalCode
required
string
>= 8 characters <= 40 characters
address
required
string
>= 1 characters <= 200 characters
addressNumber
required
string
>= 1 characters <= 40 characters
complement
string
nullable <= 200 characters
province
required
string
>= 1 characters <= 200 characters
termsAccepted
required
boolean
Media typeapplication/json
object
connected
required
boolean
id
string
environment

Sandbox keys create test charges only

string
Allowed values: sandbox production
apiKeyLast4

Last characters of the stored key; the key itself never leaves the server

string
chargesEnabled
boolean
cancelEnabled
boolean
notifyOnPayment
boolean
winDealOnPayment
boolean
defaultDueDays
number
connectedAt
string format: date-time
connectedByName
string
nullable
openChargesCount

Open charges whose payment stops being tracked on disconnect

number
accountName

Name of the Asaas account the key belongs to

string
nullable
origin

Created: the account was opened from inside the system

string
Allowed values: key created
accountStatus

Null for an account connected by key; charging is blocked until approved

string
nullable
Allowed values: analysis documents approved rejected
onboardingUrl

Where the account holder sends the pending documents

string
nullable
accountCreationAvailable

Only when disconnected: whether an Asaas account can be opened from here

boolean
externalCharges

Tracking of charges created straight in Asaas

object
enabled
required
boolean
channelId
required

Official WhatsApp number that messages the customers of these charges

string
nullable
dealMode
required
string
Allowed values: none create link_open
pipelineId
required
string
nullable
stageId
required
string
nullable
customerGroup
required
string
nullable
minValueCents
required
number
nullable
methods
required
Array<string>
Allowed values: pix boleto card
ignoreSubscriptions
required
boolean

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