Store Management

Store Management

## Registration Via Batch ### Batch Routing Configuration

Source: https://docs.apis-fiserv.com/latam/docs/lote-config-roteamento

Overview

The batch routing configuration may be used when a group of stores requests a routing update of the Issuer (Mastercard, Visa, etc.) in only a portion of its stores or when the number of stores make it impossible to configure one by one manually.

Thus, for example, a group with 800 stores that route the issuers Visa and Mastercard by Cielo, could make 100 of them route Visa via Rede.

Prerequisites

As prerequisites, the stores and authorizers (issuers) that will have their routing updated must already be registered on Carat Portal. If not, check the Batch Store Registration documentation.

The routings and issuers must also be already configured on SiTef. To that end, contact our Carat Portal Support Team to ensure production operation.

Supported Routings/Acquirer Networks

The routings supported for batch routing configuration are:

  • Bin via SiTef
  • Cielo via SiTef
  • Rede via SiTef
  • GetNet via SiTef
  • Stone WS

Import File Format

ATTENTION: The import file must be generated with the UTF-8 encode.

The file will consist of the merchant code followed by the issuer you want to change and the routing/acquirer network through which the issuer will be routed, repeating one line per issuer, one or more lines per store.

Only the routings declared in the file will be changed, if the store has other issuers that were not declared, its configuration will be maintained.

Format to be received (Format per line):

plaintext
field1;field2;field3;paramter1|paramter2|...|paramterN
FieldDescriptionFormatRequired
field1CNPJ (or merchant code, or merchantId). No formatting (alphanumeric).< 15 ANYes
field2Issuer/Authorizer code. Check the codes in the Issuer/Authorizer Codes section.< 15 NYes
field3Routing/Acquirer Network code. Check the codes in the Routing/Acquirer Network Codes section.< 15 NYes
paramter1, paramter2, paramterNAdditional parameters that may vary according the acquirer network/routing.-No

Issuer/Authorizer Codes

Issuer/AuthorizerCode
VISA1
MASTERCARD2
AMERICAN EXPRESS (AMEX)3
HIPERCARD5
AURA6
CABAL12
VALECARD28
SOROCRED29
DINERS33
ELO41
GOODCARD42
JCB43
DISCOVER44
CHINA UNION PAY45
CREDZ46
AGIPLAN47
VEROCHEQUE48
PAN122
AVISTA CREDITO192

Routing/Acquirer Network Codes

Routing/Acquirer NetworkCode
Cielo via SiTef1125
Rede (old Redecard) via SiTef1005
GetNet via SiTef1181
e-Rede1200
Routing/Acquirer NetworkCode
Cielo via SiTef1125
Rede (old Redecard) via SiTef1005
GetNet via SiTef1181
e-Rede1200
Stone WS409

Additional Parameters

Some routings/acquirer networks requires additional parameters registered on Carat Portal to perform transactions. To register them, fill in the additional parameters from the field 4 onwards.

plaintext
...;key1:value1|key2:value2|key3X:valueX

Additional parameters are not required, but if not sent, the parameters will be set to a default value.

Stone WS

The Stone WS routing/acquirer network refers to the Stone acquirer e-commerce.

The following additional parameters are required to perform its functionalities:

FieldDescription
salesAffiliationKeyIdentification of the merchant on the Stone Acquirer.
subAdquirenciaHabilitadaAllowed values: true or false. This value must follow the configuration of the merchant on the Stone Acquirer regarding the subacquirer functionality.

NOTE

To use the Stone WS subacquirer functionality, the merchant's registration on Carat Portal must be completed. In other words, the Country, City, State and Zip Code fields must be properly be informed on the Merchant's store registration on Carat Portal. Contact the Carat Portal support team before updating a routing to Stone WS using the subacquirer functionality with SoftDescriptor. Check the Stone WS documentation for more details.

Stone WS Example

plaintext
22222222222222;1;409;salesAffiliationKey:XXXXXXXXXX|subAdquirenciaHabilitada:true

Example

At first, all the stores in the XPTO group perform transactions with the issuers Visa, Mastercard, Hiper and Amex routing via Rede .

Initial state of the Group XPTO, including the stores 11111111111111, 22222222222222 and 333333333333333:

Issuer/AuthorizerAcquirer/Routing
VisaRede (old Redecard)
MastercardRede (old Redecard)
HiperRede (old Redecard)
AmexRede (old Redecard)

It is desired that only two stores in this group, 11111111111111 and 22222222222222, start to perform transactions both with Visa via Cielo and Mastercard , keeping the Amex and Hiper routings unchanged.

It is desired that only two stores in this group, 11111111111111 and 22222222222222, start to perform transactions both with Visa via Cielo and Mastercard via Stone WS, keeping the Amex and Hiper routings unchanged.

Merchants 11111111111111 and 22222222222222 after the update:

Issuer/AuthorizerAcquirer/Routing
VisaCielo
MastercardStone WS
HiperRede (old Redecard) -> Unchanged
AmexRede (old Redecard) -> Unchanged

It is also desired to change the store 333333333333333 to perform Visa transactions via Cielo and Amex , as in the following table.

It is also desired to change the store 333333333333333 to perform Visa transactions via Cielo and Amex transactions via Stone WS, as in the following table.

Merchant 333333333333333 after the update:

Issuer/AuthorizerAcquirer/Routing
VisaCielo
MastercardRede (old Redecard) -> Unchanged
HiperRede (old Redecard) -> Unchanged
Issuer/AuthorizerAcquirer/Routing
VisaCielo
MastercardRede (old Redecard) -> Unchanged
HiperRede (old Redecard) -> Unchanged
AmexStone WS (with subacquirer functionality)

The final file to be generated will be as shown below:

plaintext
11111111111111;1;1125;
11111111111111;2;409;salesAffiliationKey:ABC123DEF456|subAdquirenciaHabilitada:false
22222222222222;1;1125;
22222222222222;2;409;salesAffiliationKey:ABC123DEF457|subAdquirenciaHabilitada:false
33333333333333;1;1125;
33333333333333;3;409;salesAffiliationKey:ABC123DEF458|subAdquirenciaHabilitada:true

ATTENTION: If the field 4 is empty, don't forget to put a semicolon (;) at the end of the line.


Batch Store Registration

Source: https://docs.apis-fiserv.com/latam/docs/lote-cadastro-loja

Overview

The Carat Portal has a interface to register sereval merchant stores in batch mode.

For this, the merchant must send to the Carat Portal's support team a store importation file following a certain format, so the data of the merchant's store can be registered at once. The importation can be done only if all the stores belong to the same group.

The main purpose of the interface is to offer to developers the possibility to develop an application that creates a file based on this especification. Creating the file manually is not recommended.

Importation File Format

ATTENTION: The importation file must be generated with the UTF-8 encode.

Default fields

Format to be received (Format per line):

