# Padrón de constancia de inscripción

### Requisitos previos

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

* [Integrar Afip SDK en tu proyecto](https://docs.afipsdk.com/readme#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="https://4026677166-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVEAVwm5cCW83gSe7NH8Z%2Fuploads%2Fgit-blob-8b7c29ffa587dca49a93ee27570e2afa7f1568ac%2F2.png?alt=media" alt="Produccion" data-size="line">

Desarrollo <img src="https://4026677166-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVEAVwm5cCW83gSe7NH8Z%2Fuploads%2Fgit-blob-cc3f52a09854d4c2322a0916397f1160c70a8d07%2F2.png?alt=media" 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="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="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="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 %}
