Remove a Pix QR Code

Valid for integration with the "Cielo2" provider.

This is the new Pix integration you should follow starting 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.braspag.com.br/v2/sales/

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

Path parameters

FieldTypeDescriptionRequired
PaymentIdstringPayment identification number, returned by the API when creating the Pix QR Code. Length: 36.Yes

Header parameters

PropertyDescriptionTypeSizeRequired
MerchantIdMerchant identifier in Gateway de Pagamento.Text36Yes
MerchantKeyPublic key for dual authentication in Gateway de Pagamento.Text40Yes
RequestIdRequest identifier, used when the merchant uses different servers for each GET/POST/PUT.Text36No

Response

{
    "Status": 2,
    "ReasonCode": 8,
    "ReasonMessage": "Scheduled",
    "ProviderReturnCode": "0",
    "ProviderReturnMessage": "QRCode Pix removido com sucesso",
    "Links": [
        {
            "Method": "GET",
            "Rel": "self",
            "Href": "https://apiquerysandbox.braspag.com.br/v2/sales/34fc280a-8b98-44c9-bc8f-5911bbeef952"
        },
        {
            "Method": "PUT",
            "Rel": "void",
            "Href": "https://apisandbox.braspag.com.br/v2/sales/34fc280a-8b98-44c9-bc8f-5911bbeef952/void"
        }
    ]
}

The table below shows the main parameters that may be returned by the Gateway de Pagamento when removing a Pix QR Code:

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