plaintext
field1;field2;field3;...;field16;<authorizer1>;<authorizer2>;...;<authorizerN>
FieldField descriptionFormat and sizeRequired
field1Merchant code or Merchant id. this value uniquely identifies the store in the Carat Portal. Is recommended to use the company's CNPJ, without formatation, numbers and letters, in order to avoid merchant code conflicts between different stores.< 15 ANYes
field2Fantasy Name< 250 AN (no accentuation)Yes
field3Corporate Name< 250 AN (no accentuation)Yes
field4CNPJ< 15 ANOptional
field5Address (street name and number)< 30 AN (no accentuation)Optional
field6City< 13 AN (no accentuation)Optional
field7State= 2 AOptional
field8Zip Code (only numbers)< 9 NOptional
field9Phone (Optional)> 5 and < 20 NOptional
field10e-mail (Optional)> 5 and < 20 ANOptional
field11Website domain< 50 AN (no accentuation)Optional
field12Status Notification URL (HTTPS)< 500 AN (no accentuation)Optional
field13Transaction Authenticity URL (HTTPS)< 500 AN (no accentuation)Optional
field14URL for sending HASH (HTTPS)< 500 AN (no accentuation)Optional
field15Success URL< 500 AN (no accentuation)Optional
field16Failure URL< 500 AN (no accentuation)Optional
field17Cancellation URL< 500 AN (no accentuation)Optional
authorizerNAuthorizer configurations (See the Authorizer Configuration Fields section.-Yes

Authorizer Configuration Fields

authorizer1, authorizer2, ..., authorizerN - Authorizers to be configured in the store. May be sent N authorizers. The field authorizerN must be in the following format:

plaintext
...;authField1|authField2|authField3|authField4|authField5|parameter1|parameter2|...|parameterN
FieldField descriptionFormat and size
authField1Authorizer's code. See the Authorizer codes Examples section to verify the allowed values.< 5 N
authField2Routing's code. See the Routing Examples section to verify the allowed values.< 5 N
authField3Minimum value allowed per installment, in cents (*).< 8 N
authField4Maximum installment with interest (*).< 2 N
authField5Maximum installment without interest (*).< 2 N
parameter1, parameter2, parameterNAuthorizer parameters. N parameters may be sent. See the Routing Parameters section to verify the required fields for each routing.-

(*) Field affects only payment e pre-authorization via HTML interface.

Example

FieldValue
Merchant Codecod_loja_comp
Fantasy NameLoja dos Computadores
Corporate NameLoja dos Computadores LTDA.
CNPJ11137051003444
AddressR. dos Computadores, 3032
CityS Joao do Sul
StateSC
Zip Code07022000
Phone12341234
E-mail[email protected]
Domainhttps://dominio.com.br
Status Notification URLhttps://dominio.com.br/avisoStatus.jsp
Transaction Authenticity URLhttps://dominio.com.br/autenticidade.jsp
Storage URLhttps://dominio.com.br/envioHash.jsp
Success URLhttps://dominio.com.br/sucesso.jsp
Failure URLhttp://dominio.com.br/fracasso.jsp
Cancellation URLhttps://dominio.com.br/cancelamento.jsp
AUTHORIZERS
AUTHORIZER 1
AuthorizerVisa [1]
Minimum value of each installment20 reais [2000]
Maximum installment with interest5 installments [5]
Maximum installment without interest5 installments [5]
AUTHORIZER 2
AuthorizerMastercard [2]
Minimum value of each installment10 reals [1000]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
FieldValue
Merchant Codecod_loja_comp
Fantasy NameLoja dos Computadores
Corporate NameLoja dos Computadores LTDA.
CNPJ11137051003444
AddressR. dos Computadores, 3032
CityS Joao do Sul
StateSC
Zip Code07022000
Phone12341234
E-mail[email protected]
Domainhttps://dominio.com.br
Status Notification URLhttps://dominio.com.br/avisoStatus.jsp
Transaction Authenticity URLhttps://dominio.com.br/autenticidade.jsp
Storage URLhttps://dominio.com.br/envioHash.jsp
Success URLhttps://dominio.com.br/sucesso.jsp
Failure URLhttp://dominio.com.br/fracasso.jsp
Cancellation URLhttps://dominio.com.br/cancelamento.jsp
AUTHORIZERS
AUTHORIZER 1
AuthorizerVisa [1]
RoutingCielo [1125]
Minimum value of each installment20 reais [2000]
Maximum installment with interest5 installments [5]
Maximum installment without interest5 installments [5]
Cielo affiliation code00000001
AUTHORIZER 2
AuthorizerMastercard [2]
RoutingRede (Redecard) [1005]
Minimum value of each installment10 reals [1000]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
Rede (Redecard) affiliation code00000002

Result

plaintext
cod_loja_comp;Loja dos Computadores;Loja dos Computadores LTDA.;11137051003444;R. dos Computadores,3032;S Joao do Sul;SC;07022000;12341234;[email protected];https://dominio.com.br; https://dominio.com.br/avisoStatus.jsp; https://dominio.com.br/autenticidade.jsp; https://dominio.com.br/envioHash.jsp; https://dominio.com.br/sucesso.jsp;http://dominio.com.br/fracasso.jsp; https://dominio.com.br/cancelamento.jsp;1|1125|2000|5|5|00000001;2|1005|10 00|10|10|00000002

Routing Parameters

Each routing has required parameters to work properly. They must be used in the variable fields parameter1, parameter2, ..., parameterN:

ATTENTION: The parameters must be sent in the order as described below.

Cielo via SiTef

Required parameters for Cielo via SiTef routing:

  • Cielo affiliation code

Cielo via SiTef Example

FieldValue
AuthorizerVisa [1]
RoutingCielo [1125]
Minimum value of each installment10 reals [1000]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
Cielo affiliation code00000001
plaintext
...;1|1125|1000|10|10|00000001

Rede (Redecard) via SiTef

Required parameters for Rede (Redecard) via SiTef routing:

  • Rede (Redecard) affiliation code

Rede (Redecard) via SiTef Example

FieldValue
AuthorizerMastercard [2]
RoutingRede (Redecard) [1005]
Minimum value of each installment10 reals [1000]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
Rede (Redecard) affiliation code00000002
plaintext
...;1|1005|1000|10|10|00000002

Stone via SiTef

Required parameters for Stone via SiTef routing:

  • Stone affiliation code
  • Stone code (alphanumeric length 9)

Stone via SiTef Example

FieldValue
AuthorizerVisa [1]
RoutingStone via SiTef [1265]
Minimum value of each installment2,65 reals [265]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
Stone affiliation codecodigoFiliacaoDaLojaNaStone32Car
Stone code123456789
plaintext
...;1|1265|265|10|10|codigoFiliacaoDaLojaNaStone32Car|123456789

BIN via SiTef

Required parameters for BIN via SiTef routing:

  • BIN affiliation code
  • Virtual Terminal (alphanumeric length 8)

BIN via SiTef Example

FieldValue
AuthorizerMastercard [2]
RoutingBIN via SiTef [1229]
Minimum value of each installment2 reals [200]
Maximum installment with interest7 installments [7]
Maximum installment without interest10 installments [10]
BIN affiliation code12345678
Virtual Terminal1TerVir8
plaintext
...;2|1229|200|7|10|12345678|1TerVir8

Safra via SiTef

Required parameters for Safra via SiTef routing:

  • Safra affiliation code
  • TEF Terminal Logic Number (alphanumeric length 8)

Safra via SiTef Example

FieldValue
AuthorizerMastercard [2]
RoutingSafra via SiTef [1296]
Minimum value of each installment6 reals [600]
Maximum installment with interest6 installments [6]
Maximum installment without interest11 installments [11]
Safra affiliation code98765432
TEF Terminal Logic NumberNoLgTe12
plaintext
...;2|1296|600|6|11|98765432|NoLgTe12

Global Payments via SiTef

Required parameters for Global Payments via SiTef routing:

  • Global Payments affiliation code

Global Payments via SiTef Example

FieldValue
AuthorizerMastercard [2]
RoutingSafra via SiTef [1206]
Minimum value of each installment2 reals [200]
Maximum installment with interest8 installments [8]
Maximum installment without interest10 installments [10]
Global Payments affiliation code12345678
plaintext
...;2|1206|200|8|10|12345678

Getnet Lac via SiTef

Required parameters for Getnet Lac via SiTef routing:

  • Getnet Lac affiliation code
  • Logic Terminal (alphanumeric length 8)

Getnet Lac via SiTef Example

FieldValue
AuthorizerVisa [1]
RoutingSafra via SiTef [1181]
Minimum value of each installment8 reals [800]
Maximum installment with interest11 installments [11]
Maximum installment without interest12 installments [12]
Getnet Lac affiliation code87654321
Logic TerminalTerLog18
plaintext
...;1|1181|800|11|12|87654321|TerLog18

Stone WS

This routing refers to the Stone's acquirer e-commerce interface. Required parameters for Stone WS routing:

  • salesAffiliationKey: alphanumeric.

ATTENTION: The especific parameters for this routing must be sent in the key:value format.

Stone WS Example

FieldValue
AuthorizerVisa [1]
RoutingStone WS [409]
Minimum value of each installment9 reals [900]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
salesAffiliationKeychaveDeIdentificacaoDaLojaNaStone
plaintext
...;1|409|900|10|10|salesAffiliationKey:chaveDeIdentificacaoDaLojaNaSt
one

Cielo EC

This routing refers to the Cielo's acquirer e-commerce interface. Required parameters for Cielo EC routing:

  • merchantId: alphanumeric (length < 36)
  • merchantKey: alphanumeric (length < 40)

Cielo EC Example

FieldValue
AuthorizerVisa [1]
RoutingCielo EC [201]
Minimum value of each installment21 reals [2100]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
merchantIdidentificacaoDaLojaNaCieloEC
merchantKeychaveDaLojaNaCieloEC
plaintext
...;1|201|2100|10|10|merchantId:identificacaoDaLojaNaCieloEC|merchantKey:chaveDaLojaNaCieloEC

e-Rede

This routing refers to the Rede's acquirer e-commerce interface. Required parameters for e-Rede routing:

  • filiacao: numeric (length 9)
  • senha: alphanumeric (length 32)

e-Rede Example

FieldValue
AuthorizerVisa [1)]
Routinge-Rede [1200]
Minimum value of each installment13 reais [1300]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
filiacao123456789
senhaaSenhaLojaNaERedeCom32Caracteres
plaintext
...;1|1200|1300|10|10|filiacao:123456789|senha:aSenhaLojaNaERedeCom32Caracteres

Global Payments WS

This routing refers to the Global Payments' acquirer e-commerce interface. Required parameters for Global Payments WS routing:

  • merchantCode: numeric (length 15)
  • secretKey: alphanumeric (length 20)
  • terminal: numeric (length 3)

Global Payments WS Example

FieldValue
AuthorizerMastercard [2]
RoutingGlobal Payments WS [408]
Minimum value of each installment8 reais [800]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
merchantCode123456789012345
secretKeyqwertyasdf0123456789
terminal001
plaintext
...;2|408|800|10|10| merchantCode:123456789012345|secretKey:qwertyasdf0123456789|terminal:001

Getnet WS

This routing refers to the GetNet's acquirer e-commerce interface. Required parameters for Global Payments WS routing:

  • username: alphanumeric (length 20)
  • password: alphanumeric (length 40)
  • merchantID: numeric (length 10)
  • terminalID: alphanumeric (length 7)

Getnet WS Example

FieldValue
AuthorizerMastercard [2]
RoutingGetnet WS [407]
Minimum value of each installment7 reais [700]
Maximum installment with interest10 installments [10]
Maximum installment without interest12 installments [12]
usernamenomeUsuarioDeAcessoG
passwordsenhaRelativaAoUsernameAcimaComQuarenta
merchantID1234567890
terminalID1234567
plaintext
...;2|407|700|10|12|username:nomeUsuarioDeAcessoG|password:senhaRelativaAoUsernameAcimaComQuarenta|merchantID:123456790|terminalID:1234567

Complete File Lines Example

In this section will be listed some examples of importation file lines.

Just One Authorizer

