Convert Coins

API POST Fields (in addition to the Main Fields described in the Introduction)

Field Name
Convert Coins
cmd
Descriptionconvert
Required?Yes
amount
DescriptionThe amount convert in the 'from' currency below.
Required?Yes
from
DescriptionThe cryptocurrency in your Coin Wallet to convert from. (BTC, LTC, etc.)
Required?Yes
to
DescriptionThe cryptocurrency to convert to. (BTC, LTC, etc.)
Required?Yes
address
DescriptionThe address to send the funds to. If blank or not included the coins will go to your CoinPayments Wallet.
Required?No
dest_tag
DescriptionThe destination tag to use for the withdrawal (for Ripple.) If 'address' is not included this has no effect.
Required?No
Field NameDescriptionRequired?
Convert Coins
cmdconvertYes
amountThe amount convert in the 'from' currency below.Yes
fromThe cryptocurrency in your Coin Wallet to convert from. (BTC, LTC, etc.)Yes
toThe cryptocurrency to convert to. (BTC, LTC, etc.)Yes
addressThe address to send the funds to. If blank or not included the coins will go to your CoinPayments Wallet.No
dest_tagThe destination tag to use for the withdrawal (for Ripple.) If 'address' is not included this has no effect.No

API Response

A successful call to the 'convert' command will give you a result similar to this (JSON):
{
   "error":"ok",
   "result":{
      "id":"61588"
   }
}