It is the notification sent to the Notification URL and can be in POST or JSON format.

Notification via POST

Contains all transaction data, including merchant_order_number and checkout_cielo_order_number, which can be used for transaction query .

Example:

order_number: "40e00eefbf094763a147af713fa07ece",
amount: "5000",
checkout_cielo_order_number: "b9ab1956738d45cc88edf51d7d03b13e",
created_date: "02/02/2023 17:01:35", 
customer_name: "nome do cliente", 
customer_phone: "2222222222", 
customer_identity: "12312312344", 
customer_email: "[email protected]", 
shipping_type: "5", 
shipping_price: "0", 
payment_method_type: "6", 
payment_installments: "1", 
payment_status: "1", 
test_transaction: "False", 
product_id: "0f48e580-d0a2-4e3b-a748-6704927f1725", 
product_type: "3", 
product_description: "123", 
nsu: "00339922"

See the description of the transaction details in the Notification content section.

Notification via JSON

Notification via JSON is a safer and more flexible method for making a query on the Payment Link. In this modality, the store receives the MerchantId and MerchantOrderNumber and a URL to perform a query (GET) on the Cielo Payment Link database and access the transaction details.

Notification content via JSON

MerchantId: "799g0de8-89c3-5d17-c670-6b29d7f00175", 
MerchantOrderNumber: "1db9226geg8b54e6b2972e9b745b89c7", 
Url: "https://cieloecommerce.cielo.com.br/api/public/v1/orders/799g0de8-89c3-5d17-c670-6b29d7f00175 /1db9226geg8b54e6b2972e9b745b89c7"
PARAMETERDESCRIPTIONTYPE
URLURL with the data necessary to search for transaction data.string
MerchantIdMerchant identifier at Cielo; It appears on the Cielo website in the Configuração > Dados Cadastrais menu.alphanumeric (guid)
MerchantOrderNumber*Merchant order number.
If not sent, Cielo will generate a number, which will be viewed by the consumer.
alphanumeric
For reconciliation purposes, the characters allowed are only a-z, A-Z, 0-9. Special characters and whitespace are not allowed.

*In other requests and responses it may be called OrderNumber.

The store server must send the return HTTP Status = 200 (OK) to the Payment Link API, indicating that the notification was received and processed successfully.

Example of a URL query returned via JSON

Response

{
    "order_number": "1db9226geg8b54e6b2972e9b745b89c7",
    "amount": 101,
    "discount_amount": 0,
    "checkout_cielo_order_number": "65930e7460bd4a849502ed14d7be6c03",
    "created_date": "10-03-2023 14:38:56",
    "customer_name": "Test Test",
    "customer_phone": "11987654321",
    "customer_identity": "445556667",
    "customer_email": "[email protected]",
    "shipping_type": 1,
    "shipping_name": "Motoboy",
    "shipping_price": 1,
    "shipping_address_zipcode": "06455-030",
    "shipping_address_district": "Alphaville",
    "shipping_address_city": "Barueri",
    "shipping_address_state": "SP",
    "shipping_address_line1": "Alameda Xingu",
    "shipping_address_line2": "Apto 25",
    "shipping_address_number": "512",
    "payment_method_type": 1,
    "payment_method_brand": 1,
    "payment_maskedcreditcard": "482852******6856",
    "payment_installments": 1,
    "payment_status": 3,
    "tid": "10558590697J62OH9BPB",
    "test_transaction": "False"
}

See the description of the sale details in the Notification content section.

Notification content

Whether notifying via POST or via JSON, the content of the data returned is the same. All returned fields are described below, as well as their definitions and sizes:

