Create a non-authenticated debit card payment

EnvironmentMethodEndpoint
Sandboxhttps://apisandbox.braspag.com.br/v2/sales/
Productionhttps://apiquerysandbox.braspag.com.br/v2/sales/

Request

{  
   "MerchantOrderId":"2017051001",
   "Customer":{  
      "Name":"Nome do Comprador",
      "Identity":"12345678909",
      "IdentityType":"CPF",
      "Email":"[email protected]",
      "Birthdate":"1991-01-02",
      "IpAddress":"127.0.0.1",
      "Address":{  
         "Street":"Alameda Xingu",
         "Number":"512",
         "Complement":"27 andar",
         "ZipCode":"12345987",
         "City":"São Paulo",
         "State":"SP",
         "Country":"BRA",
         "District":"Alphaville"
      },
      "DeliveryAddress":{  
         "Street":"Alameda Xingu",
         "Number":"512",
         "Complement":"27 andar",
         "ZipCode":"12345987",
         "City":"São Paulo",
         "State":"SP",
         "Country":"BRA",
         "District":"Alphaville"
      }
   },
      "Payment": {
         "Provider": "Cielo30",
         "Type": "DebitCard",
         "Amount": 10000,
         "Currency": "BRL",
         "Country": "BRA",
         "Installments": 1,
         "Capture": true,
         "Authenticate": false,
         "DebitCard":{
            "CardNumber":"5067220000000001",
            "Holder":"Nome do Portador",
            "ExpirationDate":"12/2021",
            "SecurityCode":"123",
            "Brand":"Elo"
            "CardOnFile":{
              "Usage":"Used",
              "Reason":"Unscheduled"
        },
        [...]
    }
}
PropertyDescriptionTypeSizeRequired?
Payment.ProviderName of payment method provider. Applicable to "Cielo30" only.Text15Yes
Payment.TypePayment method type. In this case, "DebitCard".Text100Yes
Payment.AmountOrder amount in cents.Number15Yes
Payment.InstallmentsNumber of installments. For this type, always use "1".Number2Yes
DeditCard.CardNumberCustomer's card number.Text16Yes
DeditCard.HolderName of cardholder printed on the card.Text25Yes
DebitCard.ExpirationDateExpiration date printed on the card, in the MM/YYYY format.Text7Yes
DebitCard.SecurityCodeSecurity code printed on the back of the card.Text4Yes
DebitCard.BrandCard brand. For this type, always use "Elo".Text10Yes
DebitCard.CardOnFile.Usage"First" if the card has been stored and it is your first use.
"Used" if the card has been stored and it has been used previously in another transaction.

Applicable to Provider Cielo only.
Text-No
DebitCard.CardOnFile.ReasonIndicates the purpose of the card storage, in case the Usage field is "Used".

"Recurring" - Scheduled recurring purchase (e.g.: subscription services).
"Unscheduled" - Unscheduled recurring purchase (e.g.: services apps).
"Installments" - Installment through recurrence.

Applicable to Provider Cielo only.
Text-Conditional

Response

{
 [...]
  "Payment": {
    "DebitCard": {
      "CardNumber": "506722******0001",
      "Holder": "Nome do Portador",
      "ExpirationDate": "12/2021",
      "SaveCard": false,
      "Brand": "Elo"
      "CardOnFile":{
        "Usage":"Used",
        "Reason":"Unscheduled"
    },
    "AcquirerTransactionId": "10069930690009D366FA",
    "PaymentId": "21423fa4-6bcf-448a-97e0-e683fa2581ba",
    "Type": "DebitCard",
    "Amount": 10000,
    "ReceivedDate": "2017-05-11 15:19:58",
    "Currency": "BRL",
    "Country": "BRA",
    "Provider": "Cielo30",
    "ReasonCode": 0,
    "ReasonMessage": "Successful",
    "Status": 2,
    "ProviderReturnCode": "6",
    "ProviderReturnMessage": "Operation Successful",
    [...]
  }
}
PropertyDescriptionTypeSizeFormat
AcquirerTransactionIdTransaction ID of the payment method provider.Text40Alphanumeric
ProofOfSaleProof of sale reference.Text20Alphanumeric
AuthorizationCodeAuthorization code from the acquirer.Text300Alphanumeric text
PaymentIdOrder identifier field.GUID36xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
ReceivedDateDate the transaction was received by Braspag.Text19YYYY-MM-DD HH:mm:SS
ReasonCodeOperation return code.Text32Alphanumeric
ReasonMessageOperation return message.Text512Alphanumeric
StatusTransaction status.Byte2E.g.: 1
ProviderReturnCodeCode returned by the payment provider (acquirer or issuer).Text3257
ProviderReturnMessageMessage returned by the payment provider (acquirer or issuer).Text512Transaction Approved