E.Rede

The merchant has the ability to set up credit and debit cards transaction routing on Carat Portal by various payment methods, one of which is e.Rede REST. This is the e-commerce platform from Rede acquirer.

This page will use the nomenclature "e.Rede REST" to reference routing in Carat Portal.

Attention: Carat Portal has the e-Rede routing, but it's a previous version integration, with limited functionalities and no more updates. So e.Rede REST is recommended option now.

Carat Portal Interfaces Supported for Integration#

You can use the following interfaces for integration with e.Rede REST routing:

  • REST Payment
  • REST Pre-Authorization
  • REST Cancel
  • HTML Payment
  • HTML Pre-Authorization
  • Cancel via Carat Portal Merchant's Portal

Required Credentials#

The store must contact e.Rede in order to obtain the credentials listed below and then inform them to Software Express or register them on Carat Portal's merchant's portal as explained later on in this document.

FieldDescriptionFormat
filiationMerchant's identification on e.Rede REST.< 8 AN
tokenAccess token.< 32 AN
threeDSecureOnFailureIndicate if it should continue with the authorization in case of 3DS autentication failure.Continue or Do not
subacquirerMerchantIdSubmerchant identification< 32 AN
independentSalesOrganizationIdIndependent Sales Organization identification. Applied only in case of Dynamic MCC.< 11 AN
paymentFacilitatorIdPayment facilitator ID. Applied only in case of Dynamic MCC.< 11 N

Important notice for HTML Payment: In the event that a merchant authorizer has not registered these credentials, that authorizer will not be displayed on the credit card selection screen during the payment transaction.

Registration of information through the Carat Portal Merchant's Portal#

The merchant himself can register the information obtained with e.Rede REST on the Carat Portal Merchant's Portal. For this purpose, the merchant must select the authorizer and enter the editing screen as in the example shown below:

Portal e.Rede REST

Check more details about Merchant's Portal.

Flows#

This section will present the differentiated or relevant fields of the e.Rede REST transactional flow.

Currently, e.Rede REST does not allow installments with interest from the card issuer, so the installments_type field cannot receive the values 3 or 6. The installments field allows a maximum of 12 installments.

Payment Transaction creation (HTML and REST)#

Dynamic MCC#

Relevant fields in the call described in HTML Transaction Creation Service and REST Transaction Creation Service:

Element for sending additional data.
ParameterDescriptionFormatMandatory
soft_descriptor (*)Additional text that will be presented alongside the name of the establishment in the credit card invoice. Learn more< 13 ANNO
additional_data
mcc (*)The MCC (Merchant Category Code) is a code that classifies the business by the type of goods or services it provides.< 4 NNO
postpone_confirmationField that allows the store to hold the transaction as a Pending Verification, and later confirm or undo it.< 5 ANO
iataThis element contains specific fields that will be mandatory, if are with IATA transactions.
codecode of the companies that work with air transportation.< 9 NConditional (required only for IATA transactions - sale of airline tickets)
departure_taxDeparture tax in cents.< 10 NConditional (required only for IATA transactions - sale of airline tickets)

(*) Notice about Soft Descriptor and MCC: In the context of marketplace or payment facilitators, it is allowed to use both fields, sending in request or by registration in Carat Portal backoffice. The values ​​sent via request take precedence over the registered values. Additionally in the same context, the submerchant Id parameter can be registered in Carat Portal, to be informed in the payment effectutation. Please contact Carat Portal customer support for these values registration.

Rede 3DS Authentication#

Attention: This interface supports 3DS 2.0 authentication. [Learn more] (3ds-visaogeral.md).

Relevant fields in the call described in HTML Transaction Creation Service and REST Transaction Creation Service:

ParameterDescriptionFormatMandatory
authorizer_authenticationIdentifies whether the merchant wants a payment with authentication. If positive, send true.< 5 ANYES for credit with authentication

It's possible to do a payment with Rede 3DS MPI authentication, as long as this funcionality is enabled in merchant's e.Rede account. To use it in Carat Portal, just send the authorizer_authentication parameter with the value true on the transaction creation phase.

For debit card payments, the authentication is mandatory.

Trasaction creation for REST Payment example:

To use this example, don't forget to define the variable {{url}} with the value
esitef-homologacao.softwareexpress.com.br

curl
--request POST "https://esitef-homologacao.softwareexpress.com.br/e-sitef/api/v1/transactions"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--data-binary
{
"merchant_usn":"123456789",
"order_id":"testOrder001",
"amount":"2200",
"authorizer_id":"2",
"installments":"2",
"installment_type":"4",
"authorizer_authentication":"true"
}
--verbose

