V2

Documentation for API V2. Major update is addresses with exchange crypto to fiat and vice versa abilities.

General information

Api endpoint for all requests is:

https://app.coinspaid.com/api/v2

Deposit flow

  1. You obtain new address from CoinsPaid API (for some currencies it may be address and tag) and store it somewhere on your side. After that you show this address to your customer in order to make a deposit.

  2. Customer sends some funds to this address.

  3. When transaction is sent by a customer - CoinsPaid sends a callback to your callback url with transaction details. It contains status, address, currency, amount and fees. If status is successful, you should deposit respective amount to customer balance on your side.

Withdrawal flow

  1. You request to send amount of money to address.

  2. Your request is validated on our side. If signature is correct, address is valid and you have enough balance - CoinsPaid responds you with the transaction object.

  3. You will receive a callback when transaction status is updated.

Deposit with exchange flow

You don't want to touch or store cryptocurrency, but only use it as a payment method. Your customer deposits BTC, Coinspaid instantly converts it to EUR so that you would receive EUR on your CoinsPaid account.

  1. You obtain new address from CoinsPaid API same as in deposit flow, but additionally pass another parameter "convert_to" in your request specifying resulting currency.

  2. When new deposit is arriving, CoinsPaid converts all arriving funds to destination funds, and sends notifications as in regular deposit

Withdrawal with exchange flow

You wish to send Cryptocurrency from your Fiat currency balance. For example you want to send EUR amount but your customer receives money in BTC.

  1. You do exactly same as in withdrawals, but you specify 2 currencies. One is a currency of your sending balance and Second is a cryptocurrency your Customer wishes to receive.

  2. Your request is validated on our side. If signature is correct, address is valid and you have enough balance - CoinsPaid responds you with the transaction object.

  3. You will receive a callback when transaction status is updated.

Futures flow

This feature give client an opportunity to fix currency rates for further exchange for 10 minutes. For example: Your customer want to receive 100 EUR, sending BTC. In order to guarantee receiving amount, rates should be fixed.

  1. You send address for exchange.

  2. You receive rates and their fix time.

  3. You have to calculate the amount in EUR, according to our rates, and send to CoinsPaid.

  4. When new deposit is arriving, CoinsPaid converts all arriving funds to destination funds, and sends notifications as in regular deposit.

In case if received and sent amounts don't equal, CP converts it like normal deposit with exchange. The limit for this operation is 10 000 EUR.

API Endpoints

get
Ping

https://app.coinspaid.com/api/v2/ping
Test if API is up and running and your authorization is working
Request
Response
200: OK
{}

Body must be a valid json object or array, example: {}

post
Get list of supported currencies

https://app.coinspaid.com/api/v2/currencies/list
Get all supported currencies
Request
Response
200: OK
{
"data": [
{
"id": 1,
"type": "crypto",
"currency": "BTC",
"minimum_amount": "0.001",
"deposit_fee_percent": "0.99",
"withdrawal_fee_percent": "0",
"precision": 8
}
]
}

post
Get list of exchangeable currency pairs

https://app.coinspaid.com/api/v2/currencies/pairs
Get list of currency pairs if no parameters passed. Get particular pair and its price if currency parameters are passed.
Request
Response
Body Parameters
currency_from
optional
string
Filter by currency ISO that exchanges from, example: BTC
currency_to
optional
string
Filter by currency ISO that can be converted to, example: EUR
200: OK
Example of success response
{
"data": [
{
"currency_from": {
"currency": "BTC",
"type": "crypto",
"min_amount": "0.00300000",
"min_amount_deposit_with_exchange": "0.00010000"
},
"currency_to": {
"currency": "EUR",
"type": "fiat"
},
"rate_from": "1",
"rate_to": "8795.80000000"
},
{
"currency_from": {
"currency": "EUR",
"type": "fiat",
"min_amount": "25.00000000"
},
"currency_to": {
"currency": "BTC",
"type": "crypto"
},
"rate_from": "1",
"rate_to": "8885.72951839"
},
{
"currency_from": {
"currency": "BCH",
"type": "crypto",
"min_amount": "0.00020000",
"min_amount_deposit_with_exchange": "0.00100000"
},
"currency_to": {
"currency": "USD",
"type": "fiat"
},
"rate_from": "1",
"rate_to": "332.28264751"
},
{
"currency_from": {
"currency": "USD",
"type": "fiat",
"min_amount": "30.00000000"
},
"currency_to": {
"currency": "BCH",
"type": "crypto"
},
"rate_from": "1",
"rate_to": "335.94361522"
}
]
}
400: Bad Request
Example of response with errors
{
"errors": {
"currency_from": "The selected currency from is invalid.",
"currency_to": "The selected currency to is invalid."
}
}

