Api Cielo: Error creating a purchase

-4

When I send a request simulating a purchase:

URL link

Json

{
   "MerchantOrderId":"2014111703",
   "Customer":{
      "Name":"Comprador crédito simples"
   },
   "Payment":{
     "Type":"CreditCard",
     "Amount":15700,
     "Installments":1,
     "SoftDescriptor":"123456789ABCD",
     "CreditCard":{
         "CardNumber":"1234123412341231",
         "Holder":"Teste Holder",
         "ExpirationDate":"12/2030",
         "SecurityCode":"123",
         "Brand":"Visa"
     }
   }
}

Answer: Error Status: 500 Internal Server Error

Image

    
asked by anonymous 20.08.2018 / 17:07

1 answer

1

The error is in the sending type Can not be Text has to set Json

    
20.08.2018 / 23:05