Companies represent the legal entities that send invoices through Mandato. Each company has a VAT number, a country, and can have one or more connections to government e-invoicing systems.
You must create at least one company before submitting invoices.
"id" : " comp_a1b2c3d4e5f6 " ,
"name" : " TechVision SRL " ,
"vatNumber" : " RO12345678 " ,
"createdAt" : " 2025-01-10T09:00:00.000Z "
Field Type Description idstringUnique company identifier namestringLegal company name vatNumberstringVAT identification number (with country prefix) countrystringISO 3166-1 alpha-2 country code currencystringDefault currency (ISO 4217) isActivebooleanWhether the company is active createdAtstringISO 8601 creation timestamp
Registers a new company under your account. The VAT number format is validated against the country’s rules.
Field Type Required Description namestringYes Legal company name vatNumberstringYes VAT number with country prefix (e.g., RO12345678) countrystringYes ISO 3166-1 alpha-2 code (RO, IT, BE, PL, FR, DE) registrationNumberstringNo Trade register / company registration number addressobjectNo Company address (see below) currencystringNo Default currency (defaults to EUR) contactsobjectNo Contact details (see below)
Field Type Required Description streetstringNo Street address citystringNo City postalCodestringNo Postal code countrystringYes ISO 3166-1 alpha-2 country code stateOrProvincestringNo State, province, or county
Field Type Required Description emailstringNo Contact email address phonestringNo Contact phone number
curl -X POST https://api.getmandato.dev/v1/companies \
-H " Authorization: Bearer sk_test_your_key " \
-H " Content-Type: application/json " \
"name": "TechVision SRL",
"vatNumber": "RO12345678",
"registrationNumber": "J40/1234/2020",
"street": "Strada Exemplu 42",
"email": "billing@techvision.ro",
"id" : " comp_a1b2c3d4e5f6 " ,
"name" : " TechVision SRL " ,
"vatNumber" : " RO12345678 " ,
"createdAt" : " 2025-01-10T09:00:00.000Z "
Status Type Description 400validation_errorInvalid VAT number format, missing fields, etc. 403limit_exceededMaximum company limit reached for your plan
Returns all companies for your account.
curl https://api.getmandato.dev/v1/companies \
-H " Authorization: Bearer sk_test_your_key "
"id" : " comp_a1b2c3d4e5f6 " ,
"name" : " TechVision SRL " ,
"vatNumber" : " RO12345678 " ,
"createdAt" : " 2025-01-10T09:00:00.000Z "
"id" : " comp_f6e5d4c3b2a1 " ,
"name" : " TechVision Italia S.r.l. " ,
"vatNumber" : " IT12345678901 " ,
"createdAt" : " 2025-01-12T14:30:00.000Z "
Retrieves a single company by ID.
Parameter Type Description idstringCompany ID (e.g., comp_a1b2c3d4e5f6)
curl https://api.getmandato.dev/v1/companies/comp_a1b2c3d4e5f6 \
-H " Authorization: Bearer sk_test_your_key "
"id" : " comp_a1b2c3d4e5f6 " ,
"name" : " TechVision SRL " ,
"vatNumber" : " RO12345678 " ,
"createdAt" : " 2025-01-10T09:00:00.000Z "
Status Type Description 404not_foundCompany not found or belongs to a different account
Updates a company’s mutable fields. The vatNumber and country cannot be changed after creation — create a new company instead.
Parameter Type Description idstringCompany ID
All fields are optional. Only include the fields you want to update.
Field Type Description namestringUpdated company name addressobjectUpdated address currencystringUpdated default currency contactsobjectUpdated contact details
curl -X PATCH https://api.getmandato.dev/v1/companies/comp_a1b2c3d4e5f6 \
-H " Authorization: Bearer sk_test_your_key " \
-H " Content-Type: application/json " \
"name": "TechVision Romania SRL",
"email": "invoices@techvision.ro"
"id" : " comp_a1b2c3d4e5f6 " ,
"name" : " TechVision Romania SRL " ,
"vatNumber" : " RO12345678 " ,
"createdAt" : " 2025-01-10T09:00:00.000Z "
Status Type Description 400validation_errorInvalid field values 404not_foundCompany not found or belongs to a different account
Soft-deletes a company. The company is marked as inactive and can no longer be used for new invoices. Existing invoices are not affected.
Parameter Type Description idstringCompany ID
curl -X DELETE https://api.getmandato.dev/v1/companies/comp_a1b2c3d4e5f6 \
-H " Authorization: Bearer sk_test_your_key "
"id" : " comp_a1b2c3d4e5f6 " ,
Status Type Description 404not_foundCompany not found or belongs to a different account