Bank Accounts

Get a list of all bank accounts

ENDPOINT
  GET /bankAccounts

SAMPLE CALL
  curl -u [your_bullet_username]:[your_api_key] https://accounts-app.bullethq.com/api/v1/bankAccounts


RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
[[{
    "id": 1,
    "name": "Business A/C",
    "accountNumber": "55512345",
    "bankName": "BOI",
    "iban": "IE01 BOBI 9301 2355 5123 45",
    "sortCode": "930123",
    "currency": "EUR",
    "type": "BANK_ACCOUNT"
}, {
    "id": 4,
    "name": "My Other Bank Account",
    "accountNumber": "9999999",
    "bankName": "AIB",
    "iban": "IE01 BOBI 3423 3932 3934 83",
    "sortCode": "123345",
    "currency": "EUR",
    "type": "BANK_ACCOUNT"
}]

Create a bank account

ENDPOINT
  POST /bankAccounts


SAMPLE CALL
    curl -u [your_bullet_username]:[your_api_key] \
    -H "Accept: application/json" \
    -H "Content-type: application/json" \
    --data @createBankAccount.json \
    -X POST \
    https://accounts-app.bullethq.com/api/v1/bankAccounts/


SAMPLE createBankAccount.json

{
    "name": "My Bank Account",
    "accountNumber": "1234567",
    "bankName": "AIB",
    "iban": "IE01 BOBI 9301 2355 5123 45",
    "sortCode": "93356",
    "type": "BANK_ACCOUNT"
}

RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
{
    "id": 3,
    "name": "My Bank Account",
    "accountNumber": "1234567",
    "bankName": "AIB",
    "iban": "IE01 BOBI 9301 2355 5123 45",
    "sortCode": "93356",
    "type": "BANK_ACCOUNT"
}

Get a bank account

ENDPOINT
  GET /bankAccounts/[bank_account_id]


SAMPLE CALL
    curl -u [your_bullet_username]:[your_api_key] \
    -H "Accept: application/json" \
    -H "Content-type: application/json" \
    -X GET \
    https://accounts-app.bullethq.com/api/v1/bankAccounts/3


RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
{
    "id": 3,
    "name": "My Bank Account",
    "accountNumber": "1234567",
    "bankName": "AIB",
    "sortCode": "93356",
    "type": "BANK_ACCOUNT"
}

Update a bank account

ENDPOINT
  PUT /bankAccounts/[bank_account_id]

SAMPLE updateBankAccount.json

{
    "name": "My Other Bank Account",
    "accountNumber": "9999999",
    "bankName": "AIB",
    "iban": "IE01 BOBI 9301 2355 5123 45",
    "sortCode": "123345",
    "type": "CREDIT_CARD"
}

SAMPLE CALL
    curl -u [your_bullet_username]:[your_api_key] \
    -H "Accept: application/json" \
    -H "Content-type: application/json" \
    --data @updateBankAccount.json \
    -X PUT \
    https://accounts-app.bullethq.com/api/v1/bankAccounts/4


RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
{
    "id": 4,
    "name": "My Other Bank Account",
    "accountNumber": "9999999",
    "bankName": "AIB",
    "iban": "IE01 BOBI 9301 2355 5123 45",
    "sortCode": "123345",
    "type": "CREDIT_CARD"
}

Delete a bank account

ENDPOINT
  DELETE /bankAccounts/[bank_account_id]

SAMPLE CALL
    curl -u [your_bullet_username]:[your_api_key]  \
    -H "Accept: application/json"  \
    -H "Content-type: application/json" \
    -X DELETE  \
    https://accounts-app.bullethq.com/api/v1/bankAccounts/4

RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
{
    "id": 4,
    "name": "My Other Bank Account",
    "accountNumber": "9999999",
    "bankName": "AIB",
    "iban": "IE01 BOBI 9301 2355 5123 45",
    "sortCode": "123345",
    "type": "CREDIT_CARD"
}}