FieldValue
Merchant Codecod_loja_comp
Fantasy NameLoja dos Computadores
Corporate NameLoja dos Computadores LTDA.
CNPJ11137051003444
AddressR. dos Computadores, 3032
CityS Joao do Sul
StateSC
Zip Code07022000
Phone12341234
E-mail[email protected]
Domainhttps://dominio.com.br
Status Notification URLhttps://dominio.com.br/avisoStatus.jsp
Transaction Authenticity URLhttps://dominio.com.br/autenticidade.jsp
Storage URLhttps://dominio.com.br/envioHash.jsp
Success URLhttps://dominio.com.br/sucesso.jsp
Failure URLhttp://dominio.com.br/fracasso.jsp
Cancellation URLhttps://dominio.com.br/cancelamento.jsp
AUTHORIZER
AuthorizerVisa [1]
Minimum value of each installment20 reais [2000]
Maximum installment with interest5 installments [5]
Maximum installment without interest5 installments [5]
FieldValue
Merchant Codecod_loja_comp
Fantasy NameLoja dos Computadores
Corporate NameLoja dos Computadores LTDA.
CNPJ11137051003444
AddressR. dos Computadores, 3032
CityS Joao do Sul
StateSC
Zip Code07022000
Phone12341234
E-mail[email protected]
Domainhttps://dominio.com.br
Status Notification URLhttps://dominio.com.br/avisoStatus.jsp
Transaction Authenticity URLhttps://dominio.com.br/autenticidade.jsp
Storage URLhttps://dominio.com.br/envioHash.jsp
Success URLhttps://dominio.com.br/sucesso.jsp
Failure URLhttp://dominio.com.br/fracasso.jsp
Cancellation URLhttps://dominio.com.br/cancelamento.jsp
AUTHORIZER
AuthorizerVisa [1]
RoutingCielo [1125]
Minimum value of each installment20 reais [2000]
Maximum installment with interest5 installments [5]
Maximum installment without interest5 installments [5]
Cielo affiliation code00000001
plaintext
cod_loja_comp;Loja dos Computadores;Loja dos ComputadoresLTDA.;11137051003444;R. dos Computadores,3032;S Joao doSul;SC;07022000;12341234;[email protected];https://dominio.com.br;https://dominio.com.br/avisoStatus.jsp;https://dominio.com.br/autenticidade.jsp;https://dominio.com.br/envioHash.jsp;https://dominio.com.br/sucesso.jsp;http://dominio.com.br/fracasso.jsp;https://dominio.com.br/cancelamento.jsp;1|1125|2000|5|5|00000001

Two Authorizers

FieldValue
Merchant Codecod_loja_comp
Fantasy NameLoja dos Computadores
Corporate NameLoja dos Computadores LTDA.
CNPJ11137051003444
AddressR. dos Computadores, 3032
CityS Joao do Sul
StateSC
Zip Code07022000
Phone12341234
E-mail[email protected]
Domainhttps://dominio.com.br
Status Notification URLhttps://dominio.com.br/avisoStatus.jsp
Transaction Authenticity URLhttps://dominio.com.br/autenticidade.jsp
Storage URLhttps://dominio.com.br/envioHash.jsp
Success URLhttps://dominio.com.br/sucesso.jsp
Failure URLhttp://dominio.com.br/fracasso.jsp
Cancellation URLhttps://dominio.com.br/cancelamento.jsp
AUTHORIZERS
AUTHORIZER 1
AuthorizerVisa [1]
RoutingCielo [1125]
Minimum value of each installment20 reais [2000]
Maximum installment with interest5 installments [5]
Maximum installment without interest5 installments [5]
Cielo affiliation code00000001
AUTHORIZER 2
AuthorizerMastercard [2]
RoutingStone WS [409]
Minimum value of each installment10 reals [1000]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
salesAffiliationKeychaveDeIdentificacaoDaLojaNaStone
FieldValue
Merchant Codecod_loja_comp
Fantasy NameLoja dos Computadores
Corporate NameLoja dos Computadores LTDA.
CNPJ11137051003444
AddressR. dos Computadores, 3032
CityS Joao do Sul
StateSC
Zip Code07022000
Phone12341234
E-mail[email protected]
Domainhttps://dominio.com.br
Status Notification URLhttps://dominio.com.br/avisoStatus.jsp
Transaction Authenticity URLhttps://dominio.com.br/autenticidade.jsp
Storage URLhttps://dominio.com.br/envioHash.jsp
Success URLhttps://dominio.com.br/sucesso.jsp
Failure URLhttp://dominio.com.br/fracasso.jsp
Cancellation URLhttps://dominio.com.br/cancelamento.jsp
AUTHORIZERS
AUTHORIZER 1
AuthorizerVisa [1]
Minimum value of each installment20 reais [2000]
Maximum installment with interest5 installments [5]
Maximum installment without interest5 installments [5]
AUTHORIZER 2
AuthorizerMastercard [2]
RoutingStone WS [409]
Minimum value of each installment10 reals [1000]
Maximum installment with interest10 installments [10]
Maximum installment without interest10 installments [10]
salesAffiliationKeychaveDeIdentificacaoDaLojaNaStone
plaintext
cod_loja_comp;Loja dos Computadores;Loja dos ComputadoresLTDA.;11137051003444;R. dos Computadores,3032;S Joao doSul;SC;07022000;12341234;[email protected];https://dominio.com.br;https://dominio.com.br/avisoStatus.jsp;https://dominio.com.br/autenticidade.jsp;https://dominio.com.br/envioHash.jsp;https://dominio.com.br/sucesso.jsp;http://dominio.com.br/fracasso.jsp;https://dominio.com.br/cancelamento.jsp;1|1125|2000|5|5|00000001;2|405|1000|10|10|salesAffiliationKey :chaveDeIdentificacaoDaLojaNaStone

Authorizer Code Examples

List of some allowed authorizers on the importation:

AuthorizerCode
Visa1
Mastercard2
Amex3
Hipercard / Hiper5
Aura6
Diners33
Elo41
JCB43
Discover44
Visa Electron221
Maestro / Mastercard débito286

Routing Examples

List of some allowed routings on the importation:

RoutingCode
Cielo1125
Rede (Redecard)1005
Stone WS409
Cielo EC201
e-Rede1200
Global Payments WS408
Getnet WS407

## Registration Via REST API ### Merchant Editing Service

Source: https://docs.apis-fiserv.com/latam/docs/cadastro-lojas-ws-edicao

import ApiDoc from '../../../../../src/components/api-doc/ApiDoc';
import ResponseCodes from './codigos-de-resposta.md';

After getting the token or signature in the previous step, the virtual store can consume the merchant editing service. For this, only the data to be altered must be sent.

Call details

  • Resource: /v1/merchants/{id}
  • HTTP Method: PUT
  • Request format: JSON
  • Response format: JSON
  • Header parameters:
ParameterDescriptionFormatMandatory
merchant_idMerchant code on Carat Portal. The production and certification codes will be different.< 15 ANYES
merchant_keyMerchant authentication key on Carat Portal. The production and certification keys will be different.< 80 ANYES
tokenToken obtained on the token creation service. Learn more.= 66 ANNO
Content-TypeMust be sent with the value application/json.= 15 ANYES
AuthorizationThe merchant's signature must be sent in the format Bearer {signature}. Exemple: Bearer JHVGytfdgauygdauiw78264284527852897hagdg.< 2000 ANNO

Example using token

To use this example, don't forget to define the variable {{url}} with the value

Bash
curl 
--request PUT "https://{{url}}/e-sitef/api/v1/merchants/qereIoinsd3d"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--header "token: 1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr"
--data-binary
{
   "fantasy_name":"Teste de Loja",
   "corporate_name":"Testes de Loja Ltda.",
   "merchant_status":"A",
   "subacquirer_group":{
      "create":"true",
      "id":"123456",
      "cnpj":"12345678901234"
   },
   "domain":"www.testeloja.com",
   "cnpj":"123123123123",
   "address":"Rua do Teste, 123",
   "city":"São Teste",
   "state":"SP",
   "zip_code":"12345678",
   "phone_number":"11912341234",
   "email":"[email protected]",
   "mcc":"1234",
   "threeds_payment_link_authentication": "1",
   "automatic_threeds_minimum_value" : "9999999",
   "automatic_threeds_maximum_value" : "100000",
   "automatic_antifraud_minimum_value" :  "0",
   "automatic_antifraud_maximum_value" : "99999",
   "antifraud_over_threeds" : "false",
   "transactional_urls":{
      "status":"https://www.testeloja.com/status",
      "authenticity":"https://www.testeloja.com/autent",
      "hash":"https://www.testeloja.com/hash"
   },
   "return_urls":{
      "success":"https://www.testeloja.com/sucesso",
      "failure":"https://www.testeloja.com/fracasso",
      "cancel":"https://www.testeloja.com/cancel"
   },
   "permissions":{
      "payment":"true",
      "pre_authorization":"false",
      "recharge":"false",
      "risk_analysis":"true",
      "schedule":"true",
      "iata":"false",
      "card_store":"false",
      "payment_link":"true"
   },
   "establishments":[
      {
         "code":"00000000123",
         "routing_id":"1125",
         "subacquirer_group_id":"123456"
      },
      {
         "code":"00000000321",
         "routing_id":"1005"
      }
   ],
   "authorizers":[
      {
         "id":"1",
         "routing_id":"1125",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "enable_subacquirer_group":"true",
         "acquirer_merchant_id": "12345"
      },
      {
         "id":"2",
         "routing_id":"1005",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "enable_subacquirer_group":"false",
         "acquirer_merchant_id": "11111",
         "cvv_mandatory":"true"
      }
   ]
}
--verbose

Example using signature

To use this example, don't forget to define the variable {{url}} with the value

