Welcome to inbitcoin API

For more info about our api contact info@inbitcoin.it


Return an array of JSON serialized merchants
{
 "industry": "Restauration",
 "company": "Wine Bar Italia",
 "commercial_name": "Zaffoni S.r.l.",
 "office_state": "Trento",
 "office_city": "Trento",
 "office_street": "Via d.t. eccezionale",
 "office_number": "1",
 "office_country": "Italia",
 "vat_number": "2342344234",
 "position": "45.089035564831036,9.140625",
 "zipcode": "38068",
 "website": "https://test.inbitcoin.it",
 "description": "Delicious wines",
 "uuid": "TfHCZky1MkN6QKqmeTxJh1b5s3V39Kii2ZE",
 "pos_link": "https://inbitcoin.it/pos?client_id=TfHCZky1MkN6QKqmeTxJh1b5s3V39Kii2ZE"
}


Item info can be find inside items array:
"items": [
 {
  "price": "45.00",
  "currency": "EUR",
  "label": "Ecco la prova vera",
  ....
 }
]


Additional pos for the merchant are inside merchant_pos array:
"merchant_pos": [
 {
  "label": "Wine Bar Italia pos facade",
  "pos_link": "https://inbitcoin.it/pos?client_id=TfHCZky1MkN6QKqreTxJh1b5s3V39Kii2ZE"
  }
]

With a valid invoice id get a JSON with information
{
 "order_id": null,
 "paymentUrls": {
  "BIP72": "bitcoin:n3Ppr8gVUYprp4jtwCNDtWa5cLCRSMvHdq?amount=0.00250744&label=Mercante%20sempre%20pronto"
 },
 "invoiceTime": "2017-04-01T07:45:38+00:00",
 "rate": 1001.02,
 "exRate": {
  "EUR": 1001.02
  },
 "url": "https://inbitcoin.it/api/invoice/?invoice_id=05584406-45b9-445c-958a-b7d3a744fb19",
 "btcPrice": "0.00250744",
 "payments": [
  {
   "price": 250744,
   "created_at": "2017-04-01T07:46:59+00:00",
   "txid": "dd634d542830fdb838387fb096b103a33c197c0c04e0155a348023e94e208c11"
   }
 ],
 "currency": "EUR",
 "bitcoinAddress": "n3Ppr8gVUYyrp4jywCNDtWa5cLCRSMvHdq",
 "price": 2.51,
 "currentTime": 1491815768000,
 "status": "paid",
 "expirationTime": 1491033638000,
 "payment_confidence": "confirmed",
 "id": "05583406-45b9-445c-958a-b7d3a744fb19"
}


raise a 404, not found with invalid invoice id

Return an array of JSON serialized items
{
 "price": "45.00000000",
 "currency": "EUR",
 "label": "Ecco la prova vera",
 "uuid": "427c924f-bf19-461d-92ff-ae71e1bce582",
 "item_image": "/media/item_media/filter_merchant_2.png",
 "max_items": "10",
 "paid_item": {
  "1": "e52de918-1112-4e33-828b-d05c19e3d602",
  "2": "f50eca22-78b6-4d1f-9fab-f4d551719caf",
  ....
 },
 "video_link": "",
 "item_link": "https://inbitcoin.it/item/427c924f-bf19-461d-92ff-ae71e1bce582"
}


Merchant info can be find inside merchant_info field:
"merchant_info": {
  "link": "https://inbitcoin.it/pages/winebaritalia",
  "company": "Wine Bar Italia",
  "address": "Trento, Via d.t. eccezionale 1, 38068 Trento - Italia",
  "uuid": "TfHCZky1MkN6QKqmeTxJh1b5s3V39Kii2ZE",
  "description": "Delicious wines"
}

Return an array of JSON rates
[
 {
 "rate": 1,
 "code": "BTC",
 "name": "Bitcoin"
 },
 {
 "rate": 1227,
 "code": "USD",
 "name": "US Dollar"
 },
 {
  "rate": 1149.890412,
  "code": "EUR",
  "name": "Eurozone Euro"
 },
 ....
]


With currency as parameter return a single JSON rate
Example : /api/rates?currency=EUR
{
 "rate": 1149.028228,
 "total_vol": 17427.51,
 "code": "EUR",
 "name": "Eurozone Euro",
 "24h_avg": 1170.39
}