Cielo Api: Error creating a purchase

Asked

Viewed 179 times

-4

When I send a request simulating a purchase:

URL https://apisandbox.cieloecommerce.cielo.com.br/1/sales

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: Status error: 500 Internal Server Error

Imagery inserir a descrição da imagem aqui

1 answer

1

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

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.