In the case of authentication failure, the merchant can choose to proceed with the payment or have the payment stopped (do not proceed). This behavior must be registered in the Carat Portal backoffice, and its default value is `Do not proceed if authentication fails. For this configuration, please contact the Carat Portal service team or it can be changed in Merchant's Portal.

REST Payment#

This integration also allows external 3DS authentication data to be sent in payment effectuation. Learn more about this service.

Attention: This interface supports 3DS 2.0 authentication. Learn more about.

This integration allows Visa Checkout wallet.

Relevant fields in the call described in payment effectuation:

ParameterDescriptionFormatMandatory
external_authentication
eciEletronic Commerce Indicator – Card holder authentication security level indicator.< 3 NConditional (required only for 3DS 2.0 authenticated transactions)
xidAuthentication cardholder's transaction identifier in 3DS, performed in a service external to Carat (In our 3DS, the xid is referenced by three_ds_server.trans_id in the return of the 3DS transaction creation service).< 40 NConditional (required only for 3DS 2.0 authenticated transactions)
cavvCardholder Authentication Verification Value - Codes that refers to card holder authentication result data.< 40 NConditional (required only for 3DS 2.0 authenticated transactions)
reference_idRequestID returned in authentication process.36 ANConditional (required only for 3DS 2.0 authenticated transactions)

HTML Payment#

In case of debit card payments, Carat Portal will force the Rede MPI 3DS authentication, despite the authorizer_authentication field in transaction creation step.

This integration allows Masterpass wallet.

Payment Confirmation#

You can confirm a lower value than the one informed in the original payment created via HTML or via REST using the additional_data.postpone_confirmation field equal to true.

To do this, send the desired amount in the REST confirmation call:

ParameterDescriptionFormatMandatory
confirmThis field must be sent with the value true if you wish to confirm the transaction, or false if you wish to undo the payment.< 5 T/FYES
amountValue in cents of the amount to be confirmed. If not sent, the full amount of the transaction will be confirmed.< 12 NNO

The e.Rede REST payment confirmation generates a new "Host USN" and "Payment authorization date".

REST Pre-Authorization#

This integration also allows external 3DS authentication data to be sent. Learn more about this service.

Attention: This interface supports 3DS 2.0 authentication. Learn more about.

Also it is possible to send soft_descriptor and mcc fields in transaction creation, in the same way than REST Payment (see above).

This integration allows Visa Checkout wallet.

Relevant fields in the call described in pre-authorization

ParameterDescriptionFormatMandatory
external_authentication
eciEletronic Commerce Indicator – Card holder authentication security level indicator.< 3 NConditional (required only for 3DS 2.0 authenticated transactions)
xidExternal card holder authentication transaction id.< 40 NConditional (required only for 3DS 2.0 authenticated transactions)
cavvCardholder Authentication Verification Value - Codes that refers to card holder authentication result data.< 40 NConditional (required only for 3DS 2.0 authenticated transactions)
reference_idRequestID returned in authentication process.36 ANConditional (required only for 3DS 2.0 authenticated transactions)

In the Pre-Authorization/Capture flow, installment's data must be sent only in the pre-authorization.

HTML Pre-Authorization#

This integration allows Masterpass wallet.

Also it is possible to send soft_descriptor and mcc fields in transaction creation, in the same way than HTML Payment (see above).

In the Pre-Authorization/Capture flow, installment's data must be sent only in the pre-authorization.

Recurrency#

e.Rede REST accepts transaction recurrency indication parameters. To do this, send the acquirer.recurrency field with the value true in the REST payment call. If the current transaction is not the first one, send the first transaction's TID in the field acquirer.recurrency_tid.

For more information, see the REST Payment Service page.

Data required only to specific acquirers / routings.
ParameterDescriptionFormatMandatory
acquirer
recurrencyFlag that defines whether or not the payment is recurring.< 5 T/FNO
recurrency_tidFirst transaction's id (TID) on the card brand. This field tells the first and the subsequent transactions apart. Use only if it is a recurrent payment. This field is used only for the brands Visa and Mastercard.< 16 ANNO

Cancellation#

The cancellation of a transaction can be done on the Merchant's Portal or via Web Service REST.

Cancellation requests can be made in up to 7 days for debit transactions and for credit transactions the default is up to 90 days, but it can vary according to the branch of operation of each establishment.

For cancellations requested on the same day of the authorization transaction or authorization with automatic capture, the processing will be carried out immediately, otherwise, the processing will be carried out in D + 1.

Partial cancellation available only on D + 1 and for transactions with capture.

Dynamic MCC Fields#

Payment and Pre-Authorization REST Transaction creation service#

Request Parameters#

Additionally to the fields in the REST Transaction Creation Service, the fields below are used specifically in dynamic MCC transactions integrated to the e.Rede REST routing:

Element for sending additional data. Element for sending data related to a subacquirer's merchant.
ParameterDescriptionFormatMandatory
soft_descriptorPersonalized phrase that will be printed on the bearer's invoice. For information regarding the dynamic MCC, it is equivalent to the name of the submerchant.< 18 ANYES
additional_data
mccSubmerchant's MCC.= 4 NYES
subacquirer_merchant_idSubmerchant's code. Deprecated field!!! Use additional_data.subacquirer_merchant.id instead.< 15 NNO
additional_data.subacquirer_merchant
idSubmerchant's code.< 15 NYES
addressSubmerchant's address.< 48 ANNO
citySubmerchant's city.< 13 ANNO
stateSubmerchant's state, in two-digit acronym format (e.g.: SP).= 2 AYES
countrySubmerchant's country. Follow the standard ISO 3166-1 alpha-2 (e.g.: BR).= 2 AYES
zip_codeSubmerchant's zip code.< 9 ANYES
identification_numberSubmerchant's CNPJ.< 18 NYES
payment_facilitator_idFacilitator's code.< 11 NYES
independent_sales_organization_idIndependent sales organization code.< 11 NNO

Example#

Request:

To use this example, don't forget to define the variable {{url}} with the value
esitef-homologacao.softwareexpress.com.br

curl
--request POST "https://esitef-homologacao.softwareexpress.com.br/e-sitef/api/v1/transactions"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--data-binary
{
"merchant_usn": "21042858195",
"order_id": "21042858195",
"amount": "102",
"installments": "1",
"installment_type": "4",
"mcc": "1111",
"soft_descriptor": "LOJADOZE",
"additional_data": {
"subacquirer_merchant": {
"id": "1234567890",
"address": "Rua Acre",
"city": "CAPIVARI",
"state": "SP",
"country": "BR",
"zip_code": "07064-010",
"identification_number": "71.789.371/0001-42",
"payment_facilitator_id": "22349202212",
"independent_sales_organization_id": "1234567"
}
}
}

Response:

{
"code": "0",
"message": "OK. Transaction successful.",
"pre_authorization": {
"status": "NOV",
"nit": "c2d2887a2961a218e6e6effa8a39f281d386d581c8c8b4dc23a3af03b5c6b8c4",
"order_id": "21042858195",
"merchant_usn": "21042858195",
"amount": "102"
}
}

Payment and Pre-Authorization REST effectuation service#

In addition to the fields mentioned in REST Payment effectuation service and REST Pre-Authorization effectuation service, the fields below are used specifically in dynamic MCC transactions integrated to the e.Rede REST routing:

ParameterDescriptionFormatMandatory
soft_descriptorPersonalized phrase that will be printed on the bearer's invoice. For information regarding the dynamic MCC, it is equivalent to the name of the submerchant. Required only if it was not sent in the soft_descriptor of the transaction initialization step.< 18 ANYES
mccSubmerchant's MCC. Required only if it was not sent in the additional_data.mcc of the transaction initialization step.= 4 NYES
subacquirer_merchant_idSubmerchant's code. Required only if it was not sent in the additional_data.subacquirer_merchant.id of the transaction initialization step.< 15 NNO

ATTENTION!

It is in the transaction effectuation step that we send the accumulated dynamic MCC data. However, if the mcc field is not sent at any time and is not registered, the other dynamic MCC fields will not be passed on. This field is necessary to identify that the merchant wants to send sub-acquisition data.

Example#

Request:

To use this example, don't forget to define the variable {{url}} with the value
esitef-homologacao.softwareexpress.com.br

curl
--request POST "https://esitef-homologacao.softwareexpress.com.br/e-sitef/api/v1/preauthorizations/1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--data-binary
{
"authorizer_id":"2",
"installments":"1",
"installment_type":"4",
"soft_descriptor":"outraloja",
"mcc": "2234",
"subacquirer_merchant_id": "223456",
"card":{
"number":"5448280000000007",
"expiry_date":"0121",
"security_code":"123"
}
}

Response:

{
"code":"0",
"message":"OK. Transaction successful.",
"pre_authorization":{
"authorizer_code":"000",
"authorizer_message":"Transacao OK.",
"status":"CON",
"nit":"1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr",
"customer_receipt":"=== CUSTOMER RECEIPT ===",
"merchant_receipt":"=== MERCHANT RECEIPT ===",
"authorizer_id":"2",
"authorizer_date":"09/11/2018T19:40",
"acquirer_id":"1005",
"acquirer_name":"Redecard",
"authorization_number":"013245",
"merchant_usn":"20190101",
"esitef_usn":"181109017689784",
"order_id":"orderID",
"sitef_usn":"212194",
"host_usn":"999212194",
"amount":"100",
"issuer":"2",
"payment_type":"C",
"authorizer_merchant_id":"000000000000000"
}
}

Fields conversion table#

The conversion table between e.Rede REST fields and Carat Portal fields is presented below.

e.Rede REST fieldCarat Portal fieldObservations
softDescriptorsoft_descriptorThe e.Rede REST softDescriptor field can be sent in the transaction creation request, REST payment or pre-authorization effectuation request or be registered by the Carat Portal Support Team.
PaymentFacilitatorIDadditional_data / subacquirer_merchant / payment_facilitator_id or paymentFacilitatorIdThe e.Rede REST PaymentFacilitatorID field can be sent in the transaction creation request or configured when the user defines a routing using e.Rede REST. In the latter case, this field can be edited in the Merchant Portal ("Autorizadoras" > "Configurar Autorizadoras") or by sending a request to the Carat Portal Support Team.
IndependentSalesOrganizationIDadditional_data / subacquirer_merchant / independent_sales_organization_id or independentSalesOrganizationIdThe e.Rede REST IndependentSalesOrganizationID field can be sent in the transaction creation request or configured when the user defines a routing using e.Rede REST. In the latter case, this field can be edited in the Merchant Portal ("Autorizadoras" > "Configurar Autorizadoras") or by sending a request to the Carat Portal Support Team.
SubMerchant / MCCadditional_data / mcc or mccThe e.Rede REST SubMerchant / MCC field can be sent in the transaction creation request, REST payment or pre-authorization effectuation request or be registered by the Carat Portal Support Team.
SubMerchant / SubMerchantIDadditional_data / subacquirer_merchant_id or additional_data / subacquirer_merchant / id or subacquirer_merchant_id or subacquirerMerchantIdThe e.Rede REST SubMerchant / SubMerchantID field can be sent in the transaction creation request, REST payment or pre-authorization effectuation request or configured when the user defines a routing using e.Rede REST. In the latter case, this field can be edited in the Merchant Portal ("Autorizadoras" > "Configurar Autorizadoras") or by sending a request to the Carat Portal Support Team.
SubMerchant / Addressadditional_data / subacquirer_merchant / addressThe e.Rede REST SubMerchant / Address field can be sent in the transaction creation.It is possible to register a default value. Contact the Carat Portal Support Team to register or change the default value of this field in your store.
SubMerchant / Cityadditional_data / subacquirer_merchant / cityThe e.Rede REST SubMerchant / City field can be sent in the transaction creation. Contact the Carat Portal Support Team to register or change the default value of this field in your store.
SubMerchant / Stateadditional_data / subacquirer_merchant / stateThe e.Rede REST SubMerchant / State field can be sent in the transaction creation. Contact the Carat Portal Support Team to register or change the default value of this field in your store.
SubMerchant / Countryadditional_data / subacquirer_merchant / countryThe e.Rede REST SubMerchant / Country field can be sent in the transaction creation. Contact the Carat Portal Support Team to register or change the default value of this field in your store.
SubMerchant / CEPadditional_data / subacquirer_merchant / zip_codeThe e.Rede REST SubMerchant / CEP field can be sent in the transaction creation. Contact the Carat Portal Support Team to register or change the default value of this field in your store.
SubMerchant / Cnpjadditional_data / subacquirer_merchant / identification_numberThe e.Rede REST SubMerchant / Cnpj field can be sent in the transaction creation. Contact the Carat Portal Support Team to register or change the default value of this field in your store.

ATTENTION!

When a field can be sent in more than one way, the most recent or the most specific field value will have precedence. In other words, priority follows the rule: most recent > most specific > registration data.

Example: If the SubMerchant / SubMerchantID field is sent in the effectuation step, it will have priority over the one sent at the initialization step, which has priority over the registration field.