Tylt: API Documentation
  • Introduction
    • Introduction
    • Getting Started
    • Generating API Keys
    • Signing API Payloads
    • Important Concepts
    • Merchant Verification
    • Tylt Prime (UPI to Crypto Solution)
      • API Reference
        • Create a Pay-in Instance
        • Create a Pay-out Instance
        • Webhook for Tylt Prime
        • Get Instance Information
        • Get Pay-In Transaction Information
        • Get Pay-Out Transaction Information
    • Tylt Prime (UPI to Crypto Solution - H2H)
      • API Reference ( Pay-In)
        • Create a Pay-in Instance
        • Buyer Confirms Payment
        • Webhook for Tylt Prime
        • Get Instance Details
        • Get Pay-In Transaction Information
        • Get List of Fiat Currency and Supported Payment Methods
        • Get List of Supported Crypto Currency for Settlement
        • Get Conversion Rates
  • Tylt CPG (Crypto Payment Gateway)
    • API Reference
      • Accept Crypto Payments
        • Creating a Pay-in Request
        • Get Pay-In Transaction History
        • Get Pay-In Transaction Information
      • Make Crypto Payouts
        • Creating a Payout Request
        • Get Pay-Out Transaction History
        • Get Pay-Out Transaction Information
      • Supporting API's
        • Get Supported Crypto Currencies List
        • Get Supported Fiat Currencies
        • Get Account Balance / Holdings
        • Get Supported Crypto Networks
        • Supported Base Currency List
      • Webhook
    • Use Cases
      • E-commerce Flow
      • Withdrawal Flow
Powered by GitBook
On this page
  1. Introduction
  2. Tylt Prime (UPI to Crypto Solution - H2H)
  3. API Reference ( Pay-In)

Get List of Fiat Currency and Supported Payment Methods

This endpoint allows you to retrieve detailed information the list of supported Fiat Currency and the relevent payment methods that can be used on Tylt Prime.

Endpoint

GEThttps://api.tylt.money/h2h/in/upi/getPaymentMethods_p2pOnRamp

Request Headers

Name
Type
Example
Description

X-TLP-APIKEY

string

93ee3c5e133697251b5362bcf9cc8532476785t8768075616f58d88

Your Tylt API Key, used to identify your account in API requests.

X-TLP-SIGNATURE

string

d0afef3853dfc8489c8b9affa5825171fdd7y7685675e4966a05f66ed2b3eaf9462b3c9c0

HMAC SHA-256 signature generated using the API Secret Key to secure the request.

When using the API, ensure to include your API Key and generate the signature for the request payload using your API Secret. The tables provided above contain example values for illustration purposes only. Please refer to the code snippets for detailed instructions on how to sign the request and generate the signature properly.

Code Snippet

const axios = require('axios');
const crypto = require('crypto');


const url = `https://api.tylt.money/h2h/in/upi/getPaymentMethods_p2pOnRamp`;

const apiKey = 'your-api-key';
const secretKey = 'your-secret-key';

// Create HMAC SHA-256 signature (no params for this request)
const signature = crypto
  .createHmac('sha256', secretKey)
  .update('{}') // No parameters to sign
  .digest('hex');

const config = {
  method: 'get',
  url: url,
  headers: {
    'Content-Type': "application/json",
    'X-TLP-APIKEY': apiKey,
    'X-TLP-SIGNATURE': signature
  }
};

axios.request(config)
  .then((response) => {
    console.log(JSON.stringify(response.data));
  })
  .catch((error) => {
    console.error(error);
  });
import requests
import hmac
import hashlib
import json

# API Keys
api_key = "your-api-key"
api_secret = "your-secret-key"

# API Endpoint
url = "https://api.tylt.money/h2h/in/upi/getPaymentMethods_p2pOnRamp"

# Request Payload (Params)
params = {}

# Create the signature based on JSON body
def create_signature(api_secret, params_string):
    return hmac.new(
        api_secret.encode('utf-8'),
        params_string.encode('utf-8'),
        hashlib.sha256
    ).hexdigest()

# Convert payload to JSON string in a consistent format
params_string = json.dumps(params, separators=(',', ':'), ensure_ascii=False)
signature = create_signature(api_secret, params_string)

# Headers
headers = {
    'X-TLP-APIKEY': api_key,
    'X-TLP-SIGNATURE': signature,
    'Content-Type': 'application/json'
}

# Make the request (assuming it should be POST)
response = requests.post(url, headers=headers, data=params_string)

response = requests.get(url, headers=headers, params=params)
print(response.text)

Response

{
    "status": "success",
    "msg": "P2P OnRamp payment methods retrieved successfully.",
    "data": [
        {
            "currencySymbol": "INR",
            "currencyName": "Indian rupee",
            "precisionDecimal": 2,
            "paymentGroups": [
                {
                    "paymentGroup": "UPI Transfer"
                }
            ]
        }
    ]
}

Field Name

Type

Description

currencySymbol

string

The symbol of the Fiat Currency. This is to be used in other API's such as createInstance.

currencyName

string

The name of the fiat currency. This is used for display purpose.

precisionDecimal

string

The input precisionDecimal concerning the fiat currency.

paymentGroups

string

Contains the list of the supported payment methods for the said fiat currency. This is an object.

paymentGroups.paymentGroup

string

The name of the payment method

PreviousGet Pay-In Transaction InformationNextGet List of Supported Crypto Currency for Settlement

Last updated 2 months ago