Criar Conta PJ
POST: https://sandbox.codetech.one/v2/api/baas-onboarding/account/business/create
Body Params
{
"clientCode": "123456",
"accountOnboardingType": "BANKACCOUNT",
"documentNumber": "56461227000199",
"contactNumber": "+551239215555",
"businessEmail": "[email protected]",
"businessName": "IP Pagamentos",
"tradingName": "IPay",
"owner": [
{
"documentNumber": "56461227123",
"fullName": "Carlos Henrique da Silva",
"phoneNumber": "+5512981175554",
"email": "[email protected]",
"motherName": "Celia Regina",
"socialName": "Carlos",
"birthDate": "31-12-1984",
"address": {
"postalCode": "12211400",
"street": "Rua das Andorinhas",
"number": "313",
"addressComplement": "Em frente ao parque.",
"neighborhood": "Rua das Maravilhas",
"city": "São Paulo",
"state": "SP",
"longitude": "-46.6488",
"latitude": "-23.6288"
},
"isPoliticallyExposedPerson": false
}
],
"businessAddress": {
"postalCode": "12211400",
"street": "Rua das Andorinhas",
"number": "313",
"addressComplement": "Em frente ao parque.",
"neighborhood": "Rua das Maravilhas",
"city": "São Paulo",
"state": "SP",
"longitude": "-46.6488",
"latitude": "-23.6288"
},
"cadastraChavePix": false
}curl --request POST \
--url https://sandbox.codetech.one/v2/api/baas-onboarding/account/person/create \
--header 'accept: application/json' \
--header 'authorization: Bearer {{token}}' \
--header 'content-type: application/json' \
--data '
{
"clientCode": "123456",
"accountOnboardingType": "BANKACCOUNT",
"documentNumber": "56461227000199",
"contactNumber": "+551239215555",
"businessEmail": "[email protected]",
"businessName": "IP Pagamentos",
"tradingName": "IPay",
"owner": [
{
"documentNumber": "56461227123",
"fullName": "Carlos Henrique da Silva",
"phoneNumber": "+5512981175554",
"email": "[email protected]",
"motherName": "Celia Regina",
"socialName": "Carlos",
"birthDate": "31-12-1984",
"address": {
"postalCode": "12211400",
"street": "Rua das Andorinhas",
"number": "313",
"addressComplement": "Em frente ao parque.",
"neighborhood": "Rua das Maravilhas",
"city": "São Paulo",
"state": "SP",
"longitude": "-46.6488",
"latitude": "-23.6288"
},
"isPoliticallyExposedPerson": false
}
],
"businessAddress": {
"postalCode": "12211400",
"street": "Rua das Andorinhas",
"number": "313",
"addressComplement": "Em frente ao parque.",
"neighborhood": "Rua das Maravilhas",
"city": "São Paulo",
"state": "SP",
"longitude": "-46.6488",
"latitude": "-23.6288"
},
"cadastraChavePix": false
}'Exemplo de retorno
Sucesso 200
{
"version": "1.0.0",
"status": "PROCESSANDO",
"body": {
"onBoardingId": "39c8e322-9192-498d-947e-2daa4dfc749e"
}
}Error 400
{
"version": "1.0.0",
"status": "ERROR",
"error": {
"errorCode": "001",
"message": "ClientCode é obrigatório"
}
}Webhook de retorno
{
"entity": "onboarding-create",
"createTimestamp": "2022-11-04T10:35:16.0511474",
"status": "CONFIRMED",
"body": {
"account": {
"branch": "0001",
"account": "30053912934",
"name": "Ms. Rodolfo Marvin",
"documentNumber": "86913161280"
},
"onboardingId": "5e39442d-270f-4f9a-b752-9c08456c6e14",
"clientCode": "4f8ff32f-2d1f-4c28-b316-8020b3d13d43",
"createDate": "2022-11-04T10:35:16.0511474"
}
}Last updated