This page's content:

To query a payment and fetch its details, you must call the API method query. You can use either the hash or merchant_payment_code to find the payment.

Using the hash to find the payment:

Using the merchant_payment_code to find the payment:

A successful request will return a JSON expression similar to the one below.

if it’s a NRT boleto and there’s a NRT refund, then the sucess return will be shown as the example below.