storeClientBankAccount
POST/api/clients/:document/bank-accounts
Create a new bank account for a client
Request
Path Parameters
document stringrequired
Client document
Example: 12345678901
- application/json
Body
required
bank_ispb bank_ispb (string)required
Bank ISPB
account_number account_number (string)required
Account number
account_branch account_branch (string)required
Account branch
Responses
- 201
- 401
- 404
- 422
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
id id (integer)
Client Bank Account id
bank_ispb bank_ispb (string)
Bank ISPB
account_number account_number (string)
Account number
account_branch account_branch (string)
Account branch
{
"id": "1",
"bank_ispb": "00001234",
"account_number": "123456",
"account_branch": "1234"
}
Unauthenticated
- application/json
- Schema
- Example (from schema)
Schema
message message (integer)
Response 401
{
"message": "Invalid x-api-key"
}
Client Not Found
- application/json
- Schema
- Example (from schema)
Schema
message message (string)
Response 404
{
"message": "Resource not found"
}
Unprocessable Entity
- application/json
- Schema
- Example (from schema)
Schema
message message (string)
Error message
errors undefined[]
Errors occurred during data validation request
{
"message": "string",
"errors": [
null
]
}
Error
Loading...