Creating a new deal, POST or GET

Resource URL

https://api.tokencore.io/api.php

Parameters

ParameterDescriptionOptionalDefault
Name amount - the amount to be credited (before the commission), the commission will be calculated from above;
wallet - USDT (TRC-20) wallet for withdrawal;
order - order id in your system;
respond - address to return the notification;
key - your key

Example

POST https://api.tokencore.io/api.php?method=create_order

Request

  
    https://api.tokencore.io/api.php?method=create_order&amount=100&wallet=TTfMpdbx1KhDR8sUoMmtMdRXTmYk5ZNRmN&order=987&respond=https://site.com/  

Response

  
    {"ok":"ok","order":"[{"id":999,"wallet":"TJ57B6tE1ixDz8Nx8v6xCyuwgbYTvFexj3","amount":103,"time_unix":1680375293}]"}  

Parameters Response

  
id - the created payment, save it, you will need it to find out the payment status later, or cancel the payment;
wallet - issue this card to the client for payment;
amount - the amount with our commission, notify the client that for a quick payment he must pay this amount (this or more, it is advisable to pay exactly), so the payment will be processed automatically.
time_unix - time in UNIX format until which the ticket is considered active, after the time is up it will be marked as "time_out" 

Resource Information

Rate Limited False
Response Format JSON
Authentication None