Skip to main content
Use these examples when your service owns payout creation, cancellation, and reconciliation. All examples assume a configured client from the TypeScript SDK Quickstart.

Resource methods

Create a transfer

Request amount and list-item amounts are numeric cents. Create, retrieve, and cancel responses expose the gross data.amount as a decimal string. Supported Pix key types are CPF, CNPJ, EMAIL, PHONE, and EVP.

Retrieve and reconcile

Use retrieve calls for back-office screens, reconciliation jobs, and delayed state checks.

List transfers

List responses include next_cursor, prev_cursor, and total. Use those fields when building your own paginated UI.

List with auto-pagination

Use auto-pagination for batch jobs, exports, and reconciliation tasks that should consume all available pages.

Cancel safely

Cancellation is available only in supported transfer states. If cancellation fails, inspect the typed SDK error and reconcile the transfer before retrying.

Response shape

Create, retrieve, and cancel methods return { data, meta }. List methods return { data, meta }, where data is a cursor envelope:

Common rule

Use pix_key_type and pix_key_value in SDK and API examples. Do not use undocumented input fields such as pix_key or recipient_name.