> For the complete documentation index, see [llms.txt](https://docs.onramp.money/onramp-whitelabel-unlisted/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onramp.money/onramp-whitelabel-unlisted/coin-network-and-fiat-configuration/all-config-mapping.md).

# All Config Mapping

Retrieves the configuration that maps fiat types, coin symbols, and chain symbols to their corresponding IDs

{% hint style="info" %}
**Note:**  This API allows a maximum of 10 requests per minute and requires authentication.
{% endhint %}

### Returns the all Config mapping <a href="#returns-the-all-config-mapping" id="returns-the-all-config-mapping"></a>

<mark style="color:yellow;">`POST`</mark> `https://api.onramp.money/onramp/api/v2/common/transaction/allConfigMapping`&#x20;

{% tabs %}
{% tab title="200: OK Success" %}

```json
{
  "status":1,
  "code":200,
  "data":{
    "fiatSymbolMapping":{
      "INR":1,
      "TRY":2,
      "AED":3,
      "MXN":4,
      "VND":5,
      "NGN":6,
      "BRL":7,
      "PEN":8,
      "COP":9,
      "CLP":10,
    },
    "coinSymbolMapping":{
      "usdv":"557",
      "usdm":"568",
      "farms":"578",
      "jlt":614,
      "rbtc":697,
      "csl":701,
    },
    "chainSymbolMapping":{
      "vyvo":10205,
      "rbtc":10188,
      "erc20":0,
      "bep20":1,
      "trc20":2,
      "matic20":3,
      "spl":4,
      "bep2":5,
    }
  }
}

```

{% endtab %}

{% tab title="500: Internal Server Error Internal Server Error" %}

```json
{
    "status": 0,
    "code": 500,
    "error": "Internal Server Error."
}

```

{% endtab %}
{% endtabs %}

## Sample Request

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

```javascript
const CryptoJS = require('crypto-js');
const axios = require('axios');

async function fetchAllConfigMapping() {
  try {
    const body = {};
    const timestamp = Date.now();
    let payload = {
      timestamp,
      body
    };
    const apiKey = 'API_KEY', apiSecret = 'API_SECRET';
    payload = Buffer.from(JSON.stringify(payload)).toString('base64');
    const signature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(payload, apiSecret));
    const options = {
      url: 'https://api.onramp.money/onramp/api/v2/common/transaction/allConfigMapping',
      method: 'POST',
      headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json;charset=UTF-8',
        'X-ONRAMP-SIGNATURE': signature,
        'X-ONRAMP-APIKEY': apiKey,
        'X-ONRAMP-PAYLOAD': payload
      },
      data: body
    };
    let data = await axios(options);
    console.log(data?.data);
  } catch (error) {
    console.log('Error fetching config mapping:', error?.response?.data || error.message || error);
  }
}
fetchAllConfigMapping();
```

{% endtab %}

{% tab title="Python" %}

```python
import json
import requests
import hashlib
import hmac
from base64 import b64encode
from datetime import datetime

def all_config_mapping():
    try:
        body = {}
        payload = {
            "timestamp": int(datetime.now().timestamp() * 1000),
            "body": body
        }
        api_key = 'API_KEY'
        api_secret = 'API_SECRET'
        
        payload_base64 = b64encode(json.dumps(payload).encode()).decode()
        signature = hmac.new(api_secret.encode(), payload_base64.encode(), hashlib.sha512).hexdigest()

        url = 'https://api.onramp.money/onramp/api/v2/common/transaction/allConfigMapping'
        headers = {
            'Accept': 'application/json',
            'Content-Type': 'application/json;charset=UTF-8',
            'X-ONRAMP-SIGNATURE': signature,
            'X-ONRAMP-APIKEY': api_key,
            'X-ONRAMP-PAYLOAD': payload_base64
        }
        
        options = {
            'url': url,
            'method': 'POST',
            'headers': headers,
            'json': body
        }
        
        response = requests.post(**options)
        print(response.json())
        
    except Exception as error:
        print(error)

all_config_mapping()
```

{% endtab %}
{% endtabs %}

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

```json
{
  "status":1,
  "code":200,
  "data":{
    "fiatSymbolMapping":{
      "INR":1,
      "TRY":2,
      "AED":3,
      "MXN":4,
      "VND":5,
      "NGN":6,
      "BRL":7,
      "PEN":8,
      "COP":9,
      "CLP":10,
    },
    "coinSymbolMapping":{
      "usdv":"557",
      "usdm":"568",
      "farms":"578",
      "jlt":614,
      "rbtc":697,
      "csl":701,
    },
    "chainSymbolMapping":{
      "vyvo":10205,
      "rbtc":10188,
      "erc20":0,
      "bep20":1,
      "trc20":2,
      "matic20":3,
      "spl":4,
      "bep2":5,
    }
  }
}

```

{% endtab %}

{% tab title="Explanation" %}

* status -> 0 is for unsuccessful request, 1 is for a successful one.
* fiatSymbolMapping -> json containing all fiatSymbol to fiatId mapping.
* coinSymbolMapping -> json containing all coinSymbol to coinId mapping.
* chainSymbolMapping -> json containing all chainSymbol to chainId mapping.
  {% endtab %}
  {% endtabs %}