PARAMETERDESCRIPTIONTYPEMAXIMUM SIZE
checkout_cielo_order_numberUnique identifier generated by Cieloalphanumeric32
amountUnit price of the product, in cents (e.g.: R$ 1,00 = 100)numeric10
order_numberOrder number sent by the store.
If not sent, Cielo will generate a number that will be viewed by the consumer
alphanumeric
For reconciliation purposes, the characters allowed are only a-z, A-Z, 0-9. Special characters and whitespace are not allowed.
32
For reconciliation purposes, the maximum length is 20 characters.
created_dateDate of order creation - `dd/MM/yyyy HH:mm:ssalphanumeric20
customer_nameName of the customer. If sent, this value is already filled in the Cielo screenalphanumeric289
customer_identityCustomer identification (CPF or CNPJ). If sent, this value is already filled in the Cielo screenalphanumeric14
customer_emailConsumer email. If sent, this amount is already filled in on the Cielo screen.alphanumeric64
customer_phoneCustomer phone number. If sent, this value is already filled in the Cielo screen.numeric11
discount_amountDiscount amount provided (sent only if there was a discount).numeric10
first_installment_discountDiscount, in percentage, for payments by credit card.Whole number from 1 to 1003
shipping_typeShipping modenumeric1
shipping_nameShipping namealphanumeric128
shipping_priceValue of the shipping service, in cents (e.g.: R$ 10,00 = 1000)numeric10
shipping_address_zipcodeDelivery address zip codenumeric8
shipping_address_districtDelivery address neighborhoodtext64
shipping_address_cityDelivery address cityalphanumeric64
shipping_address_stateDelivery address statealphanumeric64
shipping_address_line1Delivery addressalphanumeric256
shipping_address_line2Delivery address complementalphanumeric14
shipping_address_numberDelivery address numbernumeric8
payment_method_typePayment method type codenumeric1
payment_method_brandCard brand (only for transactions with credit card payment method)numeric1
payment_method_bankIssuer bank (For Automatic Debit and Boleto transactions)numeric1
payment_maskedcredicardMasked Card (for transactions using credit and debit card payment methods)alphanumeric20
payment_installmentsNumber of installmentsnumeric1
payment_antifrauderesultStatus of Credit Card Transactions in Antifraudenumeric1
payment_boletonumberNumber of boleto generatedstring1
payment_boletoexpirationdateDue date for transactions made with boletostring10
payment_statusTransaction statusnumeric1
tidTransactionId Cielo generated at the time of transaction authorizationalphanumeric20
test_transactionIndicates whether the transaction was generated with 'Test Mode' enabledboolean32
product_idIdentifier of the Payment Button/Link that generated the transactionalphanumeric36
product_typeType of Button that generated the order (See ProductID table)alphanumeric32
product_skuProduct identifier registered in the payment linktext16
product_max_number_of_installmentsNumber of installments released by retailers for the payment linknumber2
product_expiration_dateButton/Payment Link expiration datealphanumeric12
product_quantityNumber of transactions remaining until the link stops workingalphanumeric2
product_descriptionDescription of the payment link registered by the merchanttext256
nsuNSU - Unique sequential number of the transaction.alphanumeric6
authorization_codeAuthorization code.alphanumeric8

ProductID types

PAYMENT LINK TYPEENUN
Physical asset1
Digital2
Service3
Payment4
Recurrence5

Payment_status

The Payment Link has its own status, different from the Cielo website or the Cielo E-commerce API. See the complete list below.

VALUETRANSACTION STATUSPAYMENT METHODSDESCRIPTION
1PendingFor all payment methodsIndicates that the payment is still being processed;
Boleto - Indicates that the status of the bill has not been changed by the merchant
2PaidFor all payment methodsTransaction was captured and money will be deposited into account.
3DeniedOnly for Credit CardTransaction not authorized by the person responsible for the payment method
4ExpiredCredit and Boleto CardsTransaction is no longer valid for capture - 15 days after authorization
5VoidedFor credit cardsTransaction was canceled by the merchant
6NotFinalizedAll payment methodsPayment waiting Status - May indicate an error or processing failure. Contact Cielo Support
7AuthorizedCredit Card OnlyTransaction authorized by the card issuer. It must be captured for the money to be deposited into the account
8ChargebackOnly for Credit CardTransaction canceled by the shopper along with the card issuer. The money will not be deposited into the account.

Note: For order queries, the payment.status field will be returned in text format, always in English (Transaction Status column).

Payment_antifrauderesult

Antifraude has the concept of Status and SubStatus, where the first represents the level of risk that a transaction has of being a fraud, and the second, additional information about the transaction.

VALUEANTIFRAUDE STATUSSUBSTATUSDESCRIPTION
1Low riskLow riskLow risk of being a fraudulent transaction.
2High riskHigh riskHigh risk of being a fraudulent transaction. They are canceled automatically.
4Not finishedNot finishedThe query could not be finalized.
N/AN/ANot applicableDebit card transaction that was authenticated by 3DS 2.0, therefore not eligible for anti-fraud analysis.
N/AN/AN/ANon-analyzable payment method such as boleto, Pix, QR Code, and credit card transaction that was denied by the issuer.
N/AN/ARecurrence transactionFor recurrence cases, after the first paid transaction, the next transactions of a recurrence are not analyzed by anti-fraud. Only the first transaction is analyzed.

Payment_method_type

The Payment Link only allows one type of Boleto per establishment, so the notification does not return whether the provider used was Bradesco or Banco do Brasil, as only one of them will be active in the affiliation.

VALUEDEFINITIONDESCRIPTION
1Credit cardCreditCard
2BoletoBoleto
4Debit cardDebitCard
5QR code creditQrCode
6PixPix
7QR code debitQrCodeCredit

Note: For queries, the Type is returned in the Payment.Type field and is filled with the literal value (Description).

Payment_method_brand

The card brand.

VALUEDESCRIPTION
1Visa
2Master
3AmericanExpress
4Diners
5Elo
6Aura
7JCB
8Discover
9HiperCard

In queries, the card brand is returned in the Payment.Brand field and is filled in with the literal value.

Payment_method_bank

VALUEDESCRIPTION
1Banco do Brasil
2Bradesco

Shipping_type

VALUEDESCRIPTION
1Correios
2Fixed shipping
3Free shipping
4In store pick up
5No shipping (digital services or products)

❗️

Correios shipping service currently unavailable.

If a request with this shipping option is sent, you will receive a return with error 400 and the message: "The shipping service by Correios is unavailable". If you use the service on your payment links or checkout pages, change the shipping type to the other available options.