Create a company - API

Create a company with POST /companies and Brinta stores its address and tax registrations. Sales, invoices and filings then read them from there, so you send them only once.

📘

Before you start

Your first company is created when you sign up, together with your user. Every company you add, by API or from the dashboard, is created after that one and sits under it. To use the API you also need your API token.

🖱️

Prefer the dashboard? You can create a company without the API from Company Management › Overview › Create Company. See Create a company.

📚


Send the request

curl -X POST https://api.brinta.com/companies/ \
  -H "Authorization: Bearer $BRINTA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Cliente BRINTA",
    "legal_name": "Cliente BRINTA S.A.",
    "type": "business",
    "role": "buyer",
    "currency_international": "USD",
    "external_id": "2704554392134",
    "address": {
      "address_line_1": "SAN M 8 74",
      "city": "Bogotá",
      "state": "CO-DC",
      "country": "CO"
    },
    "tax_registrations": [
      { "type": "NIT", "number": "9013834547", "level": "country", "location": "CO" }
    ]
  }'
FieldRequiredNotes
nameYesCommercial name. Send legal_name too for any company that appears on an invoice.
typeYesbusiness, person or government.
roleYesorganization (your own entities), buyer, supplier or partner.
currency_internationalYesUSD, EUR, GBP or CNY.
address.countryYesISO 3166-1 alpha-2. Send state as ISO 3166-2 (for example AR-B), plus city and postal_code when you have them.
tax_registrations[]For organizationEach entry needs type, number, level (country, state or municipality) and location. status is optional.
external_idNoThe company's ID in your system. You can use it instead of the Brinta id.
parent_idNoThe parent company. Defaults to your first company.

Valid values for type, role, and tax registration types and statuses are in Company Codes.


Use the company

The response returns the company's Brinta id. Reference the company with it, or with your external_id:

WhereBrinta idYour external_id
Seller on a saletransaction_owner_company_idtransaction_owner_company_external_id
Buyer on a salebuyer.company_idbuyer.company_external_id
Get the companyGET /companies/{id}GET /companies/{external_id}?use_external_id=true

By country


Did this page help you?