Quickstart

This quickstart guide walks you through the essential steps to setup and manage sub-accounts: creating a sub-account for your business, adding partners, and getting credentials.

Prerequisites

  • You need to have a main organization account. If you don't have one, contact us at [email protected]
  • Your main organization account should be verified and active

Steps

  1. Create a sub-accountOpen account for your business.

  2. Add a partnerAdd a partner to your account.

  3. Get credentialsGet credentials to use in your application.

Sub-accounts are accounts that are part of a main organization account. They are used to manage the operations of a specific business unit.

API Endpoint

POST https://api.sqala.tech/core/v1/sub-accounts

Request Body

FieldTypeRequiredDescription
namestringYesCompany trade name
legalNamestringYesCompany's legal name
taxIdstringYesCompany taxId (Brazilian CNPJ)
companyTypeenumNoCompany type (MEI, EMPRESARIO_INDIVIDUAL, EIRELLI, LIMITADA, SA)
websitestringYesCompany's website
telephonestringNoCompany's phone number
languagestringNoCompany's language locale (ISO 639-1), defaults to "en"
addressobjectYesCompany's address

Address Object

FieldTypeRequiredDescription
postalCodestringYesPostal code
statestringYesState
citystringYesCity
districtstringYesDistrict
streetstringYesStreet name
numberstringYesStreet number
complementstringNoAddress complement

Code Examples

curl -X POST https://api.sqala.tech/core/v1/sub-accounts \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Tech Solutions",
    "legalName": "Tech Solutions LTDA",
    "taxId": "12345678000199",
    "companyType": "LTDA",
    "website": "https://techsolutions.com",
    "telephone": "+5511999999999",
    "language": "en",
    "address": {
      "postalCode": "01234-567",
      "state": "SP",
      "city": "São Paulo",
      "district": "Centro",
      "street": "Avenida Paulista",
      "number": "1000",
      "complement": "Sala 123"
    }
  }'