Bash
curl 
--request PUT "https://{{url}}/e-sitef/api/v1/merchants/qereIoinsd3d"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--header "Authorization: Bearer YYYYYYY"
--data-binary
{
   "fantasy_name":"Teste de Loja",
   "corporate_name":"Testes de Loja Ltda.",
   "merchant_status":"A",
   "subacquirer_group":{
      "create":"true",
      "id":"123456",
      "cnpj":"12345678901234"
   },
   "domain":"www.testeloja.com",
   "cnpj":"123123123123",
   "address":"Rua do Teste, 123",
   "city":"São Teste",
   "state":"SP",
   "zip_code":"12345678",
   "phone_number":"11912341234",
   "email":"[email protected]",
   "mcc":"1234",
   "threeds_payment_link_authentication": "1",
   "automatic_threeds_minimum_value" : "9999999",
   "automatic_threeds_maximum_value" : "100000",
   "automatic_antifraud_minimum_value" :  "0",
   "automatic_antifraud_maximum_value" : "99999",
   "antifraud_over_threeds" : "false",
   "transactional_urls":{
      "status":"https://www.testeloja.com/status",
      "authenticity":"https://www.testeloja.com/autent",
      "hash":"https://www.testeloja.com/hash"
   },
   "return_urls":{
      "success":"https://www.testeloja.com/sucesso",
      "failure":"https://www.testeloja.com/fracasso",
      "cancel":"https://www.testeloja.com/cancel"
   },
   "permissions":{
      "payment":"true",
      "pre_authorization":"false",
      "recharge":"false",
      "risk_analysis":"true",
      "schedule":"true",
      "iata":"false",
      "card_store":"false",
      "payment_link":"true"
   },
   "establishments":[
      {
         "code":"00000000123",
         "routing_id":"1125",
         "subacquirer_group_id":"123456"
      },
      {
         "code":"00000000321",
         "routing_id":"1005"
      }
   ],
   "authorizers":[
      {
         "id":"1",
         "routing_id":"1125",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "enable_subacquirer_group":"true",
         "acquirer_merchant_id": "12345",
         "cvv_mandatory":"true"
         
      },
      {
         "id":"2",
         "routing_id":"1005",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "enable_subacquirer_group":"false",
         "acquirer_merchant_id": "11111"
      }
   ]

}

Response:

JSON
{
  "id": "qereIoinsd3d",
  "key": "9B71234TB12D938T9384TDB294T923D412T938D1293D4B923D",
  "response_code": "0",
  "response_message": "OK",
  "authorizer_response_code": "0",
  "authorizer_response_message": "OK"
}

Request parameters

The table below describes the parameters of the merchant creation service:

ParameterDescriptionFormatMandatory
{id}Code of the merchant to be created. Sent in the URL.< 15 ANYES
fantasy_nameFantasy name of the merchant.< 250 ANNO
corporate_nameCorporate name of the merchant.< 250 ANNO
merchant_statusMerchant's current status. Can take the following values: A = Active I = Inactive= 1 ANNO
domainDomain (site) of the merchant.< 65 ANNO
cnpjCNPJ or CPF of the merchant. Numbers only.< 14 NNO
addressAddress of the merchant.< 30 ANNO
cityCity of the merchant.< 13 ANNO
stateState of the merchant (abbreviation).= 2 ANNO
zip_codeZip code of the merchant.< 9 ANNO
phone_numberPhone number of the merchant.< 30 ANNO
emailE-mail address of the merchant.< 100 ANNO
mccMerchant Category Code.= 4 NNO
threeds_payment_link_authenticationDefault authentication type that will be displayed when generating the payment link.
  • 0 = No authentication
  • 1 = Enable the use of 3DS. But if the 3DS server does not support the flag or fails to perform authentication, payment will be denied.
  • 2 = Enable the use of 3DS. However, if the 3DS server does not support the flag, it does not do authentication with 3DS server. If the flag is supported and authentication is denied, the payment will be denied.
  • 3 = Enable the use of 3DS. However, even if authentication fails, payment will not be denied in authentication.
= 1 NNO
automatic_threeds_minimum_valueMinimum value in cents for the 3DS to be automatically enabled. Attention: intervals that allow the use of 3ds and anti-fraud together must not be used.< 12 NNO
automatic_threeds_maximum_valueMaximum value in cents for the 3DS to be automatically enabled. Attention: intervals that allow the use of 3ds and anti-fraud together must not be used.< 12 NNO
automatic_antifraud_minimum_valueMinimum value in cents for the Anti-Fraud to be automatically enabled. It will only be possible to edit this value if Anti-Fraud is pre-configured. Attention: intervals that allow the use of 3ds and anti-fraud together must not be used.< 12 NNO
automatic_antifraud_maximum_valueMaximum value in cents for the Anti-Fraud to be automatically enabled. It will only be possible to edit this value if Anti-Fraud is pre-configured. Attention: intervals that allow the use of 3ds and anti-fraud together must not be used.< 12 NNO
antifraud_over_threedsFlag that turns on the functionality to activate the anti-fraud automatically in case of error or denied authentication using the 3DS Server integrated with Payment Online< 5 ANNO
soft_descriptorSubmerchant data.
idSubmerchant ID< 22 ANNO
countrySubmerchant country. ISO 3166-1 numeric code.= 3 NNO
fantasy_nameSubmerchant fantasy name< 22 ANNO
subacquirer_groupSubacquirer group data.
createFlag indicating whether the subacquirer group should be created< 5 T/FNO
idSubacquirer group ID< 6 ANNO
cnpjSubacquirer group CNPJ= 14 NYES, if the field subacquirer_group.create is true
establishmentsData of the establishments to be created on SiTef.
codeEstablishment code (logical number) to be created on SiTef= 11 NNO
routing_idAcquirer/routing ID on Carat Portal< 4 NNO
subacquirer_group_idSubacquirer group ID. Should be sent in case the establishment must be created for the group instead of the merchant.= 6 NNO
extra_dataAdditional establishment information< 32 ANNO
transactional_urlsURLs used on transactional flows.
statusURL for receiving status notifications.< 500 ANNO
authenticityURL for receiving authenticity POSTs.< 500 ANNO
hashURL for receiving stored card hash/token.< 500 ANNO
return_urlsHTML payment return URLs.
successSuccess return URL.< 500 ANNO
failureFailure return URL.< 500 ANNO
cancelCancel return URL.< 500 ANNO
permissionsTransactional permissions to be attributed to the merchant. Send the value true to enable the desired functionality.
paymentPayment permission.< 5 ANNO
pre_authorizationPre-authorization permission.< 5 ANNO
rechargeRecharge permission.< 5 ANNO
risk_analysisRisk analysis permission.< 5 ANNO
scheduleSchedule permission.< 5 ANNO
iataIATA permission.< 5 ANNO
card_storeCard store permission.< 5 ANNO
payment_linkPayment link permission.< 5 ANNO
authorizers[]Authorizers to be registered to the merchant.
idAuthorizer ID on Carat Portal. Learn more.< 4 NYES
routing_idRouting/acquirer ID on Carat Portal. Learn more.< 4 NYES
statusSend A to activate or I to inactivate the authorizer.< 1 ANNO
min_installments_amountMinimum installment amount for HTML transactions. Default value: 1000< 12 NNO
max_installments_without_interestMaximum installments without interest for HTML transactions. Default value: 3< 2 NNO
max_installments_with_interestMaximum installments with interest for HTML transactions. Default value: 12< 2 NNO
enable_subacquirer_groupEnable subacquirer group usage for the authorizer. Send true to enable or false to disable.< 5 T/FNO
acquirer_merchant_idMerchant identifier designated by the acquirer. If threeds_enabled = true you must send at least one acquirer_merchant_id< 35 ANNO
cvv_mandatoryEnable mandatory card security code field. Send true to enable or false to disable.< 5 T/FNO
authorizers[].parametersSpecific routing parameters. Learn more.

Response parameters

If successful, the HTTP response code will be 200. Any other code must be interpreted as an error. The table below describes the response parameters of the merchant editing service:

ParameterDescriptionFormat
response_codeCarat Portal response code. Any code different from 0 means failure.< 4 N
response_messageCarat Portal response message.< 500 AN
authorizer_response_codeAuthorizer response code.< 4 N
authorizer_response_messageAuthorizer response message.< 500 AN
idCode of the created merchant.< 15 AN
keyKey of the created merchant.< 80 AN

Token Creation Service

Source: https://docs.apis-fiserv.com/latam/docs/cadastro-lojas-ws-token

import ResponseCodes from './codigos-de-resposta.md';
import ApiDoc from '../../../../../src/components/api-doc/ApiDoc';

Consuming the token generation service is mandatory for creating or editing a merchant. As a result from this operation, the virtual store will obtain a token on their authenticity URL, which will be necessary for the next step of the flow.

Call details

  • Resource: /v1/token/merchants
  • HTTP Method: POST
  • Response format: JSON
  • Header parameters:
ParameterDescriptionFormatMandatory
merchant_idMerchant code on Carat Portal. The production and certification codes will be different.< 15 ANYES
merchant_keyMerchant authentication key on Carat Portal. The production and certification keys will be different.< 80 ANYES

Example

Request:

To use this example, don't forget to define the variable {{url}} with the value

Bash
curl 
--request POST "https://{{url}}/e-sitef/api/v1/token/merchants"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--verbose

Authenticity POST:

To use this example, don't forget to define the variable {{url}} with the value

Bash
curl  -X POST \
  https://urlDeAutenticidadeDaLoja.com.br \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'cache-control: no-cache' \
  -d 'token=1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr

Response:

{
   "response_code":0,
   "response_message":"OK. Transaction successful."
}

Authenticity POST parameters

The table below describes the parameters sent by Carat Portal on the authenticity POST:

ParameterDescriptionFormat
tokenToken to be sent in the next step of the flow.= 66 AN

Carat Portal can also send new parameters without previous warning, which means that the merchant's application must be prepared to receive additional fields and simply ignore them.

Attention: It's essential that the site hosted on the merchant's Authenticity URL receives the token and responds with HTTP 200, as this is how Carat Portal considers it a successful POST.

Response parameters

If successful, the HTTP response code will be 200. Any other code must be interpreted as an error. The table below describes the response parameters of the token creation service:

ParameterDescriptionFormat
response_codeCarat Portal response code. Any code different from 0(zero) means failure. Learn more.< 4 N
response_messageCarat Portal response message.< 500 AN

REST Merchants Registration

