Create bank account for the current user

POST /users/{user_id}/bank_accounts

Create bank account for the current user.

Path parameters

  • user_id string Required

    User id

Body Required

Bank account information

  • bank_account object
    Hide bank_account attributes Show bank_account attributes object
    • iban string Required
    • bic string

      Minimum length is 8, maximum length is 11.

    • bank_name string
    • account_owner string Required

Responses

  • 422

    Request body has errors or invalid.

  • 201

    Bank account created and returned

    Hide response attributes Show response attributes object
    • id string(uuid)
    • iban string
    • bic string
    • bank_name string
    • account_owner string
  • 401

    Authorization information is missing or invalid.

POST /users/{user_id}/bank_accounts
curl \
 -X POST https://client-subdomain.bitbond.net/api/v1/users/{user_id}/bank_accounts \
 -H "Content-Type: application/json" \
 -d '{"bank_account":{"iban":"string","bic":"string","bank_name":"string","account_owner":"string"}}'
Request example
{
  "bank_account": {
    "iban": "string",
    "bic": "string",
    "bank_name": "string",
    "account_owner": "string"
  }
}
Request examples
{
  "bank_account": {
    "iban": "string",
    "bic": "string",
    "bank_name": "string",
    "account_owner": "string"
  }
}
Response examples (201)
{
  "id": "string",
  "iban": "string",
  "bic": "string",
  "bank_name": "string",
  "account_owner": "string"
}
Response examples (201)
{
  "id": "string",
  "iban": "string",
  "bic": "string",
  "bank_name": "string",
  "account_owner": "string"
}