Get details on a Pix transaction

Valid for integration with the "Cielo2" provider.

ℹ️

Learn more about this feature in the documentation.

In the new Pix integration, there are no changes to the query request, only to the fields returned in the response. See details below.

Request

AmbienteMétodoEndpoint
Sandboxhttps://apiquerysandbox.braspag.com.br/v2/sales/{PaymentId}
Produçãohttps://apiquery.braspag.com.br/v2/sales/{PaymentId}

Path parameter

FieldTypeDescription
PaymentIdstringPayment identifier returned by the API when creating the Pix QR Code. Length: 36.

Header parameters

PropertyDescriptionTypeLengthRequired
MerchantIdMerchant identifier in the Gateway de Pagamento.text36Yes
MerchantKeyPublic key for dual authentication in the Gateway de Pagamento.text40Yes

Response

{
    "MerchantOrderId": "2cb...",
    "Customer": {
        "Name": "Luke Mueller",
        "Identity": "732...",
        "Address": {}
    },
    "Merchant": {
        "Id": "94e...",
        "TradeName": "BRASPAG..."
    },
    "Payment": {
        "EndToEndId": "E010...",
        "PaymentId": "5ad...",
        "Type": "Pix",
        "SentOrderId": "5ad...",
        "Amount": 268,
        "ReceivedDate": "2024-07-11 10:19:53",
        "Currency": "BRL",
        "Country": "BRA",
        "Provider": "Cielo2Pix",
        "ProviderDescription": "Cielo2Pix",
        "ReasonCode": 0,
        "Status": 2,
        "Links": [
            {
                "Method": "GET",
                "Rel": "self",
                "Href": "https://apiquerysandbox.braspag.com.br/v2/sales/5ad96db9-f771-4588-aee6-adb2abfd719b"
            }
        ]
    }
}

The following table lists the main parameters that may be returned by the Gateway de Pagamento when querying a Pix transaction:

FieldTypeDescription
MerchantOrderIdtextOrder identification number.
Payment.PaymentIdtextTransaction identifier.
Payment.EndToEndIdtextIdentifier of a completed Pix payment.
Payment.SentOrderIdtextIdentifier of the QR code generation request. Represents the txid.
Payment.StatusnumberTransaction status.
Payment.ReasonCodenumberReturn code.

Field Changes

Check the changes in the fields returned in the query when updating the provider from Cielo30 to Cielo2:

FieldsPrevious integrationNew integration (Cielo2)
SentOrderIdRepresented the MerchantOrderId.Now represents the txid.
AcquirerTransactionIdRepresented the QR Code ID.No longer exists.
ProofOfSaleRepresented the Pix NSU.No longer exists.
EndToEndIdDid not exist.Represents the identifier of the paid Pix.

All other fields remain the same.