Source: https://docs.apis-fiserv.com/latam/docs/cadastro-lojas-ws-codigos-da-api

API codes

CodeDescription
0OK. Transaction successful.
1invalid file format
2null sitef_merchantid value
3null sitef_ip value
4null currency value
5null sitef_port value
6null version value
7invalid currency value
8invalid payment_type for merchant
9invalid id value
10invalid email value
11null email value
12null id value
13invalid address value
14null fantasy_name value
15invalid fantasy_name value
16null corporate_name value
17invalid corporate_name value
18null domain value
19invalid domain value
20null cnpj value
21invalid cnpj value
22invalid state value
23invalid phone_number value
24invalid transactional_urls.hash value
25invalid transactional_urls.authenticity value
26invalid return_urls.cancel value
27invalid return_urls.failure value
28invalid return_urls.success value
29invalid transactional_urls.status value
30invalid zip_code value
31invalid city value
32null authorizers.routing_id value
33invalid authorizers.routing_id value
34null authorizers.id value
35invalid authorizers.id value
36null authorizers.parameters.name value
37invalid authorizers.parameters.name value
38null authorizers.parameters.value value
39invalid authorizers.parameters.value value
40null request
41authorizer not allowed for NPC
42null cpf value
43invalid cpf value
44invalid cpf/cnpj value
45null login value
45invalid login value
47login already exists
48null name value
49invalid name value
50null access_type value
51invalid access_type value
52null profile value
53invalid profile value
54null admin_profile value
55invalid admin_profile value
56null prefix value
57invalid prefix value
58null merchant_id value
59invalid merchant_id value
60null merchant_key value
61invalid merchant_key value
62null group_id value
63invalid group_id value
64merchant registration not allowed
65merchant permissions not allowed
66invalid authorizers.min_installments_amount value
67invalid authorizers.max_installments_with_interest value
68invalid authorizers.max_installments_without_interest value
69invalid authorizers.status value
70merchant group registration error
71no permission to access this merchant
72invalid sitef_merchant_id value
75acquirer registration error
76parent merchant registration error
77client communication error
78null establishments.code value
79null establishments.routing_id value
80invalid establishments.routing_id value
81null subacquirer_group.id value
82null subacquirer_group.cnpj value
83no permission to get merchant status
85invalid merchant_status value
86invalid page value
87invalid limit value
88Signature or Token must not be null
89mcc cannot be null when threeds_enabled is true
90invalid threeds_enabled
91invalid threeds_payment_link_authentication
93at least one acquirer_merchant_id must be registered when threeds_enabled is true
94invalid acquirer_merchant_id
953DS registration error
96invalid automatic_antifraud_minimum_value
97invalid automatic_antifraud_maximum_value
98invalid automatic_threeds_maximum_value
99invalid automatic_threeds_minimum_value
100invalid antifraud_over_threeds
188Expired token
189Token already used
199Invalid token
200Token signature error
500error persisting data
1000Unexpected error! Please contact e-SiTef Support Team.
1026Merchant has no registered public key
1027Signature validation error
1028Signature payload validation error
1029Signature expired
1032Result not found

Merchant Status Query Service

Source: https://docs.apis-fiserv.com/latam/docs/cadastro-lojas-ws-consulta-status

import ApiDoc from '../../../../../src/components/api-doc/ApiDoc';
import ResponseCodes from './codigos-de-resposta.md';

After getting the token or signature in the previous step, the virtual store can consume the status merchant query service.

Attention:

The merchant requesting the status must have permission to do so and must be at the same group in which is the requested merchant. For more info on enabling Merchant Status Query Permission, contact our support team.

Call details

  • Resource: /v1/merchants/status/{id}
  • HTTP Method: GET
  • Request format: JSON
  • Header parameters:
ParameterDescriptionFormatMandatory
merchant_idMerchant code on Carat Portal. The production and certification codes will be different.< 15 ANYES
merchant_keyMerchant authentication key on Carat Portal. The production and certification keys will be different.< 80 ANNO
tokenToken obtained on the token creation service. Learn more.= 66 ANNO
AuthorizationThe merchant's signature must be sent in the format Bearer {signature}. Exemple: Bearer JHVGytfdgauygdauiw78264284527852897hagdg.< 2000 ANNO

Example

Response:

JSON
{
  "response_code": "0",
  "response_message": "OK",
  "merchant_status": "A"
}

Response parameters

ParameterDescriptionFormat
response_codeCarat Portal response code.< 4 N
response_messageCarat Portal response message.< 500 AN
merchant_statusStatus of the consulted merchant. A = ACTIVE; I = INACTIVE1 A

Quick Start

Source: https://docs.apis-fiserv.com/latam/docs/cadastro-lojas-ws-quickstart

This guide presents the merchant registration process, using Carat Portal's REST interface.

What you'll need

  • A merchant registered on Carat Portal with permission for consuming this API
  • A tool capable of making HTTP calls, such as Postman, REST Client or cURL
  • An application capable of receiving POST HTTPS calls, if the authenticity post is used

Authenticity POST x signature

Carat Portal has two methods of merchant authentication on the REST merchant creation, editing and query interface: authenticity POST or signature.

In the authenticity POST method, Carat Portal will send the data of the newly created recharge transaction to the registered authenticity URL of the merchant.

In the signature method, the merchant must have a public RSA encryption key registered on Carat Portal and prepare a JWT signature (JSON Web Tokens) to be sent in the Authorization header. Learn more.

Creating a token

Request method: POST

URL: https:///e-sitef/api/v1/token/merchants

Headers:

  • Content-Type: application/json
  • merchant_id: {your merchant id}
  • merchant_key: {your merchant key}

Request:

To use this example, don't forget to define the variable {{url}} to the value

cURL
curl
--request POST "https://{{url}}/e-sitef/api/v1/token/merchants"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--verbose

Receiving the authenticity POST:

Java
@RestController
public class MyAuthenticityController {

}

Response:

JSON
{
  "response_code": 0,
  "response_message": "OK. Transaction successful."
}

Learn more about this service.

Creating the merchant

Request method: POST

URL: https:///e-sitef/api/v1/merchants

Fill the <id> field in the URL above with the ID of the merchant to be created.

Headers:

  • Content-Type: application/json
  • merchant_id: {your merchant id}
  • merchant_key: {your merchant key}
  • token: {token obtained in the previous step}
  • Authorization: {signature if JWT signature is used}

Request:

To use this example, don't forget to define the variable {{url}} to the value

JSON
{
  "fantasy_name": "Teste de Loja",
  "corporate_name": "Testes de Loja Ltda.",
  "soft_descriptor": {
    "fantasy_name": "Sub-comércio da Loja",
    "country": "BR",
    "mcc": "1234",
    "id": "123456"
  },
  "subacquirer_group": {
    "create": "true",
    "id": "123456",
    "cnpj": "12345678901234"
  },
  "domain": "www.testeloja.com",
  "cnpj": "123123123123",
  "address": "Rua do Teste, 123",
  "city": "São Teste",
  "state": "SP",
  "zip_code": "12345678",
  "phone_number": "11912341234",
  "email": "[email protected]",
  "transactional_urls": {
    "status": "https://www.testeloja.com/status",
    "authenticity": "https://www.testeloja.com/autent",
    "hash": "https://www.testeloja.com/hash"
  },
  "return_urls": {
    "success": "https://www.testeloja.com/sucesso",
    "failure": "https://www.testeloja.com/fracasso",
    "cancel": "https://www.testeloja.com/cancel"
  },
  "permissions": {
    "payment": "true",
    "pre_authorization": "false",
    "recharge": "false",
    "risk_analysis": "true",
    "schedule": "true",
    "iata": "false",
    "card_store": "false",
    "payment_link": "true"
  },
  "establishments": [
    {
      "code": "00000000123",
      "routing_id": "1125",
      "subacquirer_group_id": "123456"
    },
    {
      "code": "00000000321",
      "routing_id": "1005"
    }
  ],
  "authorizers": [
    {
      "id": "1",
      "routing_id": "1125",
      "min_installments_amount": "100",
      "max_installments_without_interest": "1",
      "max_installments_with_interest": "12",
      "enable_subacquirer_group": "true"
    },
    {
      "id": "2",
      "routing_id": "201",
      "min_installments_amount": "100",
      "max_installments_without_interest": "1",
      "max_installments_with_interest": "12",
      "parameters": {
        "merchantId": "8h37e9e23oe",
        "merchantKey": "b9f374t5983t745f873tb45f93b4f2293b485ft34"
      }
    }
  ]
}
cURL
curl
--request POST "https://{{url}}/e-sitef/api/v1/merchants"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--header "token: 1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr"
--data-binary
{
   "cnpj":"123123123123",
   "fantasy_name":"Teste de Loja",
   "corporate_name":"Testes de Loja Ltda.",
   "soft_descriptor":{
      "fantasy_name":"Sub-comércio da Loja",
      "country":"BR",
      "mcc":"1234",
      "id":"123456"
   },
   "subacquirer_group":{
      "create":"true",
      "id":"123456",
      "cnpj":"12345678901234"
   },
   "domain":"www.testeloja.com",
   "address":"Rua do Teste, 123",
   "city":"São Teste",
   "state":"SP",
   "zip_code":"12345678",
   "phone_number":"11912341234",
   "email":"[email protected]",
   "transactional_urls":{
      "status":"https://www.testeloja.com/status",
      "authenticity":"https://www.testeloja.com/autent",
      "hash":"https://www.testeloja.com/hash"
   },
   "return_urls":{
      "success":"https://www.testeloja.com/sucesso",
      "failure":"https://www.testeloja.com/fracasso",
      "cancel":"https://www.testeloja.com/cancel"
   },
   "permissions":{
      "payment":"true",
      "pre_authorization":"false",
      "recharge":"false",
      "risk_analysis":"true",
      "schedule":"true",
      "iata":"false",
      "card_store":"false",
      "payment_link":"true"
   },
   "establishments":[
      {
         "code":"00000000123",
         "routing_id":"1125",
         "subacquirer_group_id":"123456"
      },
      {
         "code":"00000000321",
         "routing_id":"1005"
      }
   ],
   "authorizers":[
      {
         "id":"1",
         "routing_id":"1125",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "enable_subacquirer_group":"true"
      },
      {
         "id":"2",
         "routing_id":"201",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "parameters":{
            "merchantId":"8h37e9e23oe",
            "merchantKey":"b9f374t5983t745f873tb45f93b4f2293b485ft34"
         }
      }
   ]
}
--verbose
cURL
curl
--request POST "https://{{url}}/e-sitef/api/v1/merchants"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--header "token: 1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr"
--data-binary
{
   "cnpj":"123123123123",
   "fantasy_name":"Teste de Loja",
   "corporate_name":"Testes de Loja Ltda.",
   "soft_descriptor":{
      "fantasy_name":"Sub-comércio da Loja",
      "country":"BR",
      "mcc":"1234",
      "id":"123456"
   },
   "subacquirer_group":{
      "create":"true",
      "id":"123456",
      "cnpj":"12345678901234"
   },
   "domain":"www.testeloja.com",
   "address":"Rua do Teste, 123",
   "city":"São Teste",
   "state":"SP",
   "zip_code":"12345678",
   "phone_number":"11912341234",
   "email":"[email protected]",
   "transactional_urls":{
      "status":"https://www.testeloja.com/status",
      "authenticity":"https://www.testeloja.com/autent",
      "hash":"https://www.testeloja.com/hash"
   },
   "return_urls":{
      "success":"https://www.testeloja.com/sucesso",
      "failure":"https://www.testeloja.com/fracasso",
      "cancel":"https://www.testeloja.com/cancel"
   },
   "permissions":{
      "payment":"true",
      "pre_authorization":"false",
      "recharge":"false",
      "risk_analysis":"true",
      "schedule":"true",
      "iata":"false",
      "card_store":"false",
      "payment_link":"true"
   },
   "establishments":[
      {
         "code":"00000000123",
         "routing_id":"1125",
         "subacquirer_group_id":"123456"
      },
      {
         "code":"00000000321",
         "routing_id":"1005"
      }
   ],
   "authorizers":[
      {
         "id":"1",
         "routing_id":"1125",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "enable_subacquirer_group":"true"
      },
      {
         "id":"2",
         "routing_id":"201",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "parameters":{
            "merchantId":"8h37e9e23oe",
            "merchantKey":"b9f374t5983t745f873tb45f93b4f2293b485ft34"
         }
      }
   ]
}
--verbose

