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.acceptedCryptos()
acceptedCryptos()
Returns the configuration of the cryptocurrencies accepted by the platform.
gatewayConfig()
gatewayConfig()
Returns the payment gateway configuration.
assets()
assets()
Lists the available assets.
getAssetPrice({ assetId, fiatCurrency })
getAssetPrice({ assetId, fiatCurrency })
Returns the price of an asset in a fiat currency.
payments
Payment validation, quoting, creation, and lookup.validateCode({ code })
validateCode({ code })
Validates a payment code (PIX, boleto, or gift card).
quote(req)
quote(req)
Requests a quote for a payment.
create(req)
create(req)
Creates a payment from a quote.
submit(req)
submit(req)
Submits the transaction of a created payment.
list()
list()
Lists the authenticated user’s payments.
get(id)
get(id)
Returns a specific payment by its identifier.
receipts
Transaction receipts, agnostic to the payment type.get({ type, tx, chain })
get({ type, tx, chain })
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.me()
me()
Returns the authenticated user’s data.
auth
Authentication and token management. Full details in Authentication and Configuration.Errors
Every method may throwPagFinanceError.