Generating a QR Code via API

Create a QR Code transaction.

AmbienteMétodoEndpoint
Sandboxhttps://apisandbox.cieloecommerce.cielo.com.br/1/sales
Produçãohttps://api.cieloecommerce.cielo.com.br/1/sales

To create a transaction using a credit card, you need to send a request using the POST method to the Payment resource, as shown in the example. This example includes the minimum fields required for authorization.

⚠️

Warning

It is not possible to perform a transaction with an Amount = 0.

Payment Facilitators (or sub-acquirers) must send the parameters of the PaymentFacilitator node as required by the Central Bank and the card networks. If not sent, the card network may apply penalties to the payment facilitator.

Body Params
string
required

Order identification number. Warning: Allowed characters are a-z, A-Z, 0-9. Special characters and blank spaces are not allowed. Size: 50.

Customer
object
Payment
object
PaymentFacilitator
object
Headers
string
required
Defaults to 8937bd5b-9796-494d-9fe5-f76b3e4da633

Store identifier in Cielo. Size: 36. This documentation provides a default MerchantId to allow testing in the sandbox, but you can also provide the enabled MerchantId during the deployment process.

string
required
Defaults to XKGHUBSBKIRXKAVPSKWLVXYCLVJUGTNZLIHPUSYV

Public key for double authentication in Cielo. Size: 40. This documentation provides a default MerchantKey to allow testing in the sandbox, but you can also provide the enabled MerchantKey during the deployment process.

string

Request Identifier, used when the merchant uses different servers for each GET/POST/PUT. Size: 36.

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json