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, but there are changes to the fields returned in the response. See the details below.

Request

EnvironmentMethodEndpoint
Sandboxhttps://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/{PaymentId}
Productionhttps://apiquery.cieloecommerce.cielo.com.br/1/sales/{PaymentId}

Path parameter

FieldTypeDescription
PaymentIdstringPayment identification number, returned by the API when creating the Pix QR Code. Size: 36.

Header parameters

PropertyDescriptionTypeSizeRequired
MerchantIdMerchant identifier in the Cielo E-commerce API.GUID36Yes
MerchantKeyPublic key for dual authentication in the Cielo E-commerce API.string40Yes
RequestIdRequest identifier, used when the merchant uses different servers for each GET/POST/PUT.GUID36No

Response

{
    "MerchantOrderId": "********************************",
    "AcquirerOrderId": "********************************",
    "Customer": {
        "Name": "Aline de Souza",
        "Identity": "***********",
        "Address": {}
    },
    "Payment": {
        "Installments": 1,
        "PaymentId": "********-****-****-****-************",
        "EndToEndId": "E010...",
        "Type": "Pix",
        "Amount": 457,
        "ReceivedDate": "2024-12-02 11:15:39",
        "Currency": "BRL",
        "Country": "BRA",
        "Status": 2,
        "Links": [
            {
                "Method": "GET",
                "Rel": "self",
                "Href": "https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/660589f1-1076-4c8e-80fd-b001942f8915"
            }
        ]
    }
}

The following table presents the main parameters that can be returned by the API when querying a Pix transaction:

FieldTypeDescription
AcquirerOrderIdstringOrder identification number sent to the provider. Represents the txid.
Payment.PaymentIdstringTransaction identifier.
Payment.EndToEndIdstringIdentifier of a paid Pix.
Payment.StatusnumberTransaction status.

Field updates

See the changes in the fields returned in the query when updating the Cielo provider to Cielo2:

FieldsPrevious integrationNew integration (Cielo2)
AcquirerOrderIdRepresented the Ecommerce Order IdNow represents the txid
TidRepresented the QR Code ID.No longer exists.
ProofOfSaleRepresented the Pix NSU.No longer exists.
EndToEndIdDid not exist.Represents the identifier of the paid Pix.

The other fields remain unchanged.