Skip to main content
PATCH
/
v1
/
dict
/
entries
/
{entry_id}
Update an Entry
curl --request PATCH \
  --url https://plugin-pix-indirect.api.lerian.net/v1/dict/entries/{entry_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Account-Id: <x-account-id>' \
  --header 'X-Reason: <x-reason>' \
  --data '
{
  "account": {
    "branch": "0001",
    "number": "123456789",
    "type": "TRAN"
  },
  "owner": {
    "name": "John Doe",
    "tradeName": "Johns Store"
  }
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440010",
  "key": "[email protected]",
  "keyType": "EMAIL",
  "status": "ACTIVE",
  "account": {
    "branch": "0001",
    "number": "123456789",
    "participant": "12345678",
    "type": "TRAN"
  },
  "owner": {
    "name": "John Doe",
    "taxIdNumber": "12345678901",
    "type": "NATURAL_PERSON"
  },
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Account-Id
string
required

Unique identifier of the Midaz Ledger Account (UUID format).

X-Reason
enum<string>
required

Specifies the reason for Pix key entry update. Valid values: USER_REQUESTED, BRANCH_TRANSFER, RECONCILIATION.

Available options:
USER_REQUESTED,
BRANCH_TRANSFER,
RECONCILIATION

Path Parameters

entry_id
string
required

Unique identifier of the Pix entry (UUID format).

Body

application/json
account
object
required

Updated account information.

owner
object
required

Updated owner information.

metadata
object

Optional key-value map for updating custom attributes.

Response

Entry updated successfully in DICT and local database.

id
string

Unique identifier of the entry (UUID format).

Example:

"550e8400-e29b-41d4-a716-446655440010"

key
string

Pix key value.

keyType
string

Type of Pix key.

Example:

"EMAIL"

status
string

Entry status (ACTIVE, INACTIVE).

Example:

"ACTIVE"

account
object
owner
object
createdAt
string<date-time>

Creation timestamp.

Example:

"2024-01-15T10:30:00Z"

updatedAt
string<date-time>

Last update timestamp.

Example:

"2024-01-15T10:30:00Z"