API DOCUMENTATION

This is very rough initial api documentation. All api calls are to be made to https://bitlab.io/api as POST requests. Later on we'll have a JSON websockets api aswell where you can subscribe to realtime data. In the examples you need to change the values that look like this.

PUBLIC API:

List of shops owned by a username

{request:"shops_list_by_owner": owner:"username"}

List of items in a specific shop by unique shopnumber

You can get the shopnumber from the url

{request:"shop_items_list": shopnumber:"shopnumber"}

Subscribe to public feed

This provides a realtime notification on all public activity such as sales, ratings and comments.

API CALLS THAT REQUIRE API KEYS:

Create a new item

{request:"create_item", name: ""}

The server will respond with a uniqueID code for this item you can then use to update the item price, description and so on.

Update an item's information

{request:"item_update", uniqueID: "" name: "", price: "", description: "", itemtype: ""}

Account balance

With this you can find out what is the account's balance.

Account deposit address

Get a bitcoin wallet address for depositing funds

API CALLS THAT REQUIRE ADVANCED API KEYS and ENABLED on account

Make a purchase

You can procedurally make a buy order on an item provided your account has enough funds, and the supplied has enough items in stock.

Account request withdrawal

Request bitcoin be sent from an account to an external wallet.