Skip to content

SL name reservation API: request and certificate

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

By Albert SalguedaReviewed by Equipo Melso, Revisión editorialPublished 11 min read
A company name certificate alongside the steps for requesting, tracking and storing it.

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.

In short

  • 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 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.

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 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 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.(opens the image in a new tab)
From candidate names to a document

How to submit the API request

The main operation uses this route:

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:

{
  "names": ["Ejemplo Sierra Digital", "Ejemplo Sierra Estudio"],
  "beneficiary_partner_index": 0,
  "max_amount_cents": 4000,
  "idempotency_key": "reserva-nombre-ejemplo-1"
}
FieldWhat it expressesWhat to check
namesOrdered list of candidate namesBetween one and five, up to 120 characters each; unique ignoring case, with normalised whitespace and in the saved order
beneficiary_partner_indexIndex into the case's saved shareholder listStarts at zero; may be omitted only with a single shareholder
max_amount_centsAuthorised spending limit in euro centsRequired: an integer between 1 and 4000
idempotency_keyRequest identifierRequired: 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:

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 stateWhat you can conclude
quoted_amount_centsA quote exists; it is not yet payment evidence
payment_confirmed = truePayment for this operation has been verified
amount_centsThe confirmed amount, separate from the spending limit
preparingThe application is being prepared; this does not establish payment
payingA payment attempt or continuation has been reserved; this does not yet confirm a charge
submittedThe application has been submitted; the certificate may still be pending
issuedThe certificate has been issued; check separately whether it has been stored
rejectedPreparation or the provider rejected the attempt; inspect error_code and the permitted recovery
unknown or requires_actionFurther 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:

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

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

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:

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.(opens the image in a new tab)
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.

RouteRequired prior evidenceWhat it permits
POST /resumeprepayment_verified = true and no card attempt startedContinue the original preparation; it may make the first payment
POST /retry-paymentpayment_retry_available = true and a SIS0081 rejection supported by sealed evidenceOne second card submission for the same order; not recovery of an uncertain result
POST /continue-paymentpayment_continuation_available = true and a verified pending phaseContinue 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:

{
  "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, 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 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 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. The team reviews the case and the documents needed to continue forming the company. You can get started with Melso 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.

Sources

  1. Company names: beneficiary, preferences and validity, Registro Mercantil Central (accessed )
  2. Company name applications, searches, tracking and downloads, Registro Mercantil Central (accessed )
  3. Reglamento del Registro Mercantil, articles 412 to 415, BOE (accessed )
  4. Melso company name certificate API guide, Melso (accessed )
Back to top

Frequently asked questions. What people ask us most.

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.

Less paperwork.
More time for you.

Start with Melso or tell us about your case on WhatsApp.

Chat on WhatsApp (opens in a new tab)
  • No lock-in
  • Real professionals
  • Mistakes covered