Skip to main content
PIX transfer by key allows clients to resolve payee details and confirm the fund transfer in a two-step sequence (Pre-flight Pattern).

Flow Overview

Image
  1. Initiation (key-initiate): Resolves the PIX key, validates payee information, and creates a temporary reference (ref_id) valid for 1 minute.
  2. Confirmation (key-confirm): Consumes the generated ref_id to execute the payment in BRL.

Authentication and Headers

All requests require HMAC-SHA256 authentication. Header requirements depend on the credential type being used:
Credential Notes:
  • ACCOUNT: Credentials bound directly to a single account. Omit X-ISPB and X-Account-Number.
  • USER: Requires both X-ISPB and X-Account-Number present in headers and included in the canonical header set prior to calculating X-Signature.
  • PLATFORM: Not accepted on these endpoints.

Step 1: Initiate Key Resolution

POST /v3/transfers/pix/key-initiate Resolves a PIX key against DICT and creates a temporary reference (ref_id) bound to the initiating account.

Request Body

Success Response Data (data)

Curl Example — Initiation

Request: Bash

Step 2: Confirm Transfer

POST /v3/transfers/pix/key-confirm Executes the PIX transfer by consuming the ref_id created during initiation.

Request Body

Success Response Data (data)

Note: The synchronous response from the confirmation endpoint may carry a non-final status (txn_status). If needed, poll the status endpoint using a fresh nonce.

Curl Example — Confirmation

Request: Bash

Authentication and Headers

All requests require HMAC-SHA256 authentication. Header requirements depend on the credential type being used:
Credential Notes:
  • ACCOUNT: Credentials bound directly to a single account. Omit X-ISPB and X-Account-Number.
  • USER: Requires both X-ISPB and X-Account-Number present in headers and included in the canonical header set prior to calculating X-Signature.
  • PLATFORM: Not accepted on these endpoints.

Error Matrix

Endpoint-specific error codes for the PIX key transfer flow, in addition to standard signature and timestamp verification errors:

Business Rules & Best Practices

  • Reference Lifetime (ref_id): The ref_id carries a time-to-live (TTL) of 60 seconds. It represents preflight lookup state and does not function as an idempotency key.
  • Single-Use Reference: The ref_id is purged immediately upon a successful payment response. It cannot be reused for subsequent confirmation attempts.
  • Currency: Transfer currency is permanently set to BRL.
  • merchant_order_id Format: Order identifiers must begin with a UTC date prefix formatted as YYMMDD (e.g., 261031-order-001). Requests are rejected if the date string drifts beyond UTC ±1 hour.