# Registro de usuario

Fenicio envía (por única vez) la información del usuario para su registro en el sistema del comercio y lo vincula a través del código que obtenga del mismo.

<table data-full-width="false"><thead><tr><th width="110">Método</th><th>URL</th></tr></thead><tbody><tr><td><code>POST</code></td><td><code>https://{ApiURL}/usuario</code></td></tr></tbody></table>

## Request

El *request* de Fenicio será un objeto [**Comprador**](https://guia.fenicio.help/developers/referencia/modelos-de-datos/integraciones#comprador).

### Ejemplo

```json
{
  "_idSolicitud": "200325120000-FNSHPUY-3c7621ed5a707177c1421cce79338668",
  "id": 123,
  "codigo": null,
  "email": "mail@dominio.com",
  "nombre": "Juan",
  "apellido": "Pérez",
  "telefono": "+59899123456",
  "genero": "M",
  "documento": {
    "numero": "41234568",
    "pais": "UY",
    "tipo": "DOCUMENTO_IDENTIDAD"
  },
  "extras": {
    "programaMillas": "LATAM"
  }
}
```

## Response

<table data-full-width="false"><thead><tr><th width="114.33333333333331">Clave</th><th width="111">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td><strong><code>codigo</code></strong></td><td>String(16)</td><td>Código identificador asignado al usuario en el sistema del comercio.</td></tr></tbody></table>

### Ejemplo <a href="#ejemplo-1" id="ejemplo-1"></a>

```json
{
  "status": "OK",
  "mensaje": "Usuario registrado.",
  "_idSolicitud": "200325120000-FNSHPUY-3c7621ed5a707177c1421cce79338668",
  "data": {
    "codigo": "abc12345"
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guia.fenicio.help/developers/integracion-de-comercios/servicios/registro-de-usuario.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
