client from the TypeScript SDK Quickstart.
Resource methods
| Method | API operation | Use |
|---|---|---|
client.transactions.create(params, opts?) | POST /v2/transactions | Create Pix, voucher, card, or other supported payment methods. |
client.transactions.retrieve(id, opts?) | GET /v2/transactions/{id} | Read the current transaction state. |
client.transactions.list(params?, opts?) | GET /v2/transactions | List transactions with cursor pagination and filters. |
client.transactions.update(id, params, opts?) | PUT /v2/transactions/{id} | Update a sandbox/test transaction status. |
client.transactions.refund(id, params?, opts?) | PUT /v2/transactions/{id}/refund | Refund a transaction. |
client.transactions.listAutoPagingIterator(params?, opts?) | Cursor helper | Iterate every item across pages. |
Create a Pix payment
amount and product price are in cents.
Create a voucher payment
Usemethod: "voucher" for Boleto in Brazil, SPEI or bank transfer in Mexico, Mercado Pago or local voucher options in Argentina, Webpay in Chile, PSE in Colombia, and other configured country-specific payment instructions.
boleto, spei, webpay, or mercadopago. The API receives voucher and chooses the local payment option from the company’s payment setup, currency, and country.
The normalized voucher object can include barcode, digitable_line, url, expiration_date, instructions, and receipt_url. These fields are nullable because each local payment option returns a different instruction format.
Create a card payment from a Payment Element token
Use the browser SDK v3 to collect card details and send only the resultingpgct_* token to your backend.
Retrieve and reconcile
List with filters
id, paymentMethods, status, deliveryStatus, installments, name, email, documentNumber, phone, and traceable.
List with auto-pagination
list(...) directly when you need to expose next_cursor, prev_cursor, or total to your own UI.
Refund safely
idempotencyKey.
Update sandbox transaction status
transactions.update(...) is intended for test/sandbox flows.
Response shape
Create, retrieve, update, and refund methods return{ data, meta }.
List methods return { data, meta }, where data is a cursor envelope:

