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 startYour 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.
API reference: Create a Company · Company Codes
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" }
]
}'| Field | Required | Notes |
|---|---|---|
name | Yes | Commercial name. Send legal_name too for any company that appears on an invoice. |
type | Yes | business, person or government. |
role | Yes | organization (your own entities), buyer, supplier or partner. |
currency_international | Yes | USD, EUR, GBP or CNY. |
address.country | Yes | ISO 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 organization | Each entry needs type, number, level (country, state or municipality) and location. status is optional. |
external_id | No | The company's ID in your system. You can use it instead of the Brinta id. |
parent_id | No | The 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:
| Where | Brinta id | Your external_id |
|---|---|---|
| Seller on a sale | transaction_owner_company_id | transaction_owner_company_external_id |
| Buyer on a sale | buyer.company_id | buyer.company_external_id |
| Get the company | GET /companies/{id} | GET /companies/{external_id}?use_external_id=true |
By country
Updated about 3 hours ago
Did this page help you?
