# SL name reservation API: request and certificate

URL: https://melso.ai/en/blog/sl-name-reservation-api
Published: 2026-11-15 · Updated: 2026-11-15

How Melso's SL name reservation API works: case details, staff permissions, spending limits, tracking and the certificate from Spain's Registro Mercantil Central.

This **SL name reservation API** guide describes Melso's internal staff workflow for a paid formation case. It explains the saved details the request uses, how to check payment and what to verify before treating the certificate as stored in the case.

> [!RESUMEN]
> - Propose up to five names in the order saved in the formation case.
> - The endpoint requires Melso staff access and a configured integration.
> - The spending limit and the confirmed payment are separate figures.
> - The issued certificate establishes the reservation; payment has its own evidence.

## What you receive when you request a company name

The company name, or denominación social, identifies the legal entity. Before preparing the incorporation deed for a Spanish limited company, known as an SL, you need to know which name the Registro Mercantil Central, or RMC, has accepted. The negative name certificate confirms that the chosen name is not already registered under the Registry's checks. The document must name the application's beneficiary.

The [RMC's guidance](https://www.rmc.es/DenominacionesSociales.aspx) allows up to five proposals in order of preference and requires you to identify a founder or promoter. A preliminary availability search is for information only. The Registry explains that its result does not bind the registrar's later assessment of the application.

This article focuses on that first document. For the stages that follow and the scope of the service, read about [forming an S.L. with Melso](/en/tramites/constituir-sl).

## Who can use this endpoint

The route belongs to Melso. The RMC receives and assesses the application through its own procedure; Melso coordinates submission, authorised payment and document retrieval. You can use the [official company name procedures](https://www.rmc.es/IntroDenominaciones.aspx) if you prefer to handle the application through the Registry's channel.

Access is restricted to staff with permissions in Melso's System gestoría, its internal professional practice. It requires an application session and a company formation case within that practice's scope. An integration key for the `/v1` API or an assistant's token does not grant those permissions.

Before building an integration, confirm with the team that the service is enabled and the company card is configured. A documented route or deployed code does not establish that the integration is active in production. The examples below describe the contract for the staff workflow.

## What must already be prepared in the case

The request uses a paid SL formation case. The case must remain at a stage that permits the certificate to be recorded, with no existing name certificate or name reservation payment already entered. The server also checks that the service invoice has not started, because that would prevent adding this cost to the case.

The names you send must match those saved in the paid formation case, including their order. Agreeing the list before paying for the service avoids unnecessary corrections. If a name needs changing afterwards, the case must be reviewed: editing the JSON for an existing operation does not replace its application.

The beneficiary is selected from the saved shareholders. This workflow accepts an individual with a full name, a valid DNI or NIE identification number, a telephone number and a complete address in Spain. If there is more than one shareholder, select their position using `beneficiary_partner_index`. The index starts at zero: `0` selects the first shareholder.

You do not send those personal details again in this request body. The server loads them from the case and preserves the application it will process. The company type also comes from the saved details; do not add suffix, card or credential fields that the contract does not accept. The [technical guide](https://docs.melso.ai/api/guides/rmc-name-certificate) explains the conditions and errors.

![The case stores candidate names and the beneficiary. The request respects the spending limit, tracking retrieves the documents, and the certificate is linked to the case.](https://storage.googleapis.com/albert-489117-melso-blog-media/diagrams/en/nombre-sl-api/1-steps-25defa8a1f.png?w=1600&h=664&m=1&mw=1080&mh=1401 "From candidate names to a document")

## How to submit the API request

The main operation uses this route:

```http
POST /api/gestoria/gestiones/{case_id}/name-certificate
Content-Type: application/json
```

`{case_id}` is the case's UUID, not its visible `G-…` number. Authentication and the selection of the professional scope must come from an authorised application session. The example omits credentials: do not copy cookies, tokens or card details into a tutorial or keep them alongside source code.

Here is an illustrative body. Both fictional names must already be saved in the example formation case:

```json
{
  "names": ["Ejemplo Sierra Digital", "Ejemplo Sierra Estudio"],
  "beneficiary_partner_index": 0,
  "max_amount_cents": 4000,
  "idempotency_key": "reserva-nombre-ejemplo-1"
}
```

| Field | What it expresses | What to check |
| --- | --- | --- |
| `names` | Ordered list of candidate names | Between one and five, up to 120 characters each; unique ignoring case, with normalised whitespace and in the saved order |
| `beneficiary_partner_index` | Index into the case's saved shareholder list | Starts at zero; may be omitted only with a single shareholder |
| `max_amount_cents` | Authorised spending limit in euro cents | Required: an integer between 1 and `4000` |
| `idempotency_key` | Request identifier | Required: 1–128 characters; an ASCII letter or digit first, then letters, digits or `._:-` |

This POST can make a real company-card payment up to `max_amount_cents`. Execute it only to process the authorised case; GET and `/refresh` never pay.

From an authorised staff environment, you can send that JSON saved in `request.json` as follows:

```bash
curl --request POST \
  "$MELSO_BASE_URL/api/gestoria/gestiones/$CASE_ID/name-certificate" \
  --header "Authorization: Bearer $APP_SESSION_TOKEN" \
  --header "X-Workspace-ID: $SYSTEM_GESTORIA_ID" \
  --header 'Content-Type: application/json' \
  --data @request.json
```

The variables stand for the application URL, the case UUID, an authorised session and the System gestoría's UUID. Use the session only within your authorised environment. It is not a public integration key. If you authenticate with cookies instead of the session header, POST requests also need the CSRF token bound to that session, as the reference explains.

The server checks the spending limit before paying and uses the card configured by Melso. The caller cannot select a card by sending its identifier in this request. The response does not expose the RMC recovery key, banking details or the private payment form session.

Alongside the length limit in the table, the idempotency key must match the character pattern `^[A-Za-z0-9][A-Za-z0-9._:-]*$`. A readable key like the one in the example helps relate your system's request to its result. Keep the shareholder's name, DNI and other personal details out of the key.

## How to interpret the status and payment figures

A successful HTTP response is not enough to conclude that the name has been reserved. The response's `name_certificate` object reports the operation's state and distinguishes a pending quote from confirmed payment. Read both before presenting an outcome to the user or updating your own records.

| Field or state | What you can conclude |
| --- | --- |
| `quoted_amount_cents` | A quote exists; it is not yet payment evidence |
| `payment_confirmed = true` | Payment for this operation has been verified |
| `amount_cents` | The confirmed amount, separate from the spending limit |
| `preparing` | The application is being prepared; this does not establish payment |
| `paying` | A payment attempt or continuation has been reserved; this does not yet confirm a charge |
| `submitted` | The application has been submitted; the certificate may still be pending |
| `issued` | The certificate has been issued; check separately whether it has been stored |
| `rejected` | Preparation or the provider rejected the attempt; inspect `error_code` and the permitted recovery |
| `unknown` or `requires_action` | Further checking or intervention is needed |

Before reporting that the PDF is stored, check that the state is `issued`, that `certificate_attachment_id` is present and that `error_code` is empty. `issued` alone is not enough; if evidence is missing, retrieve the documents with `/refresh` on the same operation.

The response includes a version and any available references. Keep the operation identifier, its version and the document identifiers. These links let you retrieve the result without rebuilding the application from scratch.

HTTP `202` may accompany a pending or uncertain result, or one that needs action. HTTP `200` can return an existing operation, an issued result or a rejection. Your integration must therefore inspect the state and reported error as well as the HTTP status code.

### Example of a spending limit and a charge

Suppose the authorised limit is `4000` cents, or **€40**. If the quote and confirmed payment in this example were `3000` cents, the evidenced charge would be **€30**. The remaining **€10** would be unused room within that authorisation, not another item charged to the customer. This is an arithmetic example, not an RMC price.

Do not report the maximum as money spent or label the quoted amount as paid. Reconcile the Registry's invoice and the payment evidence with the operation. The price of the complete formation service and this registry expense cover different things.

## How to track the request and retrieve the certificate

Read the information already stored by calling:

```http
GET /api/gestoria/gestiones/{case_id}/name-certificate
```

To consult the provider and update that same application's result, use:

```http
POST /api/gestoria/gestiones/{case_id}/name-certificate/refresh
```

Reading the saved operation and refreshing it have different purposes. The first reads Melso's record. The second can retrieve information and documents from the RMC. Refresh needs no request body and does not submit a card or start another payment.

Once available and checked by the workflow, the certificate and invoice are linked to the case. The response identifies the attachments as `certificate_attachment_id` and `invoice_attachment_id`; a recorded disbursement has a `disbursement_id`. A disbursement, or suplido, records the third-party expense paid for the case. Open the files in the case's documents using the usual permissions, or download them through the same authenticated API using the relevant attachment identifier:

```http
GET /api/gestoria/gestiones/{case_id}/documents/{attachment_id}/download?dl=1
```

The response contains the PDF. It is not a public document URL and does not carry the Registry's credentials.

The milestone records the granted name, issue date and reference. Check the certificate's exact company name before using it in the deed. The document and invoice contents are checked against the application; that check must not be described as cryptographic validation of the PDF signature.

![The quote shows the expected cost, confirmation establishes payment and the certificate identifies the granted company name. Formation continues after the reservation.](https://storage.googleapis.com/albert-489117-melso-blog-media/diagrams/en/nombre-sl-api/2-steps-a9dadb74b9.png?w=1600&h=664&m=1&mw=1080&mh=1200 "Check each piece of evidence")

## What to do after a timeout or another problem

If the connection drops during payment, read the original operation. A timeout leaves an uncertain answer; it does not establish that no charge occurred. A temporarily missing invoice or a card transaction that is not yet visible is not, on its own, a reason to pay again.

Repeating the request with the same data returns the existing operation, even if you change the idempotency key. Changing the candidates, beneficiary or spending limit for an operation that already exists returns HTTP `409`, even when its state is `rejected`. This protection prevents an application retry from buying another certificate for the same case.

Recovery routes extend `/api/gestoria/gestiones/{case_id}/name-certificate`. Start with GET to read the current version and the availability flags that the server calculates from its private evidence.

| Route | Required prior evidence | What it permits |
| --- | --- | --- |
| POST `/resume` | `prepayment_verified = true` and no card attempt started | Continue the original preparation; it may make the first payment |
| POST `/retry-payment` | `payment_retry_available = true` and a SIS0081 rejection supported by sealed evidence | One second card submission for the same order; not recovery of an uncertain result |
| POST `/continue-payment` | `payment_continuation_available = true` and a verified pending phase | Continue 3DS Method or select the original euro amount without resubmitting the card |

All three require `expected_version`. If GET returned version `7`, the body would be:

```json
{
  "expected_version": 7
}
```

Always use the version you just read, not the example number. A stale version or an operation already in progress is refused; the flags do not replace the server's checks. If the result is `unknown` after a card attempt, use GET and `/refresh`. Do not build a loop that calls every recovery route on any error: use only the action allowed for that state.

If staff manually recorded the name certificate expense after the operation started, the team must reconcile it before automatic document storage can proceed. Matching amounts do not establish that two invoices are the same document. Check the reference and preserve the history of what has already been paid.

## Validity, email and common mistakes

The [Reglamento del Registro Mercantil](https://www.boe.es/buscar/act.php?id=BOE-A-1996-17533), Spain's commercial registry regulations, distinguishes two periods. The negative name certificate is valid for **three months**, while the temporary name reservation lasts **six months**, both counted from the certificate's issue date. Check the date before signing and use the [RMC renewal procedure](https://www.rmc.es/IntroDenominaciones.aspx) when needed.

The endpoint's automatic document storage does not itself email the customer. A staff message with a file does trigger an attempt to send a notice linking to the case. If your process needs to tell the customer that the certificate has arrived, that communication must form part of the team's work.

Avoid these mistakes when preparing the integration:

- Confusing an availability search with a name that has been granted.
- Using an integration key where an authorised staff session is required.
- Sending names that differ from the saved list or choosing the wrong beneficiary.
- Treating an authorised spending limit as spent before checking payment.
- Interpreting `submitted` as proof that the company has been incorporated.
- Paying again because the response was slow or a document is still missing.

A company name certificate and a [digital certificate](/en/blog/digital-certificate-spain) serve different purposes. A reserved name does not, by itself, provide electronic identification for the future company or establish that the company has been registered.

## How Melso helps

Melso, your online gestoría with an AI agent and human professionals behind it, coordinates this step within its [SL formation service](/en/tramites/constituir-sl). The team reviews the case and the documents needed to continue forming the company. You can [get started with Melso](https://melso.ai) or **chat on WhatsApp** to prepare your case; technical access to the endpoint requires the permissions explained in this guide.

> This article is for information only and does not replace professional advice for your case. Last reviewed: 15 November 2026.

## Frequently asked questions

### Can I request an SL name through Melso's API?

The documented endpoint lets authorised Melso staff request a name for a company formation that has already been paid for. It requires a staff session and a configured integration. The documentation explains that professional workflow; it does not offer a public key that lets any account reserve company names directly.

### Does this API belong to the Registro Mercantil Central?

The route described here belongs to Melso and coordinates an application to the Registro Mercantil Central. The RMC assesses the proposed name and issues the certificate. Its official procedures remain available on its website. Melso's integration should not be presented as an official Registry service or a public RMC API.

### How many names can an application include?

You can propose between one and five names, listed in order of preference. In this workflow they must match the names saved in the paid company formation case, in exactly the same order. The server rejects duplicates and does not let you change an existing operation's list to obtain another reservation.

### What does max_amount_cents set to 4000 mean?

It means you authorise spending up to €40 for that operation. This is a technical limit in the workflow, not a fixed Registry fee or the price of the complete company formation service. The confirmed charge comes from the payment result and should be checked against the corresponding invoice.

### Does an availability search reserve the name?

An initial availability search is for information only and does not bind the registrar's later assessment. You need the relevant certificate to use the name in the incorporation deed. In this integration, a pending response or a quote does not replace the certificate issued by the Registro Mercantil Central.

### What should I do if the request is slow or the connection drops?

Read the existing operation and use the documented tracking route before attempting recovery. A timeout does not prove that payment failed. Changing the idempotency key does not create a second operation for the same case; payment recovery requires specific states and evidence that the server checks before allowing it.

### How long is the company name certificate valid?

The Reglamento del Registro Mercantil distinguishes the negative name certificate's three-month validity from the six-month temporary name reservation. Both periods run from the certificate's issue date. Before signing, check whether renewal is needed. Reserving the name does not, by itself, establish that the company has been incorporated.

### Is an email sent when the certificate arrives?

The endpoint's automatic document storage does not itself send the customer an email. A staff message with a file does trigger an attempt to send a notice linking to the case. Adding an invoice as a disbursement or updating the name certificate milestone is not the same as sending that message.

## Sources

- [Company names: beneficiary, preferences and validity](https://www.rmc.es/DenominacionesSociales.aspx), Registro Mercantil Central, accessed 2026-11-15
- [Company name applications, searches, tracking and downloads](https://www.rmc.es/IntroDenominaciones.aspx), Registro Mercantil Central, accessed 2026-11-15
- [Reglamento del Registro Mercantil, articles 412 to 415](https://www.boe.es/buscar/act.php?id=BOE-A-1996-17533), BOE, accessed 2026-11-15
- [Melso company name certificate API guide](https://docs.melso.ai/api/guides/rmc-name-certificate), Melso, accessed 2026-11-15