post
Get list of balances

https://app.coinspaid.com/api/v2/accounts/list
Get list of all the balances (including zero balances).
Request
Response
200: OK
{
"data": [
{
"currency": "DOGE",
"type": "crypto",
"balance": "13234.91276375"
},
{
"currency": "ADA",
"type": "crypto",
"balance": "7272.36400468"
},
{
"currency": "EUR",
"type": "fiat",
"balance": "5973.97568920"
},
{
"currency": "USDT",
"type": "crypto",
"balance": "0.00000000"
}
]
}

post
Receive cryptocurrency

https://app.coinspaid.com/api/v2/addresses/take
Take address for depositing crypto and (it depends on specified params) exchange from crypto to fiat on-the-fly.
Request
Response
Body Parameters
foreign_id
required
string
Your info for this address, will returned as reference in Address responses, example: user-id:2048
currency
required
string
ISO of currency to receive funds in, example: BTC
convert_to
optional
string
If you need auto exchange all incoming funds for example to EUR, specify this param as EUR or any other supported currency ISO, to see list of pairs see previous method.
201: Created
Example of success response
{
"data": {
"id": 1,
"currency": "BTC",
"convert_to": "EUR",
"address": "12983h13ro1hrt24it432t",
"tag": "tag-123",
"foreign_id": "user-id:2048"
}
}
400: Bad Request
Example of response with errors
{
"errors": {
"foreign_id": "The foreign id field is required."
}
}

Business logic for using cryptocurrency as a deposit method: You are willing to let your customer fund his EUR balance on your platform or website. You will have to generate an address in the desired cryptocurrency and specify EUR as a "convert_to" currency. This will allow you to let your Customer pay if his favorite currency and fund his balance in EUR. At the same time you will see respective EUR amount in your CoinsPaid merchant account. Hint: you don't have to generate new address for this customer anymore, address can be reused unlimited amount of times.

Example of the customer facing interface for Deposits.
  • Make sure to use Bitcoin URI format bitcoin: in QR. Works the same way as "mailto:".

  • We do recommend making this QR clickable as customers may have a wallet set up on their computer or mobile phone.

  • We recommend specifying approximate current exchange rate.

post
Withdraw cryptocurrency

https://app.coinspaid.com/api/v2/withdrawal/crypto
Withdraw in crypto to any specified address. You can send Cryptocurrency from your Fiat currency balance by using "convert_to" parameter.
Request
Response
Body Parameters
foreign_id
required
string
Unique foreign ID in your system, example: "122929"
amount
required
string
Amount of funds to withdraw, example: "3500"
currency
required
string
Currency ISO to be withdrawn, example: "EUR"
convert_to
optional
string
If you want to auto convert for example EUR to BTC, specify this param as BTC or any other currency supported (see list of exchangeable pairs API method).
address
required
string
Cryptocurrency address where you want to send funds.
tag
optional
string
Tag (if it's Ripple or BNB) or memo (if it's Bitshares or EOS)
201: Created
Example of success response of withdraw without conversion
{
"data": {
"id": 1,
"foreign_id": "122929",
"type": "withdrawal",
"status": "processing",
"amount": "0.01000000",
"sender_amount": "0.01000000",
"sender_currency": "ETH",
"receiver_amount": "0.01000000",
"receiver_currency": "ETH"
}
}
400: Bad Request
Example of response with errors
{
"errors": {
"amount": "The amount must be at least 0.001."
}
}

Recommendation: ask customer to specify his payout address even before allowing him to deposit, this will improve experience and help to avoid mistakes with withdrawals in future.

