# Use Catalogs In-Game

### List Catalogs

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

```csharp
LootLockerSDKManager.ListCatalogs((response) =>
{
    if(!response.success)
    {
        Debug.Log("error: " + response.errorData.message);
        Debug.Log("request ID: " + response.errorData.request_id);
        return;
    }

});
```

To see what data gets returned, please refer to our [Reference Documentation](https://ref.lootlocker.com/game-api/#list-catalogs-for-game).
{% endtab %}

{% tab title="Unreal" %}

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-689306a05dc306ae52fdae87d8fd1c4510793ec9%2Fimage.png?alt=media" alt=""><figcaption><p><a href="https://blueprintue.com/blueprint/hu44-0v2/">Blueprint example of listing catalogs available in your game</a></p></figcaption></figure>
{% endtab %}
{% endtabs %}

### List Catalog Items

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

```csharp
LootLockerSDKManager.ListCatalogItems(catalogKey, 10, "", (response) =>
{
    if(!response.success)
    {
        Debug.Log("error: " + response.errorData.message);
        Debug.Log("request ID: " + response.errorData.request_id);
        return;
    }

});
```

To see what data gets returned, please refer to our [Reference Documentation](https://ref.lootlocker.com/game-api/#list-catalog-items-by-key).
{% endtab %}

{% tab title="Unreal" %}

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-6b05b5888ba969d2933535b488a930c6761c34ae%2Fimage.png?alt=media" alt=""><figcaption><p><a href="https://blueprintue.com/blueprint/y6kzftl-/">Blueprint example of getting catalog items</a></p></figcaption></figure>
{% endtab %}
{% endtabs %}

### Buy Catalog Items

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

```csharp
string walletID = "";
LootLockerCatalogItemAndQuantityPair[] items = { };

LootLockerSDKManager.LootLockerPurchaseCatalogItems(walletID, items, (response) =>
{
    if(!response.success)
    {
        Debug.Log("error: " + response.errorData.message);
        Debug.Log("request ID: " + response.errorData.request_id);
        return;
    }

});
```

To see what data gets returned, please refer to our [Reference Documentation](https://ref.lootlocker.com/game-api/#make-a-purchase-in-game-only).
{% endtab %}

{% tab title="Unreal" %}

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-2d3b1156cafc242f0fd9178ff6a7d3022e621c7d%2Fimage.png?alt=media" alt=""><figcaption><p><a href="https://blueprintue.com/blueprint/9zeed0-8/">Blueprint example of buying catalog items</a></p></figcaption></figure>
{% endtab %}
{% endtabs %}
