Query transactions

Query transactions in Gateway de Pagamento

To query a transaction, use the Gateway de Pagamento API query service and provide the transaction PaymentId. You can query a transaction to review all its details or to check its status.

ℹ️

Go to the Gateway de Pagamento manual to view the query endpoints.


⚠️

The Pix payment method will be available soon!

Request

--request GET "https://apiquerysandbox.braspag.com.br/v2/sales/{PaymentId}"
--header "Content-Type: application/json"
--header "MerchantId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
--header "MerchantKey: 0123456789012345678901234567890123456789"
--header "RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
--data-binary
--verbose

Below are the field properties in this request:

Property (header)TypeSizeRequiredDescription
MerchantIdGuid36YesMerchant identifier in Split de Pagamento
MerchantKeyText40YesPublic key for dual authentication in Split de Pagamento
Content-TypeHeader40YesApplication/json
RequestIdGuid36NoRequest identifier defined by the merchant, used when the merchant uses different servers for each GET/POST/PUT.
Property (body)DescriptionTypeSizeRequired?
PaymentIdPayment identification number.Text36Yes (sent in the endpoint)

Response

{
   "MerchantOrderId": "2017051001",
   "Customer": {
      "Name": "Nome do Cliente",
      "Identity": "01234567789",
      "Email": "[email protected]",
      "Address": {
         "Street": "GONCALO DA CUNHA",
         "Number": "111",
         "ZipCode": "04140040",
         "City": "SAO PAULO",
         "State": "SP",
         "Country": "BRA",
         "District": "CHACARA INGLESA"
      }
   },
   "Merchant": {
      "Id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "TradeName": "Lojas Teste"
   },
   "Payment": {
      "ServiceTaxAmount": 0,
      "Installments": 1,
      "Interest": "ByMerchant",
      "Capture": true,
      "Authenticate": false,
      "Recurrent": false,
      "CreditCard": {
         "CardNumber": "455187******0181",
         "Holder": "Nome do Portador",
         "ExpirationDate": "12/2021",
         "Brand": "Visa"
      },
      "ProofOfSale": "2539492",
      "AcquirerTransactionId": "0510042539492",
      "AuthorizationCode": "759497",
      "Eci": "0",
      "Refunds": [
         {
            "Amount": 10000,
            "Status": 3,
            "ReceivedDate": "2017-05-15 16:25:38"
         }
      ],
      "Chargebacks": [
         {
            "Amount": 10000,
            "CaseNumber": "123456",
            "Date": "2017-06-04",
            "ReasonCode": "104",
            "ReasonMessage": "Outras Fraudes - Cartao Ausente",
            "Status": "Received",
            "RawData": "Client did not participate and did not authorize transaction"
         }
      ],
      "FraudAlert": {
         "Date": "2017-05-20",
         "ReasonMessage": "Uso Ind Numeração",
         "IncomingChargeback": false
      },
      "VelocityAnalysis": {
         "Id": "f8078b32-be17-4c35-b164-ad74c3cd0725",
         "ResultMessage": "Accept",
         "Score": 0
      },
      "PaymentId": "f8078b32-be17-4c35-b164-ad74c3cd0725",
      "Type": "CreditCard",
      "Amount": 10000,
      "ReceivedDate": "2017-05-10 16:25:38",
      "CapturedAmount": 10000,
      "CapturedDate": "2017-05-10 16:25:38",
      "VoidedAmount": 10000,
      "VoidedDate": "2017-05-15 16:25:38",
      "Currency": "BRL",
      "Country": "BRA",
      "Provider": "Simulado",
      "ProviderDescription": "Simulado",
      "ReasonCode": 0,
      "Status": 1,
      "Links": [
         {
            "Method": "GET",
            "Rel": "self",
            "Href": "https://apiquerysandbox.braspag.com.br/v2/sales/f8078b32-be17-4c35-b164-ad74c3cd0725"
         },
         {
            "Method": "PUT",
            "Rel": "capture",
            "Href": "https://apisandbox.braspag.com.br/v2/sales/f8078b32-be17-4c35-b164-ad74c3cd0725/capture"
         },
         {
            "Method": "PUT",
            "Rel": "void",
            "Href": "https://apisandbox.braspag.com.br/v2/sales/f8078b32-be17-4c35-b164-ad74c3cd0725/void"
         }
      ]
   }
}
{  
    "MerchantOrderId": "202411130002",  
    "AcquirerOrderId": "********************************",  
    "Customer": {  
        "Name": "Aline de Souza",  
        "Identity": "11122233344",  
        "Address": {}  
    },  
    "Payment": {  
        "Installments": 1,  
        "PaymentId": "69ffe23b-c3f3-4d60-90ac-46f57d32cadb",
        "EndToEndId": "E010...",  
        "Type": "Pix",  
        "Amount": 457,  
        "ReceivedDate": "2025-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"  
            } 
        ]  
    }  
} 
PropertyDescriptionTypeSizeFormat
MerchantOrderIdOrder identification number.Text50Alphanumeric text
Customer.NameShopper`s name.Text255Alphanumeric text
Customer.IdentityClient's CPF or CNPJ number.Text14Alphanumeric text
Customer.IdentityTypeShopper identification document type (CPF or CNPJ).Text255CPF or CNPJ
Customer.EmailShopper's email.Text255Alphanumeric text
Customer.BirthdateShopper`s birthdateDate10AAAA-MM-DD
Customer.Address.StreetShopper's address street.Text255Alphanumeric text
Customer.Address.NumberShopper's address numberText15Alphanumeric text
Customer.Address.ComplementShopper's address complementText50Alphanumeric text
Customer.Address.ZipCodeShopper's address ZIP CodeText9Alphanumeric text
Customer.Address.CityShopper's address city.Text50Alphanumeric text
Customer.Address.StateShopper's address state.Text2Alphanumeric text
Customer.Address.CountryShopper's address country.Text35Alphanumeric text
Customer.Address.DistrictShopper's address neighborhood.Text50Alphanumeric text
Customer.DeliveryAddress.StreetDelivery address street.Text255Alphanumeric text
Customer.DeliveryAddress.NumberDelivery address number.Text15Alphanumeric text
Customer.DeliveryAddress.ComplementDelivery address complement.Text50Alphanumeric text
Customer.DeliveryAddress.ZipCodeDelivery address ZIP code.Text9Alphanumeric text
Customer.DeliveryAddress.CityDelivery address city.Text50Alphanumeric text
Customer.DeliveryAddress.StateDelivery address state.Text2Alphanumeric text
Customer.DeliveryAddress.CountryDelivery address country.Text35Alphanumeric text
Customer.DeliveryAddress.DistrictDelivery address district.Text50Alphanumeric text
Merchant.IdIdentifier of the merchant that processed this transaction.GUID36xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Merchant.TradeNameTrade name.Text50Alphanumeric text
Payment.ProviderPayment method provider name.Text15Alphanumeric text
Payment.TypePayment method type.Text100E.g.: "CreditCard"
Payment.AmountOrder amount in cents.Number1510000
Payment.ServiceTaxAmountAmount from the authorization value that should be allocated to the service fee. Note: This amount is not added to the authorization value.Number1510000
Payment.CurrencyCurrency in which the payment will be made.Text3BRL / USD / MXN / COP / CLP / ARS / PEN / EUR / PYN / UYU / VEB / VEF / GBP
Payment.CountryCountry in which the payment will be made.Text3BRA
Payment.InstallmentsNumber of installments.Number26
Payment.InterestType of installment.Text10Merchant ("ByMerchant") or issuer ("ByIssuer")
Payment.CaptureIndicates whether the authorization should include automatic capture or not. You must check with the acquirer for the availability of this feature.Boolean
true / false (default)
Payment.AuthenticateIndicates whether the transaction should be authenticated or not. You must check with the acquirer for the availability of this feature. Authenticate must be "false" when Recurrent is "true".Boolean
true / false (default)
Payment.RecurrentIndicates whether the transaction is recurring or not. Setting this field to "true" will not create a new recurrence; it only allows the transaction to be processed without sending the CVV. Applicable only for Cielo transactions. Authenticate must be "false" when Recurrent is "true".Boolean
true / false (default)
Payment.SoftDescriptorText that will appear on the cardholder's statement.Texto13Alphanumeric text
Payment.ExtraDataCollection.NameName of the field where the extra data will be stored.Text50Alphanumeric text
Payment.ExtraDataCollection.ValueValue of the field where the extra data will be stored.Text1024Alphanumeric text
Payment.AcquirerTransactionIdTransaction ID at the payment method provider.Text40Alphanumeric text
Payment.ProofOfSaleSales receipt number.Text20Alphanumeric text
Payment.AuthorizationCodeAuthorization code.Text300Alphanumeric text
Payment.Refunds.AmountRefunded amount, in cents.Number1510000
Payment.Refunds.StatusRefund status.Number1Received = 1
Sent = 2
Approved = 3
Denied = 4
Rejected = 5
Payment.Refunds.ReceivedDateRefund date.Text19AAAA-MM-DD HH:mm:SS
Payment.Chargebacks[n].AmountChargeback amount in cents.Number1510000
Payment.Chargebacks[n].CaseNumberChargeback case number.Text16Alphanumeric text
Payment.Chargebacks[n].DateChargeback date.Date10AAAA-MM-DD
Payment.Chargebacks[n].ReasonCodeChargeback reason code.
Value List - ReasonCode.
Text10Alphanumeric text
Payment.Chargebacks[n].ReasonMessageChargeback reason message.
Value List - ReasonMessage.
Text512Alphanumeric text
Payment.Chargebacks[n].StatusChargeback status.
Value List - Status.
Text32Text
Payment.Chargebacks[n].RawDataData sent by the acquirer, which may be the cardholder or another message.Text512Alphanumeric text
Payment.FraudAlert.DateFraud alert date.Date10AAAA-MM-DD
Payment.FraudAlert.ReasonMessageFraud alert reason message.Text512Alphanumeric text
Payment.FraudAlert.IncomingChargebackFlag that identifies whether the transaction has a chargeback that occurred before the fraud alert.Boolean5Text
Payment.PaymentIdOrder identifier field.Guid36xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Payment.ReceivedDateDate when the transaction was received by Split.Text19AAAA-MM-DD HH:mm:SS
Payment.ReasonCodeAcquirer return code.Text32Alphanumeric text
Payment.ReasonMessageAcquirer return message.Text512Alphanumeric text
Payment.CapturedAmountCaptured amount.Number1510000
Payment.CapturedDateCapture date.Text19AAAA-MM-DD HH:mm:SS
Payment.VoidedAmountVoided amount in cents.Number1510000
Payment.VoidedDateVoid date.Text19AAAA-MM-DD HH:mm:SS
Payment.StatusTransaction status.Byte2E.g.: "1"
Payment.ProviderPayment provider.Text32Simulado
Payment.ProviderDescriptionName of the acquirer that processed the transaction.Text512Simulado
CreditCard.CardNumberShopper card number.Text16
CreditCard.HolderName of the cardholder printed on the card. Note: Field size rules may vary depending on the acquirer.Text25
CreditCard.ExpirationDateExpiration date printed on the card.Text7MM/AAAA
CreditCard.BrandCard brand.Text10
CreditCard.SaveCardIndicates whether the card will be saved to generate the token (CardToken).Boolean
true / false (default)