Skip to main content
PATCH
/
v1
/
merchants
/
{merchantId}
/
pix-keys
/
{id}
Update a PIX key for a merchant
curl --request PATCH \
  --url https://api-sandbox.rinne.com.br/core/v1/merchants/{merchantId}/pix-keys/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "key_type": "EMAIL",
  "key": "[email protected]",
  "primary": false
}
'
{
  "id": "123e4567-e89b-12d3-a456-426614174001",
  "company_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793",
  "key_type": "EMAIL",
  "key": "[email protected]",
  "primary": false,
  "status": "ACTIVE",
  "deleted_at": null,
  "created_at": "2025-01-01T10:00:00.000Z",
  "updated_at": "2025-01-01T10:05:00.000Z",
  "dict_key_information": {
    "bank": "18236120",
    "account": "********",
    "branch": "0",
    "account_type": "********",
    "owner_name": "teste celcoin",
    "owner_document": "***778477**",
    "is_owned_by_company": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.rinne.com.br/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Company API key for authentication

Path Parameters

merchantId
string
required

The merchant ID

id
string
required

The PIX key ID

Body

application/json

Schema for updating a company PIX key

key_type
enum<string>

PIX key type

Available options:
CPF,
CNPJ,
EMAIL,
PHONE,
EVP
Example:

"EMAIL"

key
string

PIX key value

primary
boolean

Whether this is the primary PIX key

Example:

false

Response

PIX key updated successfully, including dict_key_information from the DICT lookup (or null if no snapshot could be persisted).

Company PIX key response

id
string<uuid>
required

PIX key ID

Example:

"123e4567-e89b-12d3-a456-426614174001"

company_id
string<uuid>
required

Company ID

Example:

"a3dbd0c2-9f79-4f86-8caa-47779b3f2793"

key_type
enum<string>
required

PIX key type

Available options:
CPF,
CNPJ,
EMAIL,
PHONE,
EVP
Example:

"EMAIL"

key
string
required

PIX key value

primary
boolean
required

Whether this is the primary PIX key

Example:

false

status
enum<string>
required

PIX key status

Available options:
ACTIVE,
DELETED
Example:

"ACTIVE"

deleted_at
string<date-time> | null
required

Deletion timestamp (null if not deleted)

Example:

null

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:05:00.000Z"

dict_key_information
object
required

Last persisted DICT key lookup snapshot for this PIX key (from create or update). Always present on every company and merchant PIX key response; use null when no snapshot is stored (for example legacy keys) or the stored snapshot is invalid.

Per BACEN's rules, DICT applies masking to protect against read attacks; fields such as account number, account type, and owner document may appear partially or fully masked (e.g. asterisks). Use the values as returned for any follow-up payment initiation on the same flow.