Remove a Pix QR Code

Valid for integration with the "Cielo2" provider.

This is the new Pix integration you should follow from 09/01.

ℹ️

Learn more about this feature in the documentation.

You can remove a previously generated Pix QR Code if it has not been paid. If the Pix has already been paid, see how to request a Pix refund.

Request

EnvironmentMethodEndpoint
Productionhttps://api.cieloecommerce.cielo.com.br/1/sales/{PaymentId}/void

The new Pix integration does not yet have a sandbox environment available.

Path parameters

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

{
    "Status": 2,
    "ReasonCode": 8,
    "ReasonMessage": "Scheduled",
    "ProviderReturnCode": "0",
    "ProviderReturnMessage": "OPERACAO REALIZADA COM SUCESSO",
    "ReturnCode": "0",
    "ReturnMessage": "OPERACAO REALIZADA COM SUCESSO",
    "Links": [
        {
            "Method": "GET",
            "Rel": "self",
            "Href": "https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/b8c1b2ea-e06a-4135-9389-8bdbdccacd20"
        },
        {
            "Method": "PUT",
            "Rel": "void",
            "Href": "https://apisandbox.cieloecommerce.cielo.com.br/1/sales/b8c1b2ea-e06a-4135-9389-8bdbdccacd20/void"
        }
    ]
}

The following table presents the main parameters that can be returned by the API when removing a Pix QR Code:

FieldTypeDescription
StatusnumberTransaction status.
ReasonCodenumberReturn code.
ReasonMessagenumberReturn message.
ProviderReturnCodenumberProvider return code.
ProviderReturnMessagestringProvider return message.