Lookup PIX key
Looks up a PIX key by JSON body value. This deployment’s own key registry is read FIRST — a retained BACEN answer can never outrank a local row (DICT 8.4 §1.1) — and only a key with no local row falls through to the retained BACEN answer and then to BACEN DICT. Returns ownerTaxId full and unmasked per BACEN API-DICT. A BACEN refusal such as EntryBlocked (judicial block) is relayed with its own token and HTTP status. A BACEN DICT answer this deployment cannot accept — a problem body whose signature does not verify, an entry whose account participant is not an ISPB, an entry whose key type and value do not form a valid key, or an entry naming a different key than requested — answers 502 with code SPI-1013 and none of that answer’s data.
Body
PIX key value to resolve — against this deployment's own key registry first, then a retained BACEN answer, then BACEN DICT
EndToEndId the pacs.008 this query feeds will carry (E{ISPB}{YYYYMMDD}{HHMM}{uniqueID}, 32 characters). Shaped exactly as the pacs.008 XSD types EndToEndIdType — the participant segment admits [0-9A-Z] and the unique tail is case-sensitive and may be lower-case — so this surface never refuses an id the wire it feeds accepts. Required: it is BACEN's own rate-limiting key for the query, and the id under which the ficha this query spends is credited back once the payment order is sent.
^E[0-9A-Z]{8}[0-9]{12}[a-zA-Z0-9]{11}$"E1234567820260220123456789012350"
CPF (11 digits) or CNPJ (14 alphanumeric characters, any case: upper-cased on receipt) of the end user originating this query — the payer of the payment order it feeds. Required: BACEN bills the query to this user's own request-limiting bucket, and every query by the same end user must carry the same identifier.
^([0-9]{11}|[A-Za-z0-9]{12}[0-9]{2})$"12345678901"
Opt into BACEN antifraud statistics blocks (ownerStatistics/keyStatistics) inline on the answer. Default false — trades one fewer round-trip on the payment path for a heavier response; has no effect when the key resolves from this deployment's own records, and forces a fresh directory query for a key that does not.
false
Who is asking, when it is not this deployment: an indirect participant's own ISPB (DICT 8.4 R079). Must be a participant this deployment is authorized to query for — its own direct, or an active indirect it sponsors; any other value is rejected, because BACEN bills the query and its antiscan debit to whoever this names. Omit and this deployment's own ISPB is sent.
^[A-Za-z0-9]{8}$"12345678"
Response
OK
Resolved PIX key details, including ownerTaxId full and unmasked per BACEN API-DICT

