en

API

The page for the API for accepting payments on your project


For all requests, you need to pass the header X-AUTH-TOKEN with the key value from the merchant



Creating a transaction

Creating a transaction

https://paysover.com/api/transaction/init
            

Parameters


The request is sent by the method POST


Title Type Description
amount float The amount
coin string Specify the coin from the list below
chain string Specify the network from the list below
ERC20: USDT   ETH   USDC   BUSD   DAI   TUSD   USDP   USDD   MATIC   SHIB   UNI   LEO   ATOM   TON   OKB   LDO   ARB   CRO  
BEP20: BNB   USDT   USDC   BUSD   DAI   TUSD   USDP   USDD   XRP   ADA   DOGE   MATIC   DOT   TRX   LTC   AVAX   ATOM   TON   BCH   FIL   LDO   NEAR  
TRC20: USDT   TRX   USDC   TUSD   USDD  
Solana: USDT   SOL   BUSD   DAI   MATIC   LDO   CRO  
LTC: LTC  
BCH: BCH  
DOGE: DOGE  
BTC: BTC  
Polygon: MATIC   USDT   USDC   DAI   BUSD  
Optimism: Optimism   USDT   USDC   DAI   ETH  
Fantom: FTM  
Arbitrum: ARB   USDT   USDC   DAI   TUSD   ETH  

Responses

Successful
{
    "status": true,
    "data": {
        "id": 000,
        "blockchain": "ERC20",
        "wallet": "0x7FBFC9a...C0D277",
        "time": 29,
        "crypto": "ETH",
        "amount_to_pay": "0.01261785",
        "amount_original": "23"
    }
}
                    
Failed
{
    "status": false,
    "data": {
        "message": [
            "Not found"
        ]
    }
}
                    

Checking the transaction status

Checks the current transaction status

https://paysover.com/api/transaction/check
            

Parameters


The request is sent by the method GET


Title Type Description
id int Transaction ID received in the results of the previous step

Responses

Successful
{
    "status": true,
    "data": {
        "id": 000,
        "status": 0,
        "transaction_hash": null,
        "time": 21
    }
}
                    
Failed
{
    "status": false,
    "data": {
        "message": [
            "Not found"
        ]
    }
}
                    

Statuses
  • 0 - New
  • 1 - Monitoring
  • 2 - Confirmed
  • 3 - Error
  • 4 - Awaiting confirmation
  • 5 - Timeout

Getting a list of wallets

https://paysover.com/api/wallet/list
            

Parameters


The request is sent by the method GET


Responses

Successful
{
    "status": true,
    "data": [
        {
            "address": "TRGUnA...d1yMLyPjTXN2KT",
            "coin": "USDT",
            "chain": "TRC20"
        },
        {
            "address": "TRGUnAcYQ...1yMLyPjTXN2KT",
            "coin": "TRX",
            "chain": "TRC20"
        },
        {
            "address": "CBjo9iPk...2PFZBqBasB5diS8x5YLKyibb",
            "coin": "USDT",
            "chain": "Solana"
        }
    ]
}