Response:

JSON
{
  "id": "qereIoinsd3d",
  "key": "9B71234TB12D938T9384TDB294T923D412T938D1293D4B923D",
  "response_code": "0",
  "response_message": "OK"
}

Learn more about this service.


Merchant Creation Service

Source: https://docs.apis-fiserv.com/latam/docs/cadastro-lojas-ws-criacao

import ApiDoc from '../../../../../src/components/api-doc/ApiDoc';
import ResponseCodes from './codigos-de-resposta.md';

After getting the token or signature in the previous step, the virtual store must send the data of the merchant to be created on Carat Portal and SiTef (if necessary).

Attention:

Registered merchants will have the same personalization settings as the registering merchant, such as their logo, CSS and JS.

Call details

  • Resource: /v1/merchants
  • HTTP Method: POST
  • Request format: JSON
  • Response format: JSON
  • Header parameters:
ParameterDescriptionFormatMandatory
merchant_idMerchant code on Carat Portal. The production and certification codes will be different.< 15 ANYES
merchant_keyMerchant authentication key on Carat Portal. The production and certification keys will be different.< 80 ANYES
tokenToken obtained in the previous step. Learn more.= 66 ANNO
Content-TypeMust be sent with the value application/json.= 15 ANYES

Attention:

During merchant registration, the settings related to the use of 3DS and anti-fraud are automatically replicated from the registering merchant.

Example

Request:

To use this example, don't forget to define the variable {{url}} with the value

Bash
curl 
--request POST "https://{{url}}/e-sitef/api/v1/merchants"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--header "token: 1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr"
--data-binary
{
   "cnpj":"123123123123",
   "fantasy_name":"Teste de Loja",
   "corporate_name":"Testes de Loja Ltda.",
   "mcc":"1234",
   "threeds_enabled":"true",
   "threeds_payment_link_authentication":"1",
   "automatic_threeds_minimum_value" : "30000",
   "automatic_threeds_maximum_value" : "99999",
   "automatic_antifraud_minimum_value" :  "100000",
   "automatic_antifraud_maximum_value" : "999999",
   "antifraud_over_threeds" : "false",
   "soft_descriptor":{
      "fantasy_name":"Sub-comércio da Loja",
      "country":"BR",
      "id":"123456"
   },
   "subacquirer_group":{
      "create":"true",
      "id":"123456",
      "cnpj":"12345678901234"
   },
   "domain":"www.testeloja.com",
   "address":"Rua do Teste, 123",
   "city":"São Teste",
   "state":"SP",
   "zip_code":"12345678",
   "phone_number":"11912341234",
   "email":"[email protected]",
   "transactional_urls":{
      "status":"https://www.testeloja.com/status",
      "authenticity":"https://www.testeloja.com/autent",
      "hash":"https://www.testeloja.com/hash"
   },
   "return_urls":{
      "success":"https://www.testeloja.com/sucesso",
      "failure":"https://www.testeloja.com/fracasso",
      "cancel":"https://www.testeloja.com/cancel"
   },
   "permissions":{
      "payment":"true",
      "pre_authorization":"false",
      "recharge":"false",
      "risk_analysis":"true",
      "schedule":"true",
      "iata":"false",
      "card_store":"false",
      "payment_link":"true"
   },
   "establishments":[
      {
         "code":"00000000123",
         "routing_id":"1125",
         "subacquirer_group_id":"123456"
      },
      {
         "code":"00000000321",
         "routing_id":"1005"
      }
   ],
   "authorizers":[
      {
         "id":"1",
         "routing_id":"1125",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "enable_subacquirer_group":"true",
         "acquirer_merchant_id":"11111",
         "cvv_mandatory":"true"
      },
      {
         "id":"2",
         "routing_id":"201",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "parameters":{
            "merchantId":"8h37e9e23oe",
            "merchantKey":"b9f374t5983t745f873tb45f93b4f2293b485ft34"
          },
         "acquirer_merchant_id":"22222"
      }
   ]
}
--verbose

To use this example, don't forget to define the variable {{url}} with the value

Bash
curl 
--request POST "https://{{url}}/e-sitef/api/v1/merchants"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--header "Authorization: Bearer YYYYYYY"
--data-binary
{
   "cnpj":"123123123123",
   "fantasy_name":"Teste de Loja",
   "corporate_name":"Testes de Loja Ltda.",
   "mcc":"1234",
   "threeds_enabled":"true",
   "threeds_payment_link_authentication":"1",
   "automatic_threeds_minimum_value" : "30000",
   "automatic_threeds_maximum_value" : "99999",
   "automatic_antifraud_minimum_value" :  "100000",
   "automatic_antifraud_maximum_value" : "999999",
   "antifraud_over_threeds" : "false",
   "soft_descriptor":{
      "fantasy_name":"Sub-comércio da Loja",
      "country":"BR",
      "id":"123456"
   },
   "subacquirer_group":{
      "create":"true",
      "id":"123456",
      "cnpj":"12345678901234"
   },
   "domain":"www.testeloja.com",
   "address":"Rua do Teste, 123",
   "city":"São Teste",
   "state":"SP",
   "zip_code":"12345678",
   "phone_number":"11912341234",
   "email":"[email protected]",
   "transactional_urls":{
      "status":"https://www.testeloja.com/status",
      "authenticity":"https://www.testeloja.com/autent",
      "hash":"https://www.testeloja.com/hash"
   },
   "return_urls":{
      "success":"https://www.testeloja.com/sucesso",
      "failure":"https://www.testeloja.com/fracasso",
      "cancel":"https://www.testeloja.com/cancel"
   },
   "permissions":{
      "payment":"true",
      "pre_authorization":"false",
      "recharge":"false",
      "risk_analysis":"true",
      "schedule":"true",
      "iata":"false",
      "card_store":"false",
      "payment_link":"true"
   },
   "establishments":[
      {
         "code":"00000000123",
         "routing_id":"1125",
         "subacquirer_group_id":"123456"
      },
      {
         "code":"00000000321",
         "routing_id":"1005"
      }
   ],
   "authorizers":[
      {
         "id":"1",
         "routing_id":"1125",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "enable_subacquirer_group":"true",
         "acquirer_merchant_id":"11111",
         "cvv_mandatory":"true",
      },
      {
         "id":"2",
         "routing_id":"201",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "parameters":{
            "merchantId":"8h37e9e23oe",
            "merchantKey":"b9f374t5983t745f873tb45f93b4f2293b485ft34"
         },
         "acquirer_merchant_id":"22222"
      }
   ]
}
--verbose

Response:

JSON
{
  "id": "qereIoinsd3d",
  "key": "9B71234TB12D938T9384TDB294T923D412T938D1293D4B923D",
  "response_code": "0",
  "response_message": "OK",
  "authorizer_response_code": "0",
  "authorizer_response_message": "OK"
}

Request parameters

The table below describes the parameters of the merchant creation service:

