Transport contract
| Field | Value |
|---|---|
ce-source | plugin-br-pix-jd |
| Topic | lerian.streaming.plugin-br-pix-jd |
| Schema version | 1.0.0 for every event |
| Content type | application/json |
| Delivery | At least once through the transactional outbox |
| Command topic | None |
| Runtime manifest | GET /v1/streaming/manifest |
STREAMING_ENABLED=true and OUTBOX_ENABLED=true together. If you set STREAMING_CLOUDEVENTS_SOURCE, its value must be exactly plugin-br-pix-jd. When streaming is off, the integration does not write lifecycle events to the streaming outbox.
Deduplicate on (ce-source, ce-id) and keep consumers idempotent. The integration provisions no command topic.
Event catalog
Everyce-type uses studio.lerian.plugin-br-pix-jd.<event-key>.
Transactions
| Event key | Fires when |
|---|---|
transaction.created | An external cash-out is persisted as pending, its pending Midaz posting exists, and the JDPI submission succeeds. |
transaction.executed | An internal transfer completes synchronously, a cash-in is applied, reconciliation settles an external cash-out, or your operator settles a Pix in manual review. A cash-in that a cautelar block holds carries cautelarBlock. |
transaction.refunded | A refund transaction is persisted and linked to the original transaction. |
transaction.failed | Reconciliation moves a pending external cash-out to its terminal error state and cancels the pending posting. It also fires when a received Pix closes as returned to its payer: status ERROR, pendingReason RETURNED, and no credit posted. It also fires when your antifraud partner refuses a Pix that you send and its status turns ERROR. It also fires when your operator reverts a Pix in manual review. |
transaction.manual-review-started | A Pix that you sent has no final answer from JD within the review time. Its status is still PENDING, the money of the payer stays held, and manualReview carries since. See Pix sent that waits for JD. |
transaction.blocked | A received Pix that your antifraud partner answered REVIEW is credited, and its amount is held in a cautelar block. cautelarBlock carries the status, the amount held and the deadline expiresAt. |
transaction.block-released | A cautelar block ends. cautelarBlock carries the final status and a releaseReason: ALLOW for an ALLOW, UNLOCKED for the release of a person after a DENY, EXPIRED for the deadline, RETURNED for a devolução of the held amount, and MED for a MED. |
transaction.block-fraud-confirmed | Your antifraud partner, or a person of your team, answers DENY on a received Pix under a cautelar block. The block stays until its deadline. See Decide a cautelar block. |
Refused received Pix
| Event key | Fires when |
|---|---|
cashin.denied | Account validation, synchronous or asynchronous, answers invalid for a received Pix, whatever the reason: AC03, DS04, DUPL, FRAD and the others. It covers a devolução and the credit of an indirect participant, and it does not need the antifraud check. It fires only when STREAMING_ENABLED is true. Its ce-id derives from the endToEndId, so a repeated validation of the same Pix gives the same event. |
DICT keys and claims
| Event key | Fires when |
|---|---|
key.registered | A key is registered in DICT and persisted as active. |
key.validation-requested | The integration stores and dispatches an ownership-validation challenge. |
key.confirmed | The submitted challenge is verified and the key leaves the waiting-for-confirmation state. |
key.deleted | A key is deleted in DICT and soft-deleted locally. |
key.claimed | A claim is opened in DICT and its identifier is persisted. |
key.claim-confirmed | The donor confirms the claim. |
key.claim-concluded | The claimer concludes the claim. |
key.claim-cancelled | The claim is cancelled. |
key.claim-received | Another participant opens a claim on a key that you hold. It is opt-in: set JOBS_CLAIM_RECEIVED_POLL_ENABLED=true. It fires once for each claim, and its ce-id derives from the claim id. |
Pix Automático authorizations
| Event key | Fires when |
|---|---|
authorization.requested | The receiving PSP requests an authorization and the integration persists it as requested. |
authorization.accepted | The payer accepts the authorization. |
authorization.rejected | The authorization transitions to rejected. |
authorization.activated | The authorization is confirmed successfully and transitions to active. |
authorization.cancelled | The authorization is cancelled and soft-deleted. A cancellation that you request fires this event only after JD reports that the counterparty accepted it. |
Pix Automático schedules
| Event key | Fires when |
|---|---|
schedule.requested | The receiving PSP requests a payment schedule and the integration persists it as requested. |
schedule.accepted | The schedule transitions to accepted. |
schedule.rejected | The schedule transitions to rejected. |
schedule.cancelled | The schedule is cancelled and soft-deleted. A cancellation that you request fires this event only after JD reports that the counterparty accepted it. |
Payload contracts
All timestamps are UTC RFC 3339 strings. Transaction and Pix Automático monetary values are integer centavos, not decimal strings or floating-point numbers. Fields marked with? are optional.
The wire contract encodes
amount, value, and payerMaxValue as JSON int64 number tokens. JavaScript consumers that accept the full int64 range must use lossless, BigInt-aware JSON parsing or reject values above Number.MAX_SAFE_INTEGER. Standard JSON.parse can round larger integers.interface FraudCheckData {
decision: string // ALLOW, REVIEW or DENY, as the partner answered
origin: string // PROVIDER, or FALLBACK when no valid answer came from the partner
cause?: string // why a FALLBACK answer was given
analysisId?: string
score?: string
reasons?: { code: string; description?: string }[] // the partner's own text
releasedBy?: string // the token subject of the person who released a cautelar block after a DENY
releasedAt?: string // when that person released it
}
interface ManualReviewData {
since: string // when the Pix entered manual review
action?: string // SETTLE or REVERT, once the operator resolved it
rail?: string // what JD said at the resolution: SETTLED, NOT_SETTLED or UNPROVEN
resolvedBy?: string // the token subject of the operator
resolvedAt?: string
}
interface CautelarBlockData {
status: string // BLOCKED, UNPLACED, RELEASED, RETURNING, RETURNED or MED
amount: number // int64 centavos held; 0 when nothing could be held
expiresAt: string // the deadline of the block
releaseReason?: string // on transaction.block-released: ALLOW, UNLOCKED, EXPIRED, RETURNED or MED
}
interface TransactionEventData {
id: string
jdpiRequestId?: string
indirectId?: string
endToEndId?: string
status: string
flow: number
type: number
amount: number // int64 centavos
accountId: string
isRefund: boolean
isInternal: boolean
refundType?: number
refundAccountId?: string
refundEndToEndId?: string
refundCode?: string
createdAt: string
updatedAt: string
midazPostingId?: string
creditPostingId?: string
organizationId?: string
ledgerId?: string
creditLedgerId?: string
conciliationId?: string
description?: string
refundTypeName?: string
holdReleased?: boolean
payerName?: string
payerDocument?: string
payerIspb?: string
payerBranch?: string
payerAccountNumber?: string
payerAccountDigit?: string
payerKey?: string
payerKeyType?: string
payeeName?: string
payeeDocument?: string
payeeIspb?: string
payeeBranch?: string
payeeAccountNumber?: string
payeeAccountDigit?: string
payeeKey?: string
payeeKeyType?: string
fraudCheck?: FraudCheckData // the antifraud partner's answer, when it screened the Pix
manualReview?: ManualReviewData // a Pix sent that is in manual review, or was resolved
cautelarBlock?: CautelarBlockData // a received Pix that a cautelar block holds
}
// cashin.denied carries this payload. It holds personal data, and the partner's free text.
interface CashinDeniedEventData {
endToEndId: string
originalEndToEndId?: string // for a refused devolução
conciliationId?: string // the QR txid
amount: number // int64 centavos
payerName?: string
payerDocument?: string
payerIspb?: string
payerBranch?: string
payerAccount?: string
payeeDocument?: string
payeeIspb?: string
payeeBranch?: string
payeeAccount?: string
payeeKey?: string
reasonCode: string
reasonPhrase: string
fraudCheck?: FraudCheckData
}
interface KeyEventData {
id: string
key: string
accountId: string
status: number
keyType: number
claimId?: string
claimType?: number
createdAt: string
updatedAt: string
}
// key.claim-received carries this payload, not KeyEventData.
interface ClaimReceivedEventData {
claimId: string
key: string
keyType: number
claimType: number
situation: number
claimerIspb: string
donorIspb: string
account?: { branch?: string; number: string }
resolutionDeadline?: string
conclusionDeadline?: string
}
interface AuthorizationEventData {
id: string
idRecorrencia: string
idReqJdPi?: string
idCancelamento?: string
tenantId?: string
status: number
frequency: number
value?: number // int64 centavos
payerMaxValue?: number // int64 centavos
recipientIspb?: string
recipientCnpj?: string
payerCpfCnpj?: string
contractNumber?: string
createdAt: string
updatedAt: string
}
interface ScheduleEventData {
id: string
endToEndId: string
idRecorrencia: string
idConciliacaoRecebedor?: string
idCancelamento?: string
tenantId?: string
status: number
finalidadeAgendamento: number
dtVencimento?: string
value?: number // int64 centavos
recipientIspb?: string
recipientCnpj?: string
payerCpfCnpj?: string
createdAt: string
updatedAt: string
}

