# Settings

The following settings are available in wallets and accounts:

  • the callback data
  • destinations for forwarding
  • recurring payments
  • processing fee policy

Authorization is required. Note: The settings for the TRX network are also applied to tokens of this network too, for example usdt@trx, usdc@trx.

# Request

  • HTTP Method: PATCH
  • Content Type: application/json
  • URL for Account: https://apirone.com/api/v2/accounts/{account}
  • URL for Wallet: https://apirone.com/api/v2/wallets/{wallet}

For Account

Parameter Type Description Required
account string Account Identifier
currency string Currency type.
processing-fee-policy string Processing fee plan. Processing-fee-policy may be fixed or percentage. More information see on Pricing page (opens new window) or Service info
callback object Callback data
destinations array Parameter of settings used for forwarding incoming funds to specified addresses; it contains addresses and amounts, more information about destinations here.
Destination addresses shall either have values specified in percentage or be empty to be forwarded 100%
destination_rules array The array of rules for auto transfer funds after reaching specified threshold or according to a cron schedule. One can manage these rules on the dashboard (opens new window). For more info about setting this parameter via API please contact our support

For Wallet

  • URL: https://apirone.com/api/v2/wallets/{wallet}
Parameter Type Description Required
wallet string Wallet Identifier
processing-fee-policy string Processing fee plan. Processing-fee-policy may be fixed or percentage. More information see on Pricing page (opens new window) or Service info
callback object Callback data
destinations array Parameter of settings used for forwarding incoming funds to specified addresses; it contains addresses and amounts, more information about destinations here. Destination addresses shall either have values specified in percentage or be empty to be forwarded 100%
destination_rules array The array of rules for auto transfer funds after reaching specified threshold or according to a cron schedule. One can manage these rules on the dashboard (opens new window). For more info about setting this parameter via API please contact our support

# Request example (Account)

curl -X PATCH 'https://apirone.com/api/v2/accounts/apr-e729d9982f079fa86b10a0e3aa6ff37b' \
-H 'Content-Type: application/json' \
-d '{
   "currency": "btc",
   "transfer-key": "82ookirnTwWNXXqFwdOQMVZIamt8s1uT",
   "processing-fee-policy": "percentage",
   "callback": {
       "url": "https://example.com",
       "data": {
           "optional_key": "132534"
       }
   },
   "destination_rules": null,
   "destinations": [
       {
           "address": "3JH4GWtXNz7us8qw1zAtRr4zuq2nDFXTgu",
           "amount": "100%"
       }
     ]
}'

# Request example (Wallet)

curl -X PATCH 'https://apirone.com/api/v2/wallets/btc-f43a47823c6f0894c83e3e364fa12654' \
-H 'Content-Type: application/json' \
-d '{
  "transfer-key":"oAqmClPQ69a2upN83N5XoPCBeH3XID41",
  "processing-fee-policy": "fixed", 
   "callback": {
       "url": "https://example.com",
       "data": {
           "optional_key": "142534"
       }
   },
   "destination_rules": null,
   "destinations": [
       {
           "address": "38cSD2nhmfVbXb9gRu8qVcLtyW6q8NVLQb",
           "amount": "100%"
       }
     ]
}'

# Success Response Reference

  • HTTP Status Code: 200
  • Content Type: application/json

For Account

Parameter Type Description
account string Account Identifier
created string Account creation date
currency string Currency type
units string Cryptocurrency units.
Units of all amount values for a specified account
processing-fee-policy string Processing fee plan
fee string Network fee strategy
fee-rate integer The parameter is only used when fee is set to "custom"
destinations array The cryptocurrency addresses of the store to which the payment will be forwarded
destination_rules array The array of auto transfer rules
callback object Callback URL, method, and data

# Response example

{
    "account": "apr-e729d9982f079fa86b10a0e3aa6ff37b",
    "currency": "btc",
    "created": "2020-08-25T18:35:29.468231",
    "units": "satoshi",
    "fee": "custom",
    "fee-rate": 1,
    "processing-fee-policy": "percentage",
    "destination_rules": null,
    "destinations": [
      {
        "address": "3JH4GWtXNz7us8qw1zAtRr4zuq2nDFXTgu",
        "amount": "100%"
      }
    ],
    "callback": {
      "data": {
        "optional_key": "132534"
      },
      "method": "POST",
      "url": "https://example.com"
    }
  }

For Wallet

Parameter Type Description
wallet string Wallet Identifier
created string Wallet creation date
currency string Currency type
units string Cryptocurrency units. Units of all amount values for a specified wallet
destinations array The cryptocurrency addresses of the store to which the payment will be forwarded
destination_rules array The array of auto transfer rules
fee string Network fee strategy
fee-rate integer The parameter is only used when fee is set to "custom"
callback object Callback URL, method, and data
processing-fee-policy string Processing fee plan

# Response example

{
    "wallet": "btc-f43a47823c6f0894c83e3e364fa12654",
    "currency": "btc",
    "created": "2021-10-25T18:35:29.468231",
    "units": "satoshi",
    "fee": "custom",
    "fee-rate": 1,
    "processing-fee-policy": "fixed",
    "destination_rules": null,
    "destinations": [
      {
        "address": "38cSD2nhmfVbXb9gRu8qVcLtyW6q8NVLQb",
        "amount": "100%"
      }
    ],
    "callback": {
      "data": {
        "optional_key": "142534"
      },
      "method": "POST",
      "url": "https://example.com"
    }
}

# Error response

  • HTTP Status Code: 400 500
  • Content Type: application/json