ParameterDescriptionFormatMandatory
cnpjCNPJ or CPF of the merchant. Alphanumeric.=A 14 ANYES
force_sitef_merchant_creationIf the value true is informed, it activates the alternative generation of company numbers, allowing more than one company to be registered for the same CNPJ/CPF. If not informed, it assumes false, that is, it uses the standard algorithm for generating company code, which guarantees only one company for each CNPJ/CPF. Send true or false.< 5 ANNO
fantasy_nameFantasy name of the merchant.< 250 ANYES
corporate_nameCorporate name of the merchant.< 250 ANYES
domainDomain (site) of the merchant.< 65 ANNO
addressAddress of the merchant.< 30 ANNO
cityCity of the merchant.< 13 ANNO
stateState of the merchant (abbreviation).= 2 ANNO
zip_codeZip code of the merchant.< 9 ANNO
phone_numberPhone number of the merchant.< 30 ANNO
emailE-mail address of the merchant.< 100 ANNO
mccMerchant Category Code - code indicating the category of the establishment (used on the anti-fraud registration). If the field threeds_enabled=true, mcc becomes mandatory. If the value's length has less than 4 digits, zeros will be added to the left of the number until it reaches size 4.= 4 NNO
threeds_enabledEnables the merchant to integrate with the 3DS Server and performing the necessary configurations on Carat Portal, send true or false. Learn more.< 5 ANNO
threeds_payment_link_authenticationDefault authentication type that will be displayed when generating the payment link.
  • 0 = No authentication
  • 1 = Enable the use of 3DS and if the 3DS server does not support the flag or fails to authenticate, payment will be denied.
  • 2 = Enable the use of 3DS only with flags supported by the 3DS server. If the 3DS server does not support the flag, authentication is not performed. If the flag is supported and authentication is denied, payment will be denied.
  • 3 = Enable the use of 3DS and if authentication fails, payment will not be denied in authentication.
= 1 NNO
automatic_threeds_minimum_valueIndicates the minimum amount in cents for a transaction to automatically enable the 3DS. Attention: intervals that allow the use of 3ds and anti-fraud together must not be used.< 12 NNO
automatic_threeds_maximum_valueIndicates the maximum amount in cents for a transaction to automatically enable the 3DS. Attention: intervals that allow the use of 3ds and anti-fraud together must not be used.< 12 NNO
automatic_antifraud_minimum_valueIndicates the minimum amount in cents for a transaction to automatically enable Anti-Fraud. Attention: intervals that allow the use of 3ds and anti-fraud together must not be used.< 12 NNO
automatic_antifraud_maximum_valueIndicates the maximum amount in cents of a transaction to automatically enable Anti-Fraud. Attention: intervals that allow the use of 3ds and anti-fraud together must not be used.< 12 NNO
antifraud_over_threedsFlag that turns on the functionality to activate the anti-fraud automatically in case of error or denied authentication using the 3DS Server integrated with Payment Online< 5 ANNO
soft_descriptorSubmerchant data.
idSubmerchant ID< 22 ANNO
countrySubmerchant country. ISO 3166-1 numeric code.= 3 NNO
fantasy_nameSubmerchant fantasy name< 22 ANNO
subacquirer_groupSubacquirer group data.
createFlag indicating whether the subacquirer group should be created< 5 T/FNO
idSubacquirer group ID< 6 ANNO
cnpjSubacquirer group CNPJ= 14 ANYES, if the field subacquirer_group.create is true
establishmentsData of the establishments to be created on SiTef.
codeEstablishment code (logical number) to be created on SiTef= 11 NNO
routing_idAcquirer/routing ID on Carat Portal< 4 NNO
subacquirer_group_idSubacquirer group ID. Should be sent in case the establishment must be created for the group instead of the merchant.= 6 NNO
extra_dataAdditional establishment information< 32 ANNO
transactional_urlsURLs used on transactional flows.
statusURL for receiving status notifications.< 500 ANNO
authenticityURL for receiving authenticity POSTs.< 500 ANNO
hashURL for receiving stored card hash/token.< 500 ANNO
return_urlsHTML payment return URLs.
successSuccess return URL.< 500 ANNO
failureFailure return URL.< 500 ANNO
cancelCancel return URL.< 500 ANNO
permissionsTransactional permissions to be attributed to the merchant. Send the value true to enable the desired functionality.
paymentPayment permission.< 5 ANNO
pre_authorizationPre-authorization permission.< 5 ANNO
rechargeRecharge permission.< 5 ANNO
risk_analysisRisk analysis permission.< 5 ANNO
scheduleSchedule permission.< 5 ANNO
iataIATA permission.< 5 ANNO
card_storeCard store permission.< 5 ANNO
payment_linkPayment link permission.< 5 ANNO
authorizers[]Authorizers to be registered to the merchant. The presence of a SiTef routing indicates that a SiTef merchant must also be created.
idAuthorizer ID on Carat Portal. Learn more.< 4 NYES
routing_idRouting/acquirer ID on Carat Portal. Learn more.< 4 NYES
min_installments_amountMinimum installment amount for HTML transactions. Default value: 1000< 12 NNO
max_installments_without_interestMaximum installments without interest for HTML transactions. Default value: 3< 2 NNO
max_installments_with_interestMaximum installments with interest for HTML transactions. Default value: 12< 2 NNO
enable_subacquirer_groupEnable subacquirer group usage for the authorizer. Send true to enable or false to disable.< 5 T/FNO
acquirer_merchant_idMerchant identifier designated by the acquirer. If threeds_enabled = true you must send at least one acquirer_merchant_id< 35 ANNO
cvv_mandatoryEnable mandatory card security code field. Send true to enable or false to disable.< 5 T/FNO
authorizers[].parametersSpecific routing parameters. Learn more.

Routing/acquirer codes

IDRouting
1229BIN via SiTef
IDRouting
201Cielo e-Commerce
202e-Rede.REST
407Getnet WS
408Global Payments WS
409Stone WS
1005Rede via SiTef
1181Getnet Lac via SiTef
1125Cielo via SiTef
1206Global Payments via SiTef
1229BIN via SiTef
1265Stone via SiTef
1296Safra via SiTef

Specific routing parameters

These parameters must be sent in the authorizer[].parameters field depending on the chosen acquirer.

Cielo e-Commerce

ParameterDescription
authorizers[].parametersSpecific routing parameters.
merchantIdMerchant identification on Cielo.
merchantKeyMerchant key on Cielo.

Getnet WS

ParameterDescription
authorizers[].parametersSpecific routing parameters.
usernameAccess user.
passwordAccess password.
merchantIDEC code registered on Getnet.
terminalTerminal identification.
subMerchantIdSubmerchant ID.

Global Payments WS

ParameterDescription
authorizers[].parametersSpecific routing parameters.
merchantCodeEstablishment number defined by Global Payments.
secretKeyMerchant secret key on Global Payments.
terminalTerminal number that will be defined by Global Payments.

Stone WS

ParameterDescription
authorizers[].parametersSpecific routing parameters.
salesAffiliationKeyMerchant identification key on Stone.
subAdquirenciaHabilitadaSend true to enable sub-acquiring or false otherwise.

BIN via SiTef

ParameterDescriptionFormat
authorizers[].parametersSpecific routing parameters.
subacquirerMerchantIdSubmerchant code.
establishmentsData of the establishments to be created on SiTef.
establishments.extra_dataTerminal code. Mandatory field for integration with the Bin acquirer.= 8 AN

e-Rede

ParameterDescription
authorizers[].parametersSpecific routing parameters.
filiationMerchant filiation code on e-Rede.
tokenMerchant public key on e-Rede.

Check more details about "e-Rede routing")

Registering merchants with anti-fraud

It's possible to automatically register new merchants with the following anti-fraud solutions: Fraud, ClearSale, CyberSource and Konduto. To do it, the merchant must contact the risk analysis institution and request the necessary credentials. Then, the merchant must pass a set of MCC's (Merchant Category Code) for each registered credential to the Carat Portal Production team, which will register this data. These MCC's will be mapped for each credential and these values ​​will be used on the registration of each merchant. Once this pre-registration is done, it will be possible to perform the anti-fraud registration automatically using the merchant creation API.

It's possible to automatically register new merchants with the following anti-fraud solutions: Antifraude Fiserv. To do it, the merchant must contact the risk analysis institution and request the necessary credentials. Then, the merchant must pass a set of MCC's (Merchant Category Code) for each registered credential to the Carat Portal Production team, which will register this data. These MCC's will be mapped for each credential and these values ​​will be used on the registration of each merchant. Once this pre-registration is done, it will be possible to perform the anti-fraud registration automatically using the merchant creation API.

Attention:

  • It's required to activate the anti-fraud permission (risk_analysis) on the merchant creation call.
  • Only the merchant creation service performs the automatic anti-fraud registration.

Response parameters

If successful, the HTTP response code will be 201. Any other code must be interpreted as an error. The table below describes the response parameters of the merchant creation service:

ParameterDescriptionFormat
response_codeCarat Portal response code. Any code different from 0 means failure.< 4 N
response_messageCarat Portal response message.< 500 AN
authorizer_response_codeAuthorizer response code.< 4 N
authorizer_response_messageAuthorizer response message.< 500 AN
idCode of the created merchant. Automatically generated (note: uppercase and lowercase characters are differentiated in the system).< 15 AN
keyKey of the created merchant.< 80 AN

List Merchants Service

Source: https://docs.apis-fiserv.com/latam/docs/cadastro-lojas-ws-listagem

import ApiDoc from '../../../../../src/components/api-doc/ApiDoc';

After getting the token or signature in the previous step, the virtual store may consume the store list service

Call details

  • Resource: /v1/merchants
  • HTTP Method: GET
  • Request format: query string
  • Response format: JSON
  • Header parameters:
ParameterDescriptionFormatMandatory
merchant_idMerchant code on Carat Portal. The production and certification codes will be different.< 15 ANYES
merchant_keyMerchant authentication key on Carat Portal. The production and certification keys will be different.< 80 ANYES
tokenToken obtained on the token creation service. Learn more.= 66 ANNO
AuthorizationThe merchant's signature must be sent in the format Bearer {signature}. Exemple: Bearer JHVGytfdgauygdauiw78264284527852897hagdg.< 2000 ANNO

