Skip to main content
PATCH
/
v1
/
merchants
/
{merchantId}
/
bank-accounts
/
{id}
Update bank account information for a merchant
curl --request PATCH \
  --url https://api-sandbox.rinne.com.br/core/v1/merchants/{merchantId}/bank-accounts/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "branch_number": "0001",
  "account_number": "12345678",
  "account_type": "CHECKING",
  "account_holder_name": "John Doe Silva",
  "ispb": "12345678",
  "primary": false
}'
{
  "id": "507f1f77bcf86cd799439011",
  "company_id": "507f1f77bcf86cd799439012",
  "account_holder_name": "John Doe Silva",
  "account_holder_document_number": "12345678901",
  "branch_number": "0001",
  "account_number": "12345678",
  "account_type": "CHECKING",
  "ispb": "12345678",
  "status": "ACTIVE",
  "deleted_at": null,
  "primary": false,
  "created_at": "2025-01-01T10:00:00.000Z",
  "updated_at": "2025-01-01T10:00:00.000Z"
}

Authorizations

x-api-key
string
header
required

Company API key for authentication

Path Parameters

merchantId
string
required

The merchant ID

id
string
required

The bank account ID

Body

application/json

Schema for updating a company bank account

branch_number
string

Branch number

Example:

"0001"

account_number
string

Account number

Example:

"12345678"

account_type
enum<string>

Account type

Available options:
CHECKING,
SAVINGS,
SALARY,
PAYMENT
Example:

"CHECKING"

account_holder_name
string

Account holder full name

Example:

"John Doe Silva"

ispb
string

ISPB (Brazilian Payment System Identifier)

Example:

"12345678"

primary
boolean

Whether this is the primary bank account

Example:

false

Response

Bank account updated successfully

Company bank account response

id
string<uuid>
required

Bank account ID

Example:

"507f1f77bcf86cd799439011"

company_id
string<uuid>
required

Company ID

Example:

"507f1f77bcf86cd799439012"

account_holder_name
string
required

Account holder full name

Example:

"John Doe Silva"

account_holder_document_number
string
required

Account holder document number

Example:

"12345678901"

branch_number
string
required

Branch number

Example:

"0001"

account_number
string
required

Account number

Example:

"12345678"

account_type
enum<string>
required

Account type

Available options:
CHECKING,
SAVINGS,
SALARY,
PAYMENT
Example:

"CHECKING"

ispb
string
required

ISPB (Brazilian Payment System Identifier)

Example:

"12345678"

status
enum<string>
required

Account status

Available options:
ACTIVE,
DELETED
Example:

"ACTIVE"

deleted_at
string<date-time> | null
required

Deletion timestamp (null if not deleted)

Example:

null

primary
boolean
required

Whether this is the primary bank account

Example:

false

created_at
string<date-time>
required

Creation timestamp

Example:

"2025-01-01T10:00:00.000Z"

updated_at
string<date-time>
required

Last update timestamp

Example:

"2025-01-01T10:00:00.000Z"