Shivtr

Bank

The bank is a storage for items your members donate, buy or want. The Bank API lets you fetch items, transactions and members.

Bank Items API
Fetch list of bank items
GET /bank/items.json

Show bank item 1000
GET /bank/items/1000.json


List Object
{
"items": [
{
"id": 7000,
"name": "Hallowed Crown",
"description": "Its shiny!",
"value": 50,
"donate_count": 20,
"buy_count": 5,
"avail_count": 15,
"created_on": "2007-02-17T21:09:38-05:00",
"bank_category": {
"id": 3000,
"name": "Armor"
}
}
]
}


Show Object
{
"bank_item": {
"id": 7000,
"name": "Hallowed Crown",
"description": "Its shiny!",
"value": 50,
"donate_count": 20,
"buy_count": 5,
"avail_count": 15,
"created_on": "2007-02-17T21:09:38-05:00",
"bank_category": {
"id": 3000,
"name": "Armor"
},
"bank_transactions": [
{
"id": 100,
"quantity": 1,
"action": "Donate",
"created_on": "2007-02-17T21:09:38-05:00",
"member": {
"id": 150,
"display_name": "Nazgum"
}
}
]
}
}


Bank Transactions API
Fetch list of bank transactions
GET /bank/transactions.json

Show bank transaction 1000
GET /bank/transactions/1000.json


List Object
{
"transactions": [
{
"id": 9000,
"quantity": 1,
"action": "Donate",
"created_on": "2007-02-17T21:09:38-05:00",
"bank_item": {
"id": 4500,
"name": "Hammer of Uplifting Dreams"
},
"member": {
"id": 150,
"display_name": "Nazgum"
}
}
]
}


Show Object
{
"bank_transaction": {
"id": 9000,
"quantity": 1,
"action": "Donate",
"created_on": "2007-02-17T21:09:38-05:00",
"bank_item": {
"id": 4500,
"name": "Hammer of Uplifting Dreams"
},
"member": {
"id": 150,
"display_name": "Nazgum"
}
}
}


Bank Members API
Fetch list of bank members
GET /bank/members.json

Show bank member 1000
GET /bank/members/1000.json


List Object
{
"members": [
{
"id": 150,
"display_name": "Nazgum",
"points": 4000
}
]
}


Show Object
{
"bank_member": {
"id": 150,
"display_name": "Nazgum",
"points": 4000
}
}