# Retrieve a specialized services contract

`GET https://api.fiscalisto.com/v1/repse_contracts/{id}`

A contract with its client, work site and workers.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | The object's id. |

## With the TypeScript SDK

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const repseContract = await fiscalisto.repseContracts.get("rpc_OufpKqnrvx9p4Hc8Lw2Tn6Vq0aRzXs3M1d");
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

repse_contract = fiscalisto.repse_contracts.get("rpc_OufpKqnrvx9p4Hc8Lw2Tn6Vq0aRzXs3M1d")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$repseContract = $fiscalisto->repseContracts->get('rpc_OufpKqnrvx9p4Hc8Lw2Tn6Vq0aRzXs3M1d');
```

## With the .NET SDK

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var repseContract = await fiscalisto.RepseContracts.GetAsync("rpc_OufpKqnrvx9p4Hc8Lw2Tn6Vq0aRzXs3M1d");
```

## With the Go SDK

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	repseContract, err := client.RepseContracts.Get(ctx, "rpc_OufpKqnrvx9p4Hc8Lw2Tn6Vq0aRzXs3M1d")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(repseContract.ID)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var repseContract = fiscalisto.repseContracts().get("rpc_OufpKqnrvx9p4Hc8Lw2Tn6Vq0aRzXs3M1d");
System.out.println(repseContract.getId());
```

## Response 200

OK.

A `RepseContract` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"repse_contract"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer (iss_…). |
| `number` | string | yes | Contract number (digits, up to 20). |
| `kind` | string | yes | Contract type. |
| `contract_object` | string | yes | Purpose of the contract. |
| `service` | string | yes | The specialized service or work registered in REPSE that it covers. |
| `amount` | number | yes | Agreed amount, in pesos. |
| `start_date` | string | yes | Start of its term (YYYY-MM-DD). |
| `end_date` | string or null | yes | End date, or null if open-ended. |
| `estimated_workers` | integer | yes | Estimated monthly number of workers it provides. (from -9007199254740991 to 9007199254740991) |
| `client_tax_id` | string | yes | The client's RFC (the beneficiary). |
| `client_name` | string | yes | The client's legal name. |
| `client_employer_registration` | string or null | yes | The client's employer registration, or null if none. |
| `client_address` | object | yes | The client's tax address. |
| `client_address.street` | string | yes | Street. |
| `client_address.exterior` | string or null | yes | Exterior number. |
| `client_address.interior` | string or null | yes | Interior number. |
| `client_address.neighborhood` | string or null | yes | Neighborhood (colonia). |
| `client_address.zip` | string | yes | Postal code. |
| `client_address.municipality` | string | yes | Municipality or territorial demarcation. |
| `client_address.state` | string | yes | State (c_Estado). |
| `site_address` | object | yes | The work site where the people it provides work. |
| `site_address.street` | string | yes | Street. |
| `site_address.exterior` | string or null | yes | Exterior number. |
| `site_address.interior` | string or null | yes | Interior number. |
| `site_address.neighborhood` | string or null | yes | Neighborhood (colonia). |
| `site_address.zip` | string | yes | Postal code. |
| `site_address.municipality` | string | yes | Municipality or territorial demarcation. |
| `site_address.state` | string | yes | State (c_Estado). |
| `workers` | array of object | yes | Who works on the contract and since when. |
| `workers[].employee` | string | yes | The employee (emp_…). |
| `workers[].name` | string | yes | Its name. |
| `workers[].start_date` | string | yes | Since when they work on the contract (YYYY-MM-DD). |
| `workers[].end_date` | string or null | yes | Until when, or null while ongoing. |
| `created_at` | string (date-time) or null | yes | When it was created, ISO 8601 with Mexico City time (-06:00). |

```json
{
  "id": "rpc_OufpKqnrvx9p4Hc8Lw2Tn6Vq0aRzXs3M1d",
  "object": "repse_contract",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "number": "2026001",
  "kind": "Prestación de servicios especializados",
  "contract_object": "Mantenimiento de maquinaria de planta",
  "service": "Mantenimiento industrial",
  "amount": 1250000,
  "start_date": "2026-01-01",
  "end_date": null,
  "estimated_workers": 12,
  "client_tax_id": "ICV060329BY0",
  "client_name": "INDUSTRIAS DEL CENTRO",
  "client_employer_registration": "Y5412345109",
  "client_address": {
    "street": "Av. Constitución",
    "exterior": "400",
    "interior": "Piso 3",
    "neighborhood": "Centro",
    "zip": "64000",
    "municipality": "Monterrey",
    "state": "NLE"
  },
  "site_address": {
    "street": "Carretera a Saltillo",
    "exterior": "km 12",
    "interior": "",
    "neighborhood": "Parque Industrial Santa Catarina",
    "zip": "66350",
    "municipality": "Santa Catarina",
    "state": "NLE"
  },
  "workers": [
    {
      "employee": "emp_OufpKqnrvx9p7Gm2Kd9Rw4Tn1aZqXs6M3c",
      "name": "MARÍA PÉREZ LÓPEZ",
      "start_date": "2026-01-01",
      "end_date": null
    }
  ],
  "created_at": "2026-01-02T10:15:00-06:00"
}
```

## Errors

- `feature_not_in_plan` (403): Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.
- `issuer_archived` (400): The issuer is archived and no longer stamps. Its documents can still be read and canceled.
- `issuer_linked_empresa` (403): That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.
- `issuer_missing` (404): There is no such issuer in the account (or it belongs to the other mode).
- `issuer_not_allowed` (403): This key can't use that issuer.
- `issuer_required` (400): The account has several issuers and the request doesn't say which: send `issuer` (iss_…).
- `livemode_mismatch` (400): The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.
- `resource_missing` (404): There's no object with that id (or it belongs to another issuer or the other mode).

Plus those of any call (key, fields, limits): https://fiscalisto.com/en/docs/api/errores.md.
