Tron API En
Chinese API
  • Basic information
  • Tron API
    • Get related configuration
    • Pre-order
    • create trx engerg order
    • create usdt engerg order
    • create bandwidth order
    • upload purchase order hash
    • create a sell order
    • Earn energy by stake
    • recovered energy
    • cancel order
    • query purchase order
    • query recent finished order
    • query purchase order records by user address
    • query sell order records by user address
  • Seller Tron API
    • Get seller configuration
    • Seller authorization
    • Update seller configuration
    • Get seller panel
  • Buyer Tron API
    • Get buyer configuration
    • Buyer charge
    • Buyer withdraw
    • Buyer leas energy
    • Buyer leas energy records
    • Buyer asset records
  • FAQ
    • Error Code
Powered by GitBook
On this page
  • Endpoint usage
  • code example
  • Postman example
  1. Tron API

cancel order

Endpoint usage

POST https://open.tronify.io/api/tronRent/cancelOrder

The fields with * are required, and the fields without * are optional

Request Body

Name
Type
Description

orderId*

String

purchase order Id

sourceFlag*

String

Source channel (Both sides need to agree on a name to represent the channel of the third parties)

flag*

String

md5 value

{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "flag": "098AB187330265CD4EC4126E1F0661C6",
        "orderId": "2ombu8zk_3jet_0mle_g7id_2mi3gnl6fk4y",
        "sourceFlag": "tronLink"
    }
}
{
    // Response
}

code example

// example
const params = {
    orderId: 'mt1wxcl1_dplo_r0qp_5bho_w5an5hev6d70',
    flag: 'the value after md5',
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/cancelOrder',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }

Postman example

Previousrecovered energyNextquery purchase order

Last updated 1 year ago