1 BTC = 838.33 EUR
1 BTC = 838.33 EUR

Cashila API

Create something amazing.

Public methods

Current exchange rate
Returns EUR/BTC exchange rate. Currently only eur is supported as currency. Two rates are returned:
  • sell rate: "rate"
  • buy rate: "buy_rate"
GET https://www.cashila.com/api/v1/exchange-rate/{currency}
{
  result: {
    rate: "235.72",
    buy_rate: "236.72"
  }
}
Request BitID uri for access token
First step to acquire user’s access token and secret. Returns bitid uri.
POST https://www.cashila.com/api/v1/bitid/request-token
{
  "result": {
    "uri": "bitid://cashila.com/api/v1/bitid/token?x=gfQW..."
  }
}
Wallet must sign wallet’s address and bitid uri with wallet’s private key as specified by bitid protocol and make POST request at that uri. Token will be valid for 2 hours.
{
  "result": {
    "token": "d042f9f4-86f...", // user token
    "secret": "qmlX0wdc2...",   // user secret
    "user": {
      "name": "Bruce",
      "promo_code": {           // only returned if available
        "for_amount": 1000.0,
        "used_amount": 0.0,
        "fee_percen": 0.0
      }
    }
  }
}
Error codes
1006 No user found paired with specified btc address. Since no user has paired with this address, client should direct user to cashila website to start pairing process
Request access token for signup
First step to create new user account. Returns token and secret used for all subsequent calls. This token can only be used to create new account. If called with bitid=1 parameter, bitid uri is also returned.
POST https://www.cashila.com/api/v1/request-signup
{
  "result": {
    "token": "6d...",
    "secret": "PK..."
  }
}
Supported countries
Returns list of supported countries. When creating new user account with verification details or when updating verification details, provided country code must on this list.
GET https://www.cashila.com/api/v1/supported-countries
{
  "result": [
    {
      code: "AD",
      name: "Andorra"
    },
    ...
  ]
}