Through this endpoint is possible to create a sale

🚧

Important!

Keep the body params following the same sequence as you see above!

Example of API Response:

{
    "transactionId": "3E48020A-3A86-5E9B-9C95-C38A94836D7B",
    "operationId": 3,
    "status": 8,
    "message": "APPROVED",
    "log": "",
    "errorCode": "",
    "order": {
        "reference": "123456789",
        "currency": "986",
        "totalAmount": 10000,
        "dateTime": "2019-02-15T14:31:31.128-02:00"
    },
    "processor": {
        "flag": "mastercard",
        "numberOfPayments": "1",
        "acquirer": "CIELO",
        "acquirerId": "1",
        "urlAuthentication": "",
        "amount": "10000",
        "code": "6",
        "message": "Transa\u00e7\u00e3o autorizada",
        "message2": "Transacao capturada com sucesso",
        "lr": "00",
        "arp": "123456",
        "nsu": "327220",
        "tid": "1006993069000DA9DB4A",
        "pan": "07TIgQCiIMJ9uDby3dyD7cp8cD8xLd8XuNQ2CqXb5N4=",
        "eci": "0",
        "statusCode": "6",
        "avsResponseCode": "",
        "tokenCard": "0de3b2ca40b4c628f4bccd554c0dfa6621d6b77139c6e7e20246fe4bc4f7140d"
    }
}
{
    "transactionId": null,
    "status": {
        "code": 409,
        "message": "ERROR - XML"
    },
    "result": {
        "error": {
            "code": 101,
            "action": "XML",
            "message": "XML ERROR",
            "details": "<![CDATA[Element 'merchantKey': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '10'.\n]]>",
            "moreInfo": "<![CDATA[Please check fields format and special character.]]>"
        }
    }
}

Different Payload examples.
See Credit Card Token.

{
  "transaction-request": {
    "version": "1.0.0",
    "verification": {
      "merchantId": "1",
      "merchantKey": "d41d8cd98f00b204e9800998ecf8427e"
    },
    "sale": {
      "order": {
        "reference": "123456789",
        "totalAmount": "10000"
      },
      "payment": {
            "tokenCard": "0de3b2ca40b4c628f4bccd554c0dfa6621d6b77139c6e7e20246fe4bc4f7140d",
        "acquirer": "1",
        "method": "1",
        "amount": "10000",
        "currency": "986",
        "country": "BRA",
        "numberOfPayments": "1",
        "softDescriptor": "Test payload"
      },
      "billing": {
        "customerIdentity": "1",
        "name": "Fulano de Tal",
        "address": "Avenida Federativa, 230",
        "address2": "10 Andar",
        "city": "Mogi das Cruzes",
        "state": "SP",
        "postalCode": "20031170",
        "country": "BR",
        "phone": "114777000",
        "email": "[email protected]"
      },
      "urlReturn": "http://loja.exemplo.com.br",
      "fraud": "false",
      "customField": "This is a custom field being used"
    }
  }
}
{
  "transaction-request": {
    "version": "1.0.0",
    "verification": {
      "merchantId": "1",
      "merchantKey": "d41d8cd98f00b204e9800998ecf8427e"
    },
    "sale": {
      "order": {
        "reference": "123456789",
        "totalAmount": "10000"
      },
      "payment": {
            "tokenCard": "0de3b2ca40b4c628f4bccd554c0dfa6621d6b77139c6e7e20246fe4bc4f7140d",
        "acquirer": "1",
        "method": "1",
        "amount": "10000",
        "currency": "986",
        "country": "BRA",
        "numberOfPayments": "1",
        "softDescriptor": "Test payload"
      },
      "billing": {
        "customerIdentity": "1",
        "name": "Fulano de Tal",
        "address": "Avenida Federativa, 230",
        "address2": "10 Andar",
        "city": "Mogi das Cruzes",
        "state": "SP",
        "postalCode": "20031170",
        "country": "BR",
        "phone": "114777000",
        "email": "[email protected]"
      },
      "urlReturn": "http://loja.exemplo.com.br",
      "fraud": "false",
      "customField": "This is a custom field being used"
    }
  }
}

📘

In case of one of the cards not being authorized

In case of one of the card's authorization fails the other authorization will be canceled automatically

❗️

About cents in the evaluation environment

Do not pass amounts with cents in test environments. E.g <amount>1020<amount> (R$10,20), in this case all transaction will be rejected. It should be like this <amount>1000</amount> (R$10,00)

Language
Click Try It! to start a request and see the response here!