Payment Facilitators

All E-Commerce customers who are Payment Facilitators, as required by the Card Networks and Central Bank must submit new fields in transactional messaging. Cielo will send the information to the Card Networks through transactional messaging at the time of authorization.

The new fields are contained within the Payment Facilitator node. In addition to the fields of this new node, facilitators will also have to send the SoftDescriptor field of the Payment node.

  • Warning: If the card brands identify that the required data wasn't sent in the transactional messaging, they will fine Cielo and these fines will be forwarded to the Facilitator responsible for sending the data.
  • As of April 15, 2023, Visa updated the rules for marketplace and every merchant who acts as Payment Facilitators and has clients (submerchants) who operate as foreigner marketplace must send the foreigner retail indicator to avoid charges from Visa. The specific parameter is Payment.PaymentFacilitator.SubEstablishment.CountryCode, which indicates the country code.

Request

{
  "MerchantOrderId": "2222222222",
  "Customer": {
    "Name": "Comprador Teste",
    "Identity": "11225468954",
    "IdentityType": "CPF",
    "Email": "[email protected]",
    "Birthdate": "1991-01-02",
    "Address": {
      "Street": "Rua Teste",
      "Number": "123",
      "Complement": "AP 123",
      "ZipCode": "12345987",
      "City": "Rio de Janeiro",
      "State": "RJ",
      "Country": "BRA"
    },
    "DeliveryAddress": {
      "Street": "Rua Teste",
      "Number": "123",
      "Complement": "AP 123",
      "ZipCode": "12345987",
      "City": "Rio de Janeiro",
      "State": "RJ",
      "Country": "BRA"
    }
  },
  "Payment": {
    "Type": "CreditCard",
    "Amount": 157000,
    "Currency": "BRL",
    "Country": "BRA",
    "Provider": "Cielo",
    "ServiceTaxAmount": 0,
    "Installments": 1,
    "Interest": "ByMerchant",
    "Capture": false,
    "Authenticate": false,
    "Recurrent": false,
    "SoftDescriptor": "123456789ABCD",
    "CreditCard": {
      "CardNumber": "4024007197692931",
      "Holder": "Teste Holder",
      "ExpirationDate": "12/2021",
      "SecurityCode": "123",
      "SaveCard": "false",
      "Brand": "Visa"
    },
    "PaymentFacilitator": {
      "EstablishmentCode": "1234",
      "SubEstablishment": {
        "EstablishmentCode": "1234",
        "Identity": "11111111000100",
        "Mcc": "1234",
        "Address": "Alameda Grajau, 512",
        "City": "Barueri",
        "State": "SP",
        "CountryCode": "076",
        "PostalCode": "06455914",
        "PhoneNumber": "1155855585"
      }
    }
  }
}
PropertyTypeSizeRequiredDescription
PaymentFacilitator.EstablishmentCodetext11Required for facilitatorsFacilitator's establishment code. “Facilitator ID” (Registration of the facilitator with the card brands).
The code is different depending on the brand, varying even the size of the field:
MasterCard –06 digits
Visa –08 digits
ELO –from 04 to 05 digits
Hipercard –06 digits
For other brands, like Amex and JCB, the field can be filled in by "0" zeros.
PaymentFacilitator.SubEstablishment.EstablishmentCodetext15Required for facilitatorsSub Merchant establishment code. “Sub-Merchant ID” (Registration of sub-accredited with the facilitator)
PaymentFacilitator.SubEstablishment.Identitytext14Required for facilitatorsCNPJ or CPF of the sub-merchant.
PaymentFacilitator.SubEstablishment.Mcctext4Required for facilitatorsMCC do sub Merchant.
PaymentFacilitator.SubEstablishment.Addresstext22Required for facilitatorsSub Merchant Address.
PaymentFacilitator.SubEstablishment.Citytext13Required for facilitatorsCity of the sub Merchant.
PaymentFacilitator.SubEstablishment.Statetext2Required for facilitatorsState do sub Merchant.
PaymentFacilitator.SubEstablishment.PostalCodetext9Required for facilitatorsSub Merchant Postcode.
PaymentFacilitator.SubEstablishment.CountryCodetext3Required for facilitatorsSub-merchant country code based on ISO 3166.
Ex: Brazil's ISO 3166 code is 076. Complete list online.
PaymentFacilitator.SubEstablishment.PhoneNumbertext13Required for facilitatorsSub Merchant Phone Number.
Payment.Softdescriptortext13Required for facilitatorsText printed on buyer bank invoice. Must be completed according to the data of the sub Merchant.

*Avoid using accents as they are considered two characters.

🚧

Attention

Fields mustn't be sent with spacing to the left. It can cause rejection in the settlement of transactions.

Response

