Bank Transfers

Get a list of all bank transfers

ENDPOINT
  GET /bankTransfers

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


RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
[{
   "id":19,
   "fromBankAccountId":60,
   "fromBankAccountName":"My EUR Bank Account",
   "fromBankCurrency":"EUR",
   "toBankAccountId":62,
   "toBankAccountName":"My USD Bank Account",
   "toBankCurrency":"USD",
   "amountReceivedInBank":"450.00",
   "dateTransferred":"2015-01-05",
   "exchangeRate": 1.5,
   "amount":"300.00"
}, {
   "id":20,
   "fromBankAccountId":60,
   "fromBankAccountName":"My EUR Bank Account",
   "fromBankCurrency":"EUR",
   "toBankAccountId":61,
   "toBankAccountName":"My Other EUR Bank Account",
   "toBankCurrency":"EUR",
   "amountReceivedInBank":"50.00",
   "dateTransferred":"2015-01-05",
   "amount":"50.00"
}]

Create a bank transfer

When creating a bank transfer between banks of different currencies, the field "exchangeRate" is mandatory. If the banks are the same currency, this field can be omitted.

ENDPOINT
  POST /bankTransfers


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


SAMPLE createBankTransfer.json

{
  "fromBankAccountId": 60,
  "toBankAccountId": 62,
  "dateTransferred": "2015-01-01",
  "exchangeRate": 1.5,
  "amount": "500"
}

RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
{
   "id":19,
   "fromBankAccountId":60,
   "fromBankAccountName":"My EUR Bank Account",
   "fromBankCurrency":"EUR",
   "toBankAccountId":62,
   "toBankAccountName":"My USD Bank Account",
   "toBankCurrency":"USD",
   "amountReceivedInBank":"450.00",
   "dateTransferred":"2015-01-05",
   "exchangeRate": 1.5,
   "amount":"300.00"
}

Get a bank transfer

ENDPOINT
  GET /bankTransfers/[bank_transfer_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-intl.bullethq.com/api/v1/bankTransfers/19


RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
{
   "id":19,
   "fromBankAccountId":60,
   "fromBankAccountName":"My EUR Bank Account",
   "fromBankCurrency":"EUR",
   "toBankAccountId":62,
   "toBankAccountName":"My USD Bank Account",
   "toBankCurrency":"USD",
   "amountReceivedInBank":"450.00",
   "dateTransferred":"2015-01-05",
   "exchangeRate": 1.5,
   "amount":"300.00"
}

Update a bank transfer

ENDPOINT
  PUT /bankTransfers/[bank_transfer_id]

SAMPLE updateBankTransfer.json

{
  "fromBankAccountId": 60,
  "toBankAccountId": 61,
  "dateTransferred": "2015-01-01",
  "amount": "600"
}

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-intl.bullethq.com/api/v1/bankTransfers/19


RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
{
   "id": 19
   "fromBankAccountId":60,
   "fromBankAccountName":"My EUR Bank Account",
   "fromBankCurrency":"EUR",
   "toBankAccountId":61,
   "toBankAccountName":"My Other EUR Bank Account",
   "toBankCurrency":"EUR",
   "amountReceivedInBank":"600.00",
   "dateTransferred":"2015-01-05",
   "amount":"600.00"
}

Delete a bank transfer

ENDPOINT
  DELETE /bankTransfers/[bank_transfer_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-intl.bullethq.com/api/v1/bankTransfers/19

RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
{
   "id":19,
   "fromBankAccountId":60,
   "fromBankAccountName":"My EUR Bank Account",
   "fromBankCurrency":"EUR",
   "toBankAccountId":62,
   "toBankAccountName":"My USD Bank Account",
   "toBankCurrency":"USD",
   "amountReceivedInBank":"450.00",
   "dateTransferred":"2015-01-05",
   "exchangeRate": 1.5,
   "amount":"300.00"
}