Batch Store Registration

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):

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, only numbers, 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 NOptional
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:

...;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-mailemail@email.com
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#

cod_loja_comp;Loja dos Computadores;Loja dos Computadores LTDA.;11137051003444;R. dos Computadores,3032;S Joao do Sul;SC;07022000;12341234;email@email.com.br;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
...;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
...;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
...;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
...;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
...;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
...;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
...;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
...;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
...;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
...;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
...;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
...;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-mailemail@email.com
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

cod_loja_comp;Loja dos Computadores;Loja dos ComputadoresLTDA.;11137051003444;R. dos Computadores,3032;S Joao doSul;SC;07022000;12341234;email@email.com.br;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-mailemail@email.com
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

cod_loja_comp;Loja dos Computadores;Loja dos ComputadoresLTDA.;11137051003444;R. dos Computadores,3032;S Joao doSul;SC;07022000;12341234;email@email.com.br;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