Batch Store Registration
#
OverviewThe 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 FormatATTENTION: The importation file must be generated with the UTF-8 encode.
#
Default fieldsFormat to be received (Format per line):
Field | Field description | Format and size | Required |
---|---|---|---|
field1 | Merchant 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 AN | Yes |
field2 | Fantasy Name | < 250 AN (no accentuation) | Yes |
field3 | Corporate Name | < 250 AN (no accentuation) | Yes |
field4 | CNPJ | < 15 N | Optional |
field5 | Address (street name and number) | < 30 AN (no accentuation) | Optional |
field6 | City | < 13 AN (no accentuation) | Optional |
field7 | State | = 2 A | Optional |
field8 | Zip Code (only numbers) | < 9 N | Optional |
field9 | Phone (Optional) | > 5 and < 20 N | Optional |
field10 | e-mail (Optional) | > 5 and < 20 AN | Optional |
field11 | Website domain | < 50 AN (no accentuation) | Optional |
field12 | Status Notification URL (HTTPS) | < 500 AN (no accentuation) | Optional |
field13 | Transaction Authenticity URL (HTTPS) | < 500 AN (no accentuation) | Optional |
field14 | URL for sending HASH (HTTPS) | < 500 AN (no accentuation) | Optional |
field15 | Success URL | < 500 AN (no accentuation) | Optional |
field16 | Failure URL | < 500 AN (no accentuation) | Optional |
field17 | Cancellation URL | < 500 AN (no accentuation) | Optional |
authorizerN | Authorizer configurations (See the Authorizer Configuration Fields section. | - | Yes |
#
Authorizer Configuration Fieldsauthorizer1
, authorizer2
, ..., authorizerN
- Authorizers to be configured in the store. May be sent N authorizers. The field authorizerN
must be in the following format:
Field | Field description | Format and size |
---|---|---|
authField1 | Authorizer's code. See the Authorizer codes Examples section to verify the allowed values. | < 5 N |
authField2 | Routing's code. See the Routing Examples section to verify the allowed values. | < 5 N |
authField3 | Minimum value allowed per installment, in cents (*). | < 8 N |
authField4 | Maximum installment with interest (*). | < 2 N |
authField5 | Maximum installment without interest (*). | < 2 N |
parameter1, parameter2, parameterN | Authorizer 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.
#
ExampleField | Value |
---|---|
Merchant Code | cod_loja_comp |
Fantasy Name | Loja dos Computadores |
Corporate Name | Loja dos Computadores LTDA. |
CNPJ | 11137051003444 |
Address | R. dos Computadores, 3032 |
City | S Joao do Sul |
State | SC |
Zip Code | 07022000 |
Phone | 12341234 |
E-mail | email@email.com |
Domain | https://dominio.com.br |
Status Notification URL | https://dominio.com.br/avisoStatus.jsp |
Transaction Authenticity URL | https://dominio.com.br/autenticidade.jsp |
Storage URL | https://dominio.com.br/envioHash.jsp |
Success URL | https://dominio.com.br/sucesso.jsp |
Failure URL | http://dominio.com.br/fracasso.jsp |
Cancellation URL | https://dominio.com.br/cancelamento.jsp |
AUTHORIZERS | |
AUTHORIZER 1 | |
Authorizer | Visa [1] |
Routing | Cielo [1125] |
Minimum value of each installment | 20 reais [2000] |
Maximum installment with interest | 5 installments [5] |
Maximum installment without interest | 5 installments [5] |
Cielo affiliation code | 00000001 |
AUTHORIZER 2 | |
Authorizer | Mastercard [2] |
Routing | Rede (Redecard) [1005] |
Minimum value of each installment | 10 reals [1000] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 10 installments [10] |
Rede (Redecard) affiliation code | 00000002 |
#
Result#
Routing ParametersEach 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 SiTefRequired parameters for Cielo via SiTef routing:
Cielo affiliation code
#
Cielo via SiTef ExampleField | Value |
---|---|
Authorizer | Visa [1] |
Routing | Cielo [1125] |
Minimum value of each installment | 10 reals [1000] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 10 installments [10] |
Cielo affiliation code | 00000001 |
#
Rede (Redecard) via SiTefRequired parameters for Rede (Redecard) via SiTef routing:
Rede (Redecard) affiliation code
#
Rede (Redecard) via SiTef ExampleField | Value |
---|---|
Authorizer | Mastercard [2] |
Routing | Rede (Redecard) [1005] |
Minimum value of each installment | 10 reals [1000] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 10 installments [10] |
Rede (Redecard) affiliation code | 00000002 |
#
Stone via SiTefRequired parameters for Stone via SiTef routing:
Stone affiliation code
Stone code
(alphanumeric length 9)
#
Stone via SiTef ExampleField | Value |
---|---|
Authorizer | Visa [1] |
Routing | Stone via SiTef [1265] |
Minimum value of each installment | 2,65 reals [265] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 10 installments [10] |
Stone affiliation code | codigoFiliacaoDaLojaNaStone32Car |
Stone code | 123456789 |
#
BIN via SiTefRequired parameters for BIN via SiTef routing:
BIN affiliation code
Virtual Terminal
(alphanumeric length 8)
#
BIN via SiTef ExampleField | Value |
---|---|
Authorizer | Mastercard [2] |
Routing | BIN via SiTef [1229] |
Minimum value of each installment | 2 reals [200] |
Maximum installment with interest | 7 installments [7] |
Maximum installment without interest | 10 installments [10] |
BIN affiliation code | 12345678 |
Virtual Terminal | 1TerVir8 |
#
Safra via SiTefRequired parameters for Safra via SiTef routing:
Safra affiliation code
TEF Terminal Logic Number
(alphanumeric length 8)
#
Safra via SiTef ExampleField | Value |
---|---|
Authorizer | Mastercard [2] |
Routing | Safra via SiTef [1296] |
Minimum value of each installment | 6 reals [600] |
Maximum installment with interest | 6 installments [6] |
Maximum installment without interest | 11 installments [11] |
Safra affiliation code | 98765432 |
TEF Terminal Logic Number | NoLgTe12 |
#
Global Payments via SiTefRequired parameters for Global Payments via SiTef routing:
Global Payments affiliation code
#
Global Payments via SiTef ExampleField | Value |
---|---|
Authorizer | Mastercard [2] |
Routing | Safra via SiTef [1206] |
Minimum value of each installment | 2 reals [200] |
Maximum installment with interest | 8 installments [8] |
Maximum installment without interest | 10 installments [10] |
Global Payments affiliation code | 12345678 |
#
Getnet Lac via SiTefRequired parameters for Getnet Lac via SiTef routing:
Getnet Lac affiliation code
Logic Terminal
(alphanumeric length 8)
#
Getnet Lac via SiTef ExampleField | Value |
---|---|
Authorizer | Visa [1] |
Routing | Safra via SiTef [1181] |
Minimum value of each installment | 8 reals [800] |
Maximum installment with interest | 11 installments [11] |
Maximum installment without interest | 12 installments [12] |
Getnet Lac affiliation code | 87654321 |
Logic Terminal | TerLog18 |
#
Stone WSThis 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 ExampleField | Value |
---|---|
Authorizer | Visa [1] |
Routing | Stone WS [409] |
Minimum value of each installment | 9 reals [900] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 10 installments [10] |
salesAffiliationKey | chaveDeIdentificacaoDaLojaNaStone |
#
Cielo ECThis 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 ExampleField | Value |
---|---|
Authorizer | Visa [1] |
Routing | Cielo EC [201] |
Minimum value of each installment | 21 reals [2100] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 10 installments [10] |
merchantId | identificacaoDaLojaNaCieloEC |
merchantKey | chaveDaLojaNaCieloEC |
#
e-RedeThis 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 ExampleField | Value |
---|---|
Authorizer | Visa [1)] |
Routing | e-Rede [1200] |
Minimum value of each installment | 13 reais [1300] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 10 installments [10] |
filiacao | 123456789 |
senha | aSenhaLojaNaERedeCom32Caracteres |
#
Global Payments WSThis 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 ExampleField | Value |
---|---|
Authorizer | Mastercard [2] |
Routing | Global Payments WS [408] |
Minimum value of each installment | 8 reais [800] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 10 installments [10] |
merchantCode | 123456789012345 |
secretKey | qwertyasdf0123456789 |
terminal | 001 |
#
Getnet WSThis 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 ExampleField | Value |
---|---|
Authorizer | Mastercard [2] |
Routing | Getnet WS [407] |
Minimum value of each installment | 7 reais [700] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 12 installments [12] |
username | nomeUsuarioDeAcessoG |
password | senhaRelativaAoUsernameAcimaComQuarenta |
merchantID | 1234567890 |
terminalID | 1234567 |
#
Complete File Lines ExampleIn this section will be listed some examples of importation file lines.
#
Just One AuthorizerField | Value |
---|---|
Merchant Code | cod_loja_comp |
Fantasy Name | Loja dos Computadores |
Corporate Name | Loja dos Computadores LTDA. |
CNPJ | 11137051003444 |
Address | R. dos Computadores, 3032 |
City | S Joao do Sul |
State | SC |
Zip Code | 07022000 |
Phone | 12341234 |
E-mail | email@email.com |
Domain | https://dominio.com.br |
Status Notification URL | https://dominio.com.br/avisoStatus.jsp |
Transaction Authenticity URL | https://dominio.com.br/autenticidade.jsp |
Storage URL | https://dominio.com.br/envioHash.jsp |
Success URL | https://dominio.com.br/sucesso.jsp |
Failure URL | http://dominio.com.br/fracasso.jsp |
Cancellation URL | https://dominio.com.br/cancelamento.jsp |
AUTHORIZER | |
Authorizer | Visa [1] |
Routing | Cielo [1125] |
Minimum value of each installment | 20 reais [2000] |
Maximum installment with interest | 5 installments [5] |
Maximum installment without interest | 5 installments [5] |
Cielo affiliation code | 00000001 |
#
Two AuthorizersField | Value |
---|---|
Merchant Code | cod_loja_comp |
Fantasy Name | Loja dos Computadores |
Corporate Name | Loja dos Computadores LTDA. |
CNPJ | 11137051003444 |
Address | R. dos Computadores, 3032 |
City | S Joao do Sul |
State | SC |
Zip Code | 07022000 |
Phone | 12341234 |
E-mail | email@email.com |
Domain | https://dominio.com.br |
Status Notification URL | https://dominio.com.br/avisoStatus.jsp |
Transaction Authenticity URL | https://dominio.com.br/autenticidade.jsp |
Storage URL | https://dominio.com.br/envioHash.jsp |
Success URL | https://dominio.com.br/sucesso.jsp |
Failure URL | http://dominio.com.br/fracasso.jsp |
Cancellation URL | https://dominio.com.br/cancelamento.jsp |
AUTHORIZERS | |
AUTHORIZER 1 | |
Authorizer | Visa [1] |
Routing | Cielo [1125] |
Minimum value of each installment | 20 reais [2000] |
Maximum installment with interest | 5 installments [5] |
Maximum installment without interest | 5 installments [5] |
Cielo affiliation code | 00000001 |
AUTHORIZER 2 | |
Authorizer | Mastercard [2] |
Routing | Stone WS [409] |
Minimum value of each installment | 10 reals [1000] |
Maximum installment with interest | 10 installments [10] |
Maximum installment without interest | 10 installments [10] |
salesAffiliationKey | chaveDeIdentificacaoDaLojaNaStone |
#
Authorizer Code ExamplesList of some allowed authorizers on the importation:
Authorizer | Code |
---|---|
Visa | 1 |
Mastercard | 2 |
Amex | 3 |
Hipercard / Hiper | 5 |
Aura | 6 |
Diners | 33 |
Elo | 41 |
JCB | 43 |
Discover | 44 |
Visa Electron | 221 |
Maestro / Mastercard débito | 286 |
#
Routing ExamplesList of some allowed routings on the importation:
Routing | Code |
---|---|
Cielo | 1125 |
Rede (Redecard) | 1005 |
Stone WS | 409 |
Cielo EC | 201 |
e-Rede | 1200 |
Global Payments WS | 408 |
Getnet WS | 407 |