Skip to main content
Use this guide when your customer’s business already exists: an S.L. with its CIF, or a self-employed person registered with the AEAT. For a business that does not exist yet, see Incorporations. Creating a company only opens its account in Melso. Nothing is filed and nobody is written to.

1. Create the company

Send a fresh Idempotency-Key per company. If the call times out, send it again with the same key and body: you get the same company back, with Idempotent-Replayed: true, never a second one.

The answer

Store company.id beside your own record. Every later call uses it. The company is created even when a fiscal field is refused: errors names each refused field and why, and every other field is saved.

Refusals

Nothing is created when the call answers:

2. Complete the fiscal profile

missing lists what Melso needs before it can do the company’s taxes. Send the fields with Update the fiscal profile, your partner key and the company’s id in the path. Only the fields you send change.
The answer carries the updated missing. The company is ready when missing is empty, and the company.ready event tells you so.
A self-employed person with registration_status: pendiente has no tax calendar until it becomes alta, even with an empty missing.

The fiscal profile

These fields shape every return Melso prepares. The reference lists their formats.

3. Add the certificate

Melso files with a digital certificate of the business. See Digital certificate.

Next