{
  "MerchantOrderId": "2014111701",
  "Customer": {
    "Name": "Comprador Teste",
    "Identity": "11225468954",
    "IdentityType": "CPF",
    "Email": "[email protected]",
    "Birthdate": "1991-01-02",
    "Address": {
      "Street": "Rua Teste",
      "Number": "123",
      "Complement": "AP 123",
      "ZipCode": "12345987",
      "City": "Rio de Janeiro",
      "State": "RJ",
      "Country": "BRA"
    },
    "DeliveryAddress": {
      "Street": "Rua Teste",
      "Number": "123",
      "Complement": "AP 123",
      "ZipCode": "12345987",
      "City": "Rio de Janeiro",
      "State": "RJ",
      "Country": "BRA"
    }
  },
  "Payment": {
    "ServiceTaxAmount": 0,
    "Installments": 1,
    "Interest": 0,
    "Capture": false,
    "Authenticate": false,
    "Recurrent": false,
    "CreditCard": {
      "CardNumber": "402400******2931",
      "Holder": "Teste Holder",
      "ExpirationDate": "12/2021",
      "SaveCard": false,
      "Brand": "Visa"
    },
    "Tid": "1223092935684",
    "ProofOfSale": "2935684",
    "AuthorizationCode": "065158",
    "SoftDescriptor": "123456789ABCD",
    "Provider": "Simulado",
    "IsQrCode": false,
    "PaymentFacilitator": {
      "EstablishmentCode": "1234",
      "SubEstablishment": {
        "EstablishmentCode": "1234",
        "Identity": "11111111000100",
        "Mcc": "1234",
        "Address": "Alameda Grajau, 512",
        "City": "Barueri",
        "State": "SP",
        "CountryCode": "076",
        "PostalCode": "06455914",
        "PhoneNumber": "1155855585"
      }
    },
    "Amount": 157000,
    "ReceivedDate": "2019-12-23 09:29:34",
    "Status": 1,
    "IsSplitted": false,
    "ReturnMessage": "Operation Successful",
    "ReturnCode": "4",
    "PaymentId": "365c3a0d-fd86-480b-9279-4ba3da21333c",
    "Type": "CreditCard",
    "Currency": "BRL",
    "Country": "BRA",
    "Links": [
      {
        "Method": "GET",
        "Rel": "self",
        "Href": "https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/365c3a0d-fd86-480b-9279-4ba3da21333c"
      },
      {
        "Method": "PUT",
        "Rel": "capture",
        "Href": "https://apisandbox.cieloecommerce.cielo.com.br/1/sales/365c3a0d-fd86-480b-9279-4ba3da21333c/capture"
      },
      {
        "Method": "PUT",
        "Rel": "void",
        "Href": "https://apisandbox.cieloecommerce.cielo.com.br/1/sales/365c3a0d-fd86-480b-9279-4ba3da21333c/void"
      }
    ]
  }
}
PropertyTypeSizeRequiredDescription
PaymentFacilitator.EstablishmentCodetext11Required for facilitatorsFacilitator's establishment code. “Facilitator ID” (Registration of the facilitator with the card brands).
The code is different depending on the brand, varying even the size of the field:
MasterCard –06 digits
Visa –08 digits
ELO –from 04 to 05 digits
Hipercard –06 digits
For other brands, like Amex and JCB, the field can be filled in by "0" zeros.
PaymentFacilitator.SubEstablishment.EstablishmentCodetext15Required for facilitatorsSub Merchant establishment code. “Sub-Merchant ID” (Registration of sub-accredited with the facilitator)
PaymentFacilitator.SubEstablishment.Identitytext14Required for facilitatorsCNPJ or CPF of the sub-merchant.
PaymentFacilitator.SubEstablishment.Mcctext4Required for facilitatorsMCC do sub Merchant.
PaymentFacilitator.SubEstablishment.Addresstext22Required for facilitatorsSub Merchant Address.
PaymentFacilitator.SubEstablishment.Citytext13Required for facilitatorsCity of the sub Merchant.
PaymentFacilitator.SubEstablishment.Statetext2Required for facilitatorsState do sub Merchant.
PaymentFacilitator.SubEstablishment.PostalCodetext9Required for facilitatorsSub Merchant Postcode.
PaymentFacilitator.SubEstablishment.CountryCodetext3Required for facilitatorsSub-merchant country code based on ISO 3166.
Ex: Brazil's ISO 3166 code is 076.Complete list online.
PaymentFacilitator.SubEstablishment.PhoneNumbertext13Required for facilitatorsSub Merchant Phone Number.
Payment.Softdescriptortext13Required for facilitatorsText printed on buyer bank invoice. Must be completed according to the data of the sub Merchant.

*Avoid using accents as they are considered two characters.