Skip to main content
The client exposes the resources below. Each resource groups methods related to one API domain.
Reference based on the public contract of the @pagfinance/sdk package. The corresponding REST endpoints are documented in the API Reference.

Resource overview

assets

Price quotes and asset configuration. Public methods, no authentication.
Returns the configuration of the cryptocurrencies accepted by the platform.
Returns the payment gateway configuration.
Lists the available assets.
Returns the price of an asset in a fiat currency.

payments

Payment validation, quoting, creation, and lookup.
Validates a payment code (PIX, boleto, or gift card).
Requests a quote for a payment.
Creates a payment from a quote.
Submits the transaction of a created payment.
Lists the authenticated user’s payments.
Returns a specific payment by its identifier.

receipts

Transaction receipts, agnostic to the payment type.
Returns the receipt of a transaction. Agnostic: it works for PIX, boleto, and gift card.

kyc

Identity verification (natural persons and legal entities).

user

Authenticated user data.
Returns the authenticated user’s data.

auth

Authentication and token management. Full details in Authentication and Configuration.

Errors

Every method may throw PagFinanceError.