支店個別情報 API

支店個別情報

一覧

  • GET /banks.json?page={page}&per={per}
  • GET /banks/search.json?kana={kana}
  • GET /banks/search.json?code={code}
  • GET /banks/search.json?name={name}
curl https://bank.teraren.com/banks.json

一覧

Status: 200

[
  {
  "code": "0000",
  "kana": "ニツポン",
  "name": "日本",
  "url": "https://bank.teraren.com/banks/0000.json",
  "branches_url": "https://bank.teraren.com/banks/0000/branches.json"
  },
  {
  "code": "0001",
  "kana": "ミズホ",
  "name": "みずほ",
  "url": "https://bank.teraren.com/banks/0001.json",
  "branches_url": "https://bank.teraren.com/banks/0001/branches.json"
  },
  {
  "code": "0005",
  "kana": "ミツビシトウキヨウUFJ",
  "name": "三菱東京UFJ",
  "url": "https://bank.teraren.com/banks/0005.json",
  "branches_url": "https://bank.teraren.com/banks/0005/branches.json"
  },
  {
  "code": "0009",
  "kana": "ミツイスミトモ",
  "name": "三井住友",
  "url": "https://bank.teraren.com/banks/0009.json",
  "branches_url": "https://bank.teraren.com/banks/0009/branches.json"
  },
  {
  "code": "0010",
  "kana": "リソナ",
  "name": "りそな",
  "url": "https://bank.teraren.com/banks/0010.json",
  "branches_url": "https://bank.teraren.com/banks/0010/branches.json"
  },
  ....
]

支店個別情報

GET /banks/{bank_code}.json

curl https://bank.teraren.com/banks/{bank_code}.json

レスポンス例

Status: 200

{
  "code": "0001",
  "kana": "ミズホ",
  "name": "みずほ",
  "created_at": "2015-01-26T13:02:31.000Z",
  "updated_at": "2015-01-26T13:02:31.000Z"
}

支店個別情報

一覧

  • GET /banks/{bank_code}/branches.json?page={page}&per={per}
  • GET /banks/{bank_code}/branches/search.json?kana={kana}
  • GET /banks/{bank_code}/branches/search.json?code={code}
  • GET /banks/{bank_code}/branches/search.json?name={name}
curl https://bank.teraren.com/banks/{bank_code}/branches.json

レスポンス例

Status: 200

[
  {
    "code": "001",
    "kana": "トウキヨウ",
    "name": "東京営業部",
    "url": "https://bank.teraren.com/banks/0001/branches/001.json"
  },
  {
    "code": "001",
    "kana": "トウキヨウトチヨウコウエイ",
    "name": "東京都庁公営企業出張所",
    "url": "https://bank.teraren.com/banks/0001/branches/001.json"
  },
  {
    "code": "004",
    "kana": "マルノウチチユウオウ",
    "name": "丸の内中央",
    "url": "https://bank.teraren.com/banks/0001/branches/004.json"
  },
  {
    "code": "005",
    "kana": "マルノウチ",
    "name": "丸之内",
    "url": "https://bank.teraren.com/banks/0001/branches/005.json"
  },
  {
    "code": "009",
    "kana": "カンダエキマエ",
    "name": "神田駅前",
    "url": "https://bank.teraren.com/banks/0001/branches/009.json"
  },
  {
    "code": "013",
    "kana": "チヨウソンカイカン",
    "name": "町村会館出張所",
    "url": "https://bank.teraren.com/banks/0001/branches/013.json"
  },
  {
    "code": "015",
    "kana": "ツキヂ",
    "name": "築地",
    "url": "https://bank.teraren.com/banks/0001/branches/015.json"
  },
  ....
]

支店個別情報

GET /banks/{bank_code}/branches/{branch_code}.json

curl https://bank.teraren.com/banks/{bank_code}/branches/{branch_code}.json

レスポンス例

Status: 200

{
  "code": "001",
  "kana": "トウキヨウ",
  "name": "東京営業部",
  "created_at": "2015-01-26T13:03:14.000Z",
  "updated_at": "2015-01-26T13:03:14.000Z"
}