Business logic for using cryptocurrency as a withdrawal method: Your customer requests a payout in Cryptocurrency from his EUR balance on your platform. You have to specify withdrawal amount in EUR and specify Cryptocurrency and its destination (sometimes it is not only Address). Example of such request <Send 3500 EUR to Bitcoin 3D2V3tushw7VLJYnK6vZVDpNcNmEG2a7QK">.

post
Calculate exchange rates

https://app.coinspaid.com/api/v2/exchange/calculate
Get info about exchange rates.
Request
Response
Body Parameters
receiver_amount
optional
string
Amount you want to calculate for getting, example: "10". The parameter is required when the "sender_amount" parameter is absent
sender_currency
required
string
Currency ISO for which you want to calculate the exchange rate, example: "BTC"
receiver_currency
required
string
Currency ISO to be exchanged, example: "EUR"
sender_amount
optional
string
Amount you want to calculate, example: "3". The parameter is required when the "receiver_amount" parameter is absent
200: OK
Example of success response
{
"data": {
"sender_amount": 1,
"sender_currency": "BTC",
"receiver_amount": "8549.81680000",
"receiver_currency": "EUR",
"fee_amount": "85.49816800",
"fee_currency": "BTC",
"price": "8549.81680000",
"ts_fixed": 1564293159,
"ts_release": 1564293219,
"fix_period": 60
}
}
400: Bad Request
Example of response with errors
{
"errors": {
"sender_currency": "Exchange is unavailable for given currencies"
}
}

post
Calculate exchange rates for futures

https://app.coinspaid.com/api/v2/futures/rates
Get info about exchange rates for particular exchangeable address for futures.
Request
Response
Body Parameters
address
required
string
Cryptocurrency exchangeable address for which you want to calculate exchangeable rates.
tag
optional
string
Tag (if it's Ripple or BNB) or memo (if it's Bitshares or EOS)
200: OK
Example of success response
{
"address": {
"id": 382487,
"currency": "BTC",
"convert_to": "AUD",
"address": "2MtNqh7mgaYRBQUJ2sMdfDSgpFAH7mM1vtK",
"tag": null,
"foreign_id": "31a"
},
"ts_fixed": 1573122588,
"ts_release": 1573123188,
"fix_period": 600,
"seconds_left": 600,
"prices": {
"BTCAUD": {
"limits": {
"0.10000000": "1324.53194556",
"0.50000000": "6622.65972786",
"1.00000000": "13245.31945573",
"2.00000000": "26490.49523732",
"5.00000000": "66223.76689801",
"10.00000000": "132441.44632245",
"50.00000000": "661612.45066277"
},
"sender_currency": "BTC",
"receiver_currency": "AUD"
},
"AUDBTC": {
"limits": {
"50.00000000": "0.00373663",
"100.00000000": "0.00747326",
"500.00000000": "0.03736632",
"1000.00000000": "0.07473265",
"5000.00000000": "0.37366330",
"10000.00000000": "0.74732660",
"50000.00000000": "3.73596151",
"100000.00000000": "7.47020262"
},
"sender_currency": "AUD",
"receiver_currency": "BTC"
}
},
"limits": {
"amount": 1000000,
"iso": "EUR"
}
}

post
Confirm futures for exchange

https://app.coinspaid.com/api/futures/confirm
Confirm futures for particular exchangeable address and sender/receiver amount.
Request
Response
Body Parameters
tag
optional
string
Tag (if it's Ripple or BNB) or memo (if it's Bitshares or EOS)
address
required
string
Cryptocurrency exchangeable address for which you want to fix futures.
sender_currency
required
string
Currency ISO which you want to exchange, example: "BTC"
receiver_currency
required
string
Currency ISO to be exchanged, example: "EUR"
sender_amount
required
string
Amount you want to exchange, example: "0.001"
receiver_amount
required
string
Amount you want to get based on your own calculations according to exchangeable rates, example: "3250.268"
200: OK
Example of success response
{
"data": {
"sender_amount": 0.1,
"receiver_amount": 1324.53194556,
"fee_amount": "0.00000000",
"futures_id": 4,
"sender_currency": "BTC",
"receiver_currency": "AUD",
"fee_currency": "AUD",
"price": "13245.31945560",
"address": {
"id": 382487,
"currency": "BTC",
"convert_to": "AUD",
"address": "2MtNqh7mgaYRBQUJ2sMdfDSgpFAH7mM1vtK",
"tag": null,
"foreign_id": "45bc"
},
"ts_fixed": 1573122588,
"ts_release": 1573123188,
"fix_period": 600,
"seconds_left": 370
}
}

post
Exchange on fixed exchange rate

https://app.coinspaid.com/api/v2/exchange/fixed
Make exchange on a given fixed exchange rate.
Request
Response
Body Parameters
sender_currency
required
string
Currency ISO which you want to exchange, example: "LTC"
receiver_currency
required
string
Currency ISO to be exchanged, example: "USD"
sender_amount
required
string
Amount you want to exchange, example: "6.5"
foreign_id
required
string
Unique foreign ID in your system, example: "134453"
price
required
string
Exchange rate price on which exchange will be placed, example: "89.75202000"
200: OK
Example of success response
{
"data": {
"id": 7,
"foreign_id": "kwDN186awpoWoWTJ",
"type": "exchange",
"sender_amount": "0.10000000",
"sender_currency": "BTC",
"receiver_amount": "8549.81680000",
"receiver_currency": "EUR",
"fee_amount": "85.49816800",
"fee_currency": "BTC",
"price": "89.64326482",
"status": "processing"
}
}

post
Exchange regardless the exchange rate

https://app.coinspaid.com/api/v2/exchange/now
Make exchange without mentioning the price.
Request
Response
Body Parameters
sender_currency
required
string
Currency ISO which you want to exchange, example: "EUR"
receiver_currency
required
string
Currency ISO to be exchanged, example: "BTC"
sender_amount
required
string
Amount you want to exchange, example: "2"
foreign_id
required
string
Unique foreign ID in your system, example: "124876"
200: OK
Example of success response
{
"data": {
"id": 7,
"foreign_id": "kwDN186awpoWoWTJ",
"type": "exchange",
"sender_amount": "0.10000000",
"sender_currency": "BTC",
"receiver_amount": "8549.81680000",
"receiver_currency": "EUR",
"fee_amount": "85.49816800",
"fee_currency": "BTC",
"price": "89.64326482",
"status": "processing"
}
}
400: Bad Request
Example of response with errors
{
"errors": {
"sender_amount": "The amount must be at least 0.00300000 "
}
}

Transaction statuses

Status

Meaning

confirmed

Final. You are safe to process this transaction

not_confirmed

Transaction is not yet confirmed.

cancelled

Final. This transaction is a double spend or cancelled withdrawal. Pay attention to this transaction.

Transitions

Transaction

Transition

Successful deposit

not_confirmed -> confirmed

Unsuccessful deposit

not_confirmed -> cancelled

Successful withdrawal

confirmed

Unsuccessful withdrawal

cancelled

Deposit Callbacks

To provide authentication for the callback, coinspaid API signs the POST your api key and secret:

  1. X-Processing-Key – Your public key

  2. X-Processing-Signature – POST body, signed by the your secret key HMAC-SHA512

BTC
ETH
ERC20
Deposit BTC with exchange to EUR
Futures
{
"id": 1,
"type": "deposit",
"crypto_address": {
"id": 1,
"currency": "BTC",
"address": "39mFf3X46YzUtfdwVQpYXPCMydc74ccbAZ",
"foreign_id": "user-id:2048",
"tag": null
},
"currency_sent": {
"currency": "BTC",
"amount": "6.53157512"
},
"currency_received": {
"currency": "BTC",
"amount": "6.53157512",
"amount_minus_fee": "6.5119800"
},
"transactions": [
{
"id": 1,
"currency": "BTC",
"transaction_type": "blockchain",
"type": "deposit",
"address": "39mFf3X46YzUtfdwVQpYXPCMydc74ccbAZ",
"tag": null,
"amount": "6.53157512",
"txid": "3950ad8149421a850d01dff88f024810e363ac18c9e8dd9bc0b9116e7937ad93",
"riskscore": "0.5",
"confirmations": 3
}
],
"fees": [
{
"type": "deposit",
"currency": "BTC",
"amount": "0.01959472"
}
],
"error": "",
"status": "confirmed"
}
{
"id": 2686563,
"type": "deposit",
"crypto_address": {
"id": 381738,
"currency": "ETH",
"address": "0xd61180ff0cf74dc3ee8e264751f18c47060729b9",
"tag": null,
"foreign_id": "991904"
},
"currency_sent": {
"currency": "ETH",
"amount": "0.01000000"
},
"currency_received": {
"currency": "ETH",
"amount": "0.01000000",
"amount_minus_fee": "0.00939500"
},
"transactions": [
{
"id": 714657,
"currency": "ETH",
"transaction_type": "blockchain",
"type": "deposit",
"address": "0xd61180ff0cf74dc3ee8e264751f18c47060729b9",
"tag": null,
"amount": "0.01000000",
"txid": "0x6b353da88a8ba2df4926c1ccc58991f484a683ba57ec3dde70e812b5c8c7fa1d",
"confirmations": "9"
}
],
"fees": [
{
"type": "transfer",
"currency": "ETH",
"amount": "0.00010500"
},
{
"type": "deposit",
"currency": "ETH",
"amount": "0.00050000"
}
],
"error": "",
"status": "confirmed"
}
{
"id": 2686567,
"type": "deposit",
"crypto_address": {
"id": 382357,
"currency": "NNM",
"address": "0x19722627885da3fff134dd36de0a14898c8e053b",
"tag": null,
"foreign_id": "31"
},
"currency_sent": {
"currency": "NNM",
"amount": "0.06000000"
},
"currency_received": {
"currency": "NNM",
"amount": "0.06000000",
"amount_minus_fee": "0.05910000"
},
"transactions": [
{
"id": 714662,
"currency": "NNM",
"transaction_type": "blockchain",
"type": "deposit",
"address": "0x19722627885da3fff134dd36de0a14898c8e053b",
"tag": null,
"amount": "0.06000000",
"txid": "0x835c9f286a311bc9df8c94c2771cadf1d91e6967039358a44e24c56115dc59a1",
"confirmations": "7"
}
],
"fees": [
{
"type": "transfer",
"currency": "ETH",
"amount": "0.00037336"
},
{
"type": "deposit",
"currency": "NNM",
"amount": "0.00090000"
}
],
"error": "",
"status": "confirmed"
}
{
"id": 2686510,
"type": "deposit_exchange",
"crypto_address": {
"id": 382270,
"currency": "BTC",
"convert_to": "EUR",
"address": "31vnLqxVJ1iShJ5Ly586q8XKucECx12bZS",
"tag": null,
"foreign_id": "13a"
},
"currency_sent": {
"currency": "BTC",
"amount": "0.01000000"
},
"currency_received": {
"currency": "EUR",
"amount": "84.17070222",
"amount_minus_fee": "79.96216711"
},
"transactions": [
{
"id": 714576,
"currency": "BTC",
"transaction_type": "blockchain",
"type": "deposit",
"address": "31vnLqxVJ1iShJ5Ly586q8XKucECx12bZS",
"tag": null,
"amount": "0.01000000",
"txid": "3a491da90a1ce5a318d0aeff6867ab98a03219abae29ed68d702291703c3538b",
"riskscore": "0.42",
"confirmations": "1"
},
{
"id": 714577,
"currency": "BTC",
"currency_to": "EUR",
"transaction_type": "exchange",
"type": "exchange",
"amount": "0.01000000",
"amount_to": "84.17070222"
}
],
"fees": [
{
"type": "exchange",
"currency": "EUR",
"amount": "4.20853511"
}
],
"error": "",
"status": "confirmed"
}
{
"id": 2687392,
"type": "deposit_exchange",
"crypto_address": {
"id": 382126,
"currency": "ETH",
"convert_to": "EUR",
"address": "0x6b67759a05cf7d241102b7d8374fb3cd530b50dc",
"tag": null,
"foreign_id": "abc123"
},
"currency_sent": {
"currency": "ETH",
"amount": "0.11506000"
},
"currency_received": {
"currency": "EUR",
"amount": "15.00000000",
"amount_minus_fee": "14.77226485"
},
"transactions": [
{
"id": 715600,
"currency": "ETH",
"transaction_type": "blockchain",
"type": "deposit",
"address": "0x6b67759a05cf7d241102b7d8374fb3cd530b50dc",
"tag": null,
"amount": "0.11506000",
"txid": "0x05b5caacecc20ae2c608375ea9c2766ce66d5867b8b9d9d8ee1eb42a614b2045",
"confirmations": "14"
},
{
"id": 715601,
"currency": "ETH",
"currency_to": "EUR",
"transaction_type": "exchange",
"type": "exchange",
"amount": "0.11506000",
"amount_to": "15.00000000"
}
],
"fees": [
{
"type": "transfer",
"currency": "EUR",
"amount": "0.00273515"
},
{
"type": "exchange",
"currency": "EUR",
"amount": "0.22500000"
}
],
"error": null,
"status": "confirmed",
"futures_id": 3
}

"riskscore" is used for coin compliance analysis and to reveal and track malicious behavior. Available for deposits and deposits with exchange in BTC, BCH, ETH.

Withdrawal Callbacks

BTC
ETH
ERC20
Withdraw EUR with exchange to BTC
{
"id": 1,
"foreign_id": "10",
"type": "withdrawal",
"crypto_address": {
"id": 1,
"currency": "BTC",
"address": "115Mn1jCjBh1CNqug7yAB21Hq2rw8PfmTA",
"tag": null
},
"currency_sent": {
"currency": "BTC",
"amount": "0.02000000"
},
"currency_received": {
"currency": "BTC",
"amount": "0.02000000"
},
"transactions": [
{
"id": 1,
"currency": "BTC",
"transaction_type": "blockchain",
"type": "withdrawal",
"address": "115Mn1jCjBh1CNqug7yAB21Hq2rw8PfmTA",
"tag": null,
"amount": "0.02",
"txid": "bb040d895ef7141ea0b06b04227d8f5dd4ee12d5b890e6e5633f6439393a666b",
"confirmations": 3
}
],
"fees": [
{
"type": "mining",
"currency": "BTC",
"amount": "0.00007402"
},
{
"type": "withdrawal",
"currency": "BTC",
"amount": "0.00002000"
}
],
"error": "",
"status": "confirmed"
}
{
"id": 2686565,
"foreign_id": "23",
"type": "withdrawal",
"crypto_address": {
"id": 381460,
"currency": "ETH",
"address": "0x2D6CA312567986C08CC4eF3F706136D1c9eF0321",
"tag": null
},
"currency_sent": {
"currency": "ETH",
"amount": "0.01000000"
},
"currency_received": {
"currency": "ETH",
"amount": "0.01000000"
},
"transactions": [
{
"id": 714660,
"currency": "ETH",
"transaction_type": "blockchain",
"type": "withdrawal",
"address": "0x2D6CA312567986C08CC4eF3F706136D1c9eF0321",
"tag": null,
"amount": "0.01000000",
"txid": "0x1ccb9fa0ef5e8cf7d4cc2a23fe8119170a2a3d08fba36036665a12c88d7bcccb",
"confirmations": "0"
}
],
"fees": [
{
"type": "mining",
"currency": "ETH",
"amount": "0.00010500"
},
{
"type": "withdrawal",
"currency": "ETH",
"amount": "0.00010000"
}
],
"error": "",
"status": "confirmed"
}
{
"id": 2686572,
"foreign_id": "5",
"type": "withdrawal",
"crypto_address": {
"id": 381734,
"currency": "NNM",
"address": "0x2D6CA312567986C08CC4eF3F706136D1c9eF0321",
"tag": null
},
"currency_sent": {
"currency": "NNM",
"amount": "4.45600000"
},
"currency_received": {
"currency": "NNM",
"amount": "4.45600000"
},
"transactions": [
{
"id": 714670,
"currency": "NNM",
"transaction_type": "blockchain",
"type": "withdrawal",
"address": "0x2D6CA312567986C08CC4eF3F706136D1c9eF0321",
"tag": null,
"amount": "4.45600000",
"txid": "0x884ad10cc60dfe0d6fdc776b541c5c5efce6151886a88994bb4ba41aa9575563",
"confirmations": "0"
}
],
"fees": [
{
"type": "mining",
"currency": "ETH",
"amount": "0.00007480"
},
{
"type": "withdrawal",
"currency": "NNM",
"amount": "0.04456000"
}
],
"error": "",
"status": "confirmed"
}
{
"id": 1,
"foreign_id": "20",
"type": "withdrawal_exchange",
"crypto_address": {
"id": 1,
"currency": "EUR",
"convert_to": "BTC",
"address": "1K2btnZ8cqNFBPhaq729Mdj8W6G3w2nBbL",
"tag": null
},
"currency_sent": {
"currency": "EUR",
"amount": "381"
},
"currency_received": {
"currency": "BTC",
"amount": "0.10882300"
},
"transactions": [
{
"id": 1,
"currency": "EUR",
"currency_to": "BTC",
"transaction_type": "exchange",
"type": "exchange",
"amount": 381,
"amount_to": 0.10882300
},
{
"id": 1,
"currency": "BTC",
"transaction_type": "blockchain",
"type": "withdrawal",
"address": "1K2btnZ8cqNFBPhaq729Mdj8W6G3w2nBbL",
"tag": null,
"amount": 0.10882300,
"txid": "aa3345b96389e126f1ce88a670d1b1e38f2c3f73fb3ecfff8d9da1b1ce6964a6",
"confirmations": 3
}
],
"fees": [
{
"type": "exchange",
"currency": "EUR",
"amount": "3.04800000"
},
{
"type": "mining",
"currency": "EUR",
"amount": "0.04489780"
}
],
"error": "",
"status": "confirmed"
}

Exchange Callbacks

Buy BTC for EUR
Sell BTC for USD
{
"id": 2686900,
"type": "exchange",
"currency_sent": {
"currency": "EUR",
"amount": "26.75248865"
},
"currency_received": {
"currency": "BTC",
"amount": "0.00300000"
},
"transactions": [
{
"id": 715072,
"currency": "EUR",
"currency_to": "BTC",
"transaction_type": "exchange",
"type": "exchange",
"amount": "26.75248865",
"amount_to": "0.00300000"
}
],
"fees": [
{
"type": "exchange",
"currency": "EUR",
"amount": "0.26752489"
}
],
"error": "",
"status": "confirmed"
}
{
"id": 2686901,
"type": "exchange",
"currency_sent": {
"currency": "BTC",
"amount": "0.00300000"
},
"currency_received": {
"currency": "USD",
"amount": "29.50408884"
},
"transactions": [
{
"id": 715072,
"currency": "BTC",
"currency_to": "USD",
"transaction_type": "exchange",
"type": "exchange",
"amount": "0.00300000",
"amount_to": "29.50408884"
}
],
"fees": [
{
"type": "exchange",
"currency": "USD",
"amount": "0.29504089"
}
],
"error": "",
"status": "confirmed"
}

Callbacks with other statuses

Not confirmed
Cancelled
{
"id": 2686579,
"type": "deposit",
"crypto_address": {
"id": 381711,
"currency": "BTC",
"address": "2N9zXNdiT8ucZp7zZSrucqYGCD6xYF8F3di",
"tag": null,
"foreign_id": "991904"
},
"currency_sent": {
"currency": "BTC",
"amount": "0.01000000"
},
"currency_received": {
"currency": "BTC",
"amount": "0.01000000",
"amount_minus_fee": "0.01000000"
},
"transactions": [
{
"id": 714680,
"currency": "BTC",
"transaction_type": "blockchain",
"type": "deposit",
"address": "2N9zXNdiT8ucZp7zZSrucqYGCD6xYF8F3di",
"tag": null,
"amount": "0.01000000",
"txid": "998c4d9bb7145aafd88658b292f41fe05973c217f7adcd6052bcafe2309e7e02",
"confirmations": "0"
}
],
"fees": [],
"error": "",
"status": "not_confirmed"
}
{
"id": 2686580,
"foreign_id": "123",
"type": "withdrawal",
"crypto_address": {
"id": 382362,
"currency": "ETH",
"address": "12345",
"tag": null
},
"transactions": [
{
"id": 714681,
"currency": "ETH",
"transaction_type": "blockchain",
"type": "withdrawal",
"address": "12345",
"tag": null,
"amount": "1.00000000",
"txid": null,
"confirmations": "0"
}
],
"fees": [],
"error": "Invalid params: expected a hex-encoded hash with 0x prefix.",
"status": "cancelled"
}