# Look up a SAT catalog

`GET https://api.fiscalisto.com/v1/sat_catalogs/{name}`

product_keys, unit_keys and customs_tariffs (Comercio Exterior tariff codes, with their customs_unit) are searched with q (text or key). The others come whole: tax_systems, cfdi_uses, payment_forms, payment_methods, relationship_types, cancellation_motives, export_types, tax_objects, retention_codes.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `name` | path | yes | The catalog, one of: product_keys, unit_keys, customs_tariffs, tax_systems, cfdi_uses, payment_forms, payment_methods, relationship_types, cancellation_motives, export_types, tax_objects, retention_codes. |
| `q` | query |  | What to search for: words («consultoría») or a key. |
| `limit` | query |  | Up to how many, from 1 to 100 (searches). 20 by default. |

## With the TypeScript SDK

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

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

const { data } = await fiscalisto.satCatalogs.get("product_keys");
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

data = fiscalisto.sat_catalogs.get("product_keys")["data"]
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$data = $fiscalisto->satCatalogs->get('product_keys')['data'];
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var satCatalogEntryList = await fiscalisto.SatCatalogs.GetAsync("product_keys");
```

## 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()

	satCatalogEntryList, err := client.SatCatalogs.Get(ctx, "product_keys", nil)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *satCatalogEntryList)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

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

var satCatalogEntryList = fiscalisto.satCatalogs().get("product_keys");
System.out.println(satCatalogEntryList);
```

## Response 200

OK.

A `SatCatalogEntryList` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"list"` | yes | What kind of object it is («invoice», «customer»…). |
| `data` | array of object | yes | The objects on this page. |
| `data[].code` | string | yes | The code in the SAT catalog. |
| `data[].description` | string | yes | Its description in the catalog. |
| `has_more` | boolean | yes | true if there are more: request the next one with starting_after set to the id of the last one. |
| `url` | string | yes | This list's path. |

```json
{
  "object": "list",
  "data": [
    {
      "code": "80131500",
      "description": "Alquiler de propiedades",
      "similar_words": "renta"
    }
  ],
  "has_more": false,
  "url": "/v1/sat_catalogs/{name}"
}
```

## Errors

- `catalog_unavailable` (503): The SAT catalog didn't answer. Retry in a few seconds.
- `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.