Example

Store list using token

Request:

To use this example, don't forget to define the variable {{url}} to the value

JSON
curl
--request GET "https://{{url}}/e-sitef/api/v1/merchants?cnpj=12345678901234&merchant_status=A&page=1&limit=1"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--header "token: 1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr"
--verbose

Store list using signature

Request:

To use this example, don't forget to define the variable {{url}} to the value

JSON
curl
--request GET "https://{{url}}/e-sitef/api/v1/merchants?cnpj=12345678901234&merchant_status=A&page=1&limit=1"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--header "Authorization: Bearer YYYYYYY"
--verbose

Response:

JSON
{
  "response_code": "0",
  "response_message": "OK",
  "current_page": "0",
  "total_pages": "1",
  "count": "1",
  "merchants": [
    {
      "id": "qereIoinsd3d",
      "merchant_status": "A",
      "fantasy_name": "Teste de Loja",
      "corporate_name": "Testes de Loja Ltda.",
      "cnpj": "12345678901234"
    }
  ]
}

Request parameters

ParâmetroDescriçãoFormatoObrigatório
cnpjCNPJ of the merchant. Alphanumeric.= 14 ANNão
merchant_statusStore status. Can assume the following values: A = Active I = Inactive= 1 NNão
pageList Page. The first page value is 0. If not set, defaults to 0.< 4 NNão
limitMax records by page. If not set, defaults to 100.< 3 NNão

Response parameters

If successful, the HTTP response code will be 200. Any other code must be interpreted as an error.

ParameterDescriptionFormat
response_codeCarat Portal response code. Any code different from 0 means failure.< 4 N
response_messageCarat Portal response message.< 500 AN
current_pageCurrent records page.< 4 N
total_pagesTotal pages number.< 4 N
countTotal register count.< 4 N
merchants[]Store list returned by the query.
idCode of the created merchant.< 15 AN
merchant_statusStore status. Can assume the following values: A = Active I = Inactive= 1 N
fantasy_nameFantasy name of the merchant.< 250 AN
corporate_nameCorporate name of the merchant.< 250 AN
cnpjCNPJ of the merchant. Alphanumeric.= 14 AN

Merchant Query Service

Source: https://docs.apis-fiserv.com/latam/docs/cadastro-lojas-ws-consulta

import ApiDoc from '../../../../../src/components/api-doc/ApiDoc';
import ResponseCodes from './codigos-de-resposta.md';

After getting the token or signature in the previous step, the virtual store can consume the merchant query service.

Call details

  • Resource: /v1/merchants/{id}
  • HTTP Method: GET
  • Request format: JSON
  • Header parameters:
ParameterDescriptionFormatMandatory
merchant_idMerchant code on Carat Portal. The production and certification codes will be different.< 15 ANYES
merchant_keyMerchant authentication key on Carat Portal. The production and certification keys will be different.< 80 ANYES
tokenToken obtained on the token creation service. Learn more.= 66 ANNO
AuthorizationThe merchant's signature must be sent in the format Bearer {signature}. Exemple: Bearer JHVGytfdgauygdauiw78264284527852897hagdg.< 2000 ANNO

Example

Response:

JSON
{
   "response_code":"0",
   "response_message":"OK",
   "id":"qereIoinsd3d",
   "key":"9B71234TB12D938T9384TDB294T923D412T938D1293D4B923D",
   "fantasy_name":"Teste de Loja",
   "corporate_name":"Testes de Loja Ltda.",
   "sitef_merchant_id":"00000000",
   "merchant_status":"A",
   "domain":"www.testeloja.com",
   "cnpj":"123123123123",
   "address":"Rua do Teste, 123",
   "city":"São Teste",
   "state":"SP",
   "zip_code":"12345678",
   "phone_number":"11912341234",
   "email":"[email protected]",
   "mcc": "1234",
   "threeds_enabled": "true",
   "threeds_payment_link_authentication": "1",
   "automatic_threeds_minimum_value" : "9999999",
   "automatic_threeds_maximum_value" : "100000",
   "automatic_antifraud_minimum_value" :  "0",
   "automatic_antifraud_maximum_value" : "99999",
   "antifraud_over_threeds" : "false",
   "transactional_urls":{
      "status":"https://www.testeloja.com/status",
      "authenticity":"https://www.testeloja.com/autent",
      "hash":"https://www.testeloja.com/hash"
   },
   "return_urls":{
      "success":"https://www.testeloja.com/sucesso",
      "failure":"https://www.testeloja.com/fracasso",
      "cancel":"https://www.testeloja.com/cancel"
   },
   "permissions":{
      "payment":"true",
      "pre_authorization":"false",
      "recharge":"false",
      "risk_analysis":"true",
      "schedule":"true",
      "iata":"false",
      "card_store":"false",
      "payment_link":"true"
   },
   "authorizers":[
      {
         "id":"1",
         "status":"I",
         "routing_id":"1125",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "acquirer_merchant_id": "12345",
         "cvv_mandatory":"true"
         
      },
      {
         "id":"2",
         "status":"A",
         "routing_id":"201",
         "min_installments_amount":"100",
         "max_installments_without_interest":"1",
         "max_installments_with_interest":"12",
         "acquirer_merchant_id": "111111"
         "parameters":{
            "merchantId":"8h37e9e23oe",
            "merchantKey":"b9f374t5983t745f873tb45f93b4f2293b485ft34"
         }
      }
   ]
}

Response parameters

If successful, the HTTP response code will be 200. Any other code must be interpreted as an error

ParameterDescriptionFormat
response_codeCarat Portal response code.< 4 N
response_messageCarat Portal response message.< 500 AN
idCode of the created merchant.< 15 AN
keyKey of the created merchant.< 80 AN
fantasy_nameFantasy name of the merchant.< 250 AN
corporate_nameCorporate name of the merchant.< 250 AN
merchant_statusMerchant's current status. Can take the following values: A = Active I = Inactive= 1 AN
sitef_merchant_idMerchant ID at SiTef.8 N
domainDomain (site) of the merchant.< 65 AN
cnpjCNPJ or CPF of the merchant. Alphanumeric.= 14 AN
addressAddress of the merchant.< 30 AN
cityCity of the merchant.< 13 AN
stateState of the merchant (abbreviation).= 2 AN
zip_codeZip code of the merchant.< 9 AN
phone_numberPhone number of the merchant.< 30 AN
emailE-mail address of the merchant.< 100 AN
transactional_urlsURLs used on transactional flows.
mccMerchant Category Code - code indicating the category of the establishment= 4 N
threeds_enabledDisplays whether the merchant is ready for authentication using 3DS Server. Learn more.< 5 ANNO
threeds_payment_link_authenticationDefault authentication type that will be displayed when generating the payment link.
  • 0 = No authentication
  • 1 = Enable the use of 3DS and if the 3DS server does not support the flag or fails to authenticate, payment will be denied.
  • 2 = Enable the use of 3DS only with flags supported by the 3DS server. If the 3DS server does not support the flag, authentication is not performed. If the flag is supported and authentication is denied, payment will be denied.
  • 3 = Enable the use of 3DS and if authentication fails, payment will not be denied in authentication.
= 1 NNO
automatic_threeds_minimum_valueMinimum value in cents for the 3DS to be automatically enabled. If the minimum value is setted in and the maximum is not, the minimum value is assumed to be enabled to virtually infinity.< 12 N
automatic_threeds_maximum_valueMaximum value in cents for the 3DS to be automatically enabled. If the maximum value is setted and the minimum is not, it is assumed enabled from the minimum value zero to the maximum value.< 12 N
automatic_antifraud_minimum_valueMinimum value in cents for the Anti-Fraud to be automatically enabled. If the minimum value is filled and the maximum is not, it is assumed enabled from the minimum value to virtually infinite.< 12 N
automatic_antifraud_maximum_valueMaximum value in cents tfor the Anti-Fraud to be automatically enabled. If the maximum value is filled and the minimum is not, it is assumed enabled from the minimum value of zero to the maximum value.< 12 N
antifraud_over_threedsFlag that indicates the functionality to activate the anti-fraud automatically in case of error or denied authentication using the 3DS Server integrated with Payment Online< 5 ANNO
statusURL for receiving status notifications.< 500 AN
authenticityURL for receiving authenticity POSTs.< 500 AN
hashURL for receiving stored card hash/token.< 500 AN
return_urlsHTML payment return URLs.
successSuccess return URL.< 500 AN
failureFailure return URL.< 500 AN
cancelCancel return URL.< 500 AN
permissionsTransactional permissions to be attributed to the merchant. Send the value true to enable the desired functionality.
paymentPayment permission.< 5 AN
pre_authorizationPre-authorization permission.< 5 AN
rechargeRecharge permission.< 5 AN
risk_analysisRisk analysis permission.< 5 AN
scheduleSchedule permission.< 5 AN
iataIATA permission.< 5 AN
card_storeCard store permission.< 5 AN
payment_linkPayment link permission.< 5 AN
authorizers[]Authorizers to be registered to the merchant.
idAuthorizer ID on Carat Portal. Learn more.< 4 N
routing_idRouting/acquirer ID on Carat Portal. Learn more.< 4 N
min_installments_amountMinimum installment amount for HTML transactions. Default value: 1000< 12 N
max_installments_without_interestMaximum installments without interest for HTML transactions. Default value: 3< 2 N
max_installments_with_interestMaximum installments with interest for HTML transactions. Default value: 12< 2 N
acquirer_merchant_idMerchant identifier designated by the acquirer.< 35 ANNO
cvv_mandatoryEnable mandatory card security code field.< 5 AN
authorizers[].parametersSpecific routing parameters. Learn more.


Did this page help you?