# Padrón de constancia de inscripción

### Requisitos previos

Para poder usar esta guía, primero necesitarás:

* [Integrar Afip SDK en tu proyecto](/readme.md#integracion)

***

La especificación de este Web Service se encuentra disponible en <https://www.afip.gob.ar/ws/WSCI/manual-ws-sr-ws-constancia-inscripcion-v3.4.pdf>

<details>

<summary>Identificador <kbd>ws_sr_constancia_inscripcion</kbd></summary>

Producción <img src="/files/7UHbWlGPqjSHgdX99lon" alt="Produccion" data-size="line">

Desarrollo <img src="/files/o1TNJr684jToMld2Bl23" alt="Desarrollo" data-size="original">

</details>

### **Obtener datos del contribuyente**

Nos devolverá un objeto con los detalles o `null` en caso de no existir en el padrón.

{% tabs %}
{% tab title="Node" %}

```js
// CUIT del contribuyente
const taxId = 20111111111;

const taxpayerDetails = await afip.RegisterInscriptionProof.getTaxpayerDetails(taxId);
```

{% endtab %}

{% tab title="PHP" %}

```php
// CUIT del contribuyente
$tax_id = 20111111111;

$taxpayer_details = $afip->RegisterInscriptionProof->GetTaxpayerDetails($tax_id); 
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
# CUIT del contribuyente
tax_id = 20111111111

taxpayer_details = afip.RegisterInscriptionProof.getTaxpayerDetails(tax_id)
```

{% endtab %}

{% tab title="Python" %}

```python
# CUIT del contribuyente
tax_id = 20111111111

taxpayer_details = afip.RegisterInscriptionProof.getTaxpayerDetails(tax_id)
```

{% endtab %}

{% tab title=".NET" %}

```csharp
// CUIT del contribuyente
long taxId = 20111111111;

var taxpayerDetails = await afip.RegisterInscriptionProof.GetTaxpayerDetailsAsync(taxId);
```

{% endtab %}

{% tab title="API" %}
**Endpoint**

<mark style="color:blue;">`POST`</mark> `https://app.afipsdk.com/api/v1/afip/requests`

**Ejemplo**

```json
{
    "environment": "dev",
    "method": "getPersona_v2",
    "wsid": "ws_sr_constancia_inscripcion",
    "params": {
        "token": "{{token}}",
        "sign": "{{sign}}",
        "cuitRepresentada": "20409378472",
        "idPersona" : 20111111111
    }
}
```

{% endtab %}
{% endtabs %}

### **Obtener datos de múltiples contribuyentes**

{% tabs %}
{% tab title="Node" %}

```js
// CUITs de los contribuyentes
const taxIds = [20111111111, 20111111112];

const taxpayersDetails = await afip.RegisterInscriptionProof.getTaxpayersDetails(taxIds);
```

{% endtab %}

{% tab title="PHP" %}

<pre class="language-php"><code class="lang-php"><strong>// CUITs de los contribuyentes
</strong>$tax_ids = Array(20111111111, 20111111112);

$taxpayers_details = $afip->RegisterInscriptionProof->GetTaxpayersDetails($tax_ids);
</code></pre>

{% endtab %}

{% tab title="Ruby" %}

```ruby
# CUITs de los contribuyentes
tax_ids = [20111111111, 20111111112]

taxpayers_details = afip.RegisterInscriptionProof.getTaxpayersDetails(tax_ids)
```

{% endtab %}

{% tab title="Python" %}

```python
# CUITs de los contribuyentes
tax_ids = [20111111111, 20111111112]

taxpayers_details = afip.RegisterInscriptionProof.getTaxpayersDetails(tax_ids)
```

{% endtab %}

{% tab title=".NET" %}

```csharp
// CUITs de los contribuyentes
long[] taxIds = [20111111111, 20111111112];

var taxpayersDetails = await afip.RegisterInscriptionProof.GetTaxpayersDetailsAsync(taxIds);
```

{% endtab %}

{% tab title="API" %}
**Endpoint**

<mark style="color:blue;">`POST`</mark> `https://app.afipsdk.com/api/v1/afip/requests`

**Ejemplo**

```json
{
    "environment": "dev",
    "method": "getPersonaList_v2",
    "wsid": "ws_sr_constancia_inscripcion",
    "params": {
        "token": "{{token}}",
        "sign": "{{sign}}",
        "cuitRepresentada": "20409378472",
        "idPersona" : [
            20111111111,
            20111111112
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### **Obtener estado del servidor**

{% hint style="warning" %}
No te confíes mucho de este método, ARCA siempre devuelve que esta todo bien incluso cuando hay algo fallando.
{% endhint %}

{% tabs %}
{% tab title="Node" %}

```js
const serverStatus = await afip.RegisterInscriptionProof.getServerStatus();

console.log('Este es el estado del servidor:');
console.log(serverStatus);
```

{% endtab %}

{% tab title="PHP" %}

```php
$server_status = $afip->RegisterInscriptionProof->GetServerStatus();

echo 'Este es el estado del servidor:';
echo '<pre>';
print_r($server_status);
echo '</pre>';
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
server_status = afip.RegisterInscriptionProof.getServerStatus

puts "Este es el estado del servidor:"
puts server_status
```

{% endtab %}

{% tab title="Python" %}

```python
server_status = afip.RegisterInscriptionProof.getServerStatus()

print("Este es el estado del servidor:")
print(server_status)
```

{% endtab %}

{% tab title=".NET" %}

```csharp
var serverStatus = await afip.RegisterInscriptionProof.GetServerStatusAsync();

Console.WriteLine('Este es el estado del servidor:');
Console.WriteLine(JsonSerializer.Serialize(serverStatus));
```

{% endtab %}

{% tab title="API" %}
**Endpoint**

<mark style="color:blue;">`POST`</mark> `https://app.afipsdk.com/api/v1/afip/requests`

**Ejemplo**

```json
{
    "environment": "dev",
    "method": "dummy",
    "wsid": "ws_sr_constancia_inscripcion",
    "params": {}
}
```

{% endtab %}
{% endtabs %}


---

# 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://docs.afipsdk.com/siguientes-pasos/web-services/padron-de-constancia-de-inscripcion.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.
