ClearSale

Required credentials#

As mentioned in "Overview - Required credentials", each institution has credentials that must be obtained for the integration. ClearSale's services demand credentials below:

  • Login (Merchant ID) - Login of the ClearSale merchant registration.
  • Password (Merchant Code) - Password of the store registration at ClearSale.

IMPORTANT: The credentials above should be obtained from ClearSale. It is recommended to contact ClearSale and receive guidance on how to obtain the credentials. Then, the merchant should contact Carat Portal support and send the credentials to register in Carat Portal.

Webhook URL Configuration#

In order for us to receive status updates from the risk analysis transactions, it is necessary to configure the webhook URL on the Konduto configuration environment.

Production URL:

https://esitef-ec.softwareexpress.com.br/e-sitef/processarPost.se?src=clearsale_rest

URL de Homologação:

https://esitef-homologacao.softwareexpress.com.br/e-sitef/processarPost.se?src=clearsale_rest

This URL must be configured for any status changes. To perform this configuration, please contact ClearSale Support.

Starting a transaction with Anti-Fraud#

After performing the registration alignment with Carat Portal support to enable integration with the anti-fraud service, at the start of a transaction REST Payment (Learn more) or REST Pre Authorization (Learn more) the merchant must configure the property anti_fraud and send the appropriate anti-fraud parameters (depends on the institution that your merchant was set up), both properties must be within the scope of the additional_data object.

The anti_fraud field determines how anti-fraud is applied and can contain the following values:

  • enabled_before_auth - Risk analysis will be performed BEFORE authorization of the payment. If the analysis is rejected, payment will not be started. In the case of pre-authorization with non-SiTef routings, if the risk analysis remains as a manual analysis, Carat leaves the transaction in the PPC (Payment Pending Confirmation) state and waits for a conclusion of the manual analysis.
  • enabled_after_auth - Risk analysis will be performed AFTER authorization of the payment. If the analysis is rejected, the payment that has already been authorized will be canceled. In the case of pre-authorization with non-SiTef routings, Carat leaves the transaction in the PPC (Payment Pending Confirmation) state and waits for a conclusion of the manual analysis.

NOTE: Transactions that are pending payment can be confirmed or undone by time limit. Learn more.

Realtime ClearSale Configuration#

After performing the registration adjustment with the carat support team to enable the integration with the clearSale service, the store must initiate a REST or HTML payment transaction by sending the "anti_fraud" property and sending the parameters additional data collected for risk analysis of the transaction being sent in the additional_data object.

ClearSale service versions supported by payment interface:#

ClearSale - Total

ClearSale - RealTime

ClearSale REST Anti-Fraud Parameters#

Below is a list of anti-fraud parameters processed by ClearSale.

Attention: The fields below are specific to the ClearSale integration and their mandatory criteria and format refer to the validations made by the fraud analysis institution. It is important that these criteria are respected for an effective and accurate analysis.

Additional transaction data Buyer related information Information relating to the buyer's browser Purchase related information Information about linked social networks Billing information Information regarding billing phones (fields marked with YES are only mandatory if the phones object is created) Information regarding billing identification documents Information regarding delivery phones (fields marked with YES are only mandatory if the phones object is created) Information regarding identification documents for delivery Information regarding purchased items Information regarding the payment address (fields marked with YES are only mandatory if the receiver_address object is created) Passenger information (fields marked with YES are only required if the passenger_data object is created) Information regarding air connections (fields marked with YES are only mandatory if the flight_connection object is created) Information regarding hotel reservations
ParameterDescriptionMandatoryFormat
additional_data
b2b_b2cEcommerce type.NO3 A
item_amountTotal Value of Items in centsYES<1024 N
total_order_amountTotal Order Amount in cents. Composed of the Total Value of the Items + Shipping Value + Possible Interest Value of the PurchaseYES<1024 N
giftIdentifies if the order is a gift:
1 - is a gift
0 - is not a gift
If absent, the value 0 is assumed.
NO1 N
gift_messageGift MessageNO<1024 AN
obsOrder ObservationNO<1024 AN
sla_customMaximum Order Review SLA Minutes Value, if anyNO4 N
originOrder Origin Channel (ex: TELE SALES, WEBSITE, APP, etc.)YES<150 A
channel_idComplementary Source Channel, if any. (ex: ANDROID, IOS, etc.)NO<1024 AN
reservation_dateDate of First Flight of the Request (in case of airline tickets).NOyyyy-mm-ddThh:mm:ss
nationalityNationalityNO<50 AN
productClearSale product identifier:
-1 (Others)
1 (Application)
3 (Total)
4 (Total Garantido)
9 (Score)
10 (Realtime Decision)
11 (Tickets)
NO2N
bank_authenticationBank authentication typeNO<1024 AN
sub_acquirerSub-acquirer nameNO<1024 AN
list_type_idList Type:
1 - Unregistered List
2 - Baby Shower List
3 - Wedding List
4 - Wish List
5 - Birthday List
6 - Bridal Shower
NO1N
list_idList ID in StoreNO<200 AN
additional_data
.payer
emailBuyer's emailYES<1024 AN
nameBuyer nameYES<150 A
legal_documentBuyer's document numberYES<100 A
additional_data
.browser
ip_addressOrder IPNO<1024 AN
additional_data
.purchase_information_data
last_date_change_inserted_mailDate of last email changeNOyyyy-mm-ddThh:mm:ss
last_date_change_passwordDate of last password changeNOyyyy-mm-ddThh:mm:ss
last_date_change_phoneDate of last phone changeNOyyyy-mm-ddThh:mm:ss
last_date_change_mobile_phoneMobile phone last change dateNOyyyy-mm-ddThh:mm:ss
last_date_inserted_addressDate of last address changeNOyyyy-mm-ddThh:mm:ss
purchase_loggedFlag that indicates purchase with logged in user:
1 for YES
0 for NO
If absent or invalid, value 0 is assumed
NO1N
emailRegistration EmailNO<1024 AN
loginAccess LoginNO<1024 AN
additional_data
.social_network
social_network.opt_in_buy_and_trustFlag indicating if the customer accepts to join the Buy and Trust movement:
1 for YES
0 for NO
If absent or invalid, value 0 is assumed
NO1N
social_network.type_social_networkLinked Social Network Identifier:
1 - Facebook
2 - Twitter
3 - Linkedin
4 - Google
5 - Others
NO1N
social_network.authentication_tokenToken returned by the Social NetworkNO<1024 AN
additional_data
.billing_data
client_idCustomer codeNO<1024 AN
personType of Person:
1 - Individual
2 - Legal Entity
YES1N
cnpj_cpfCPF or CNPJ. If absent, ClearSale uses the value informed in the additional_data.billing_data.documents[] list using the keys CPF or CNPJ, whichever comes first.COND<1024 AN
identification_numberRG or State Registration. If absent, ClearSale uses the first value informed in the additional_data.billing_data.documents[] list using the RG key.COND<1024 AN
nameClient nameYES<1024 A
birth_dateBirth dateNOyyyy-mm-ddThh:mm:ss
emailE-mailNO<1024 AN
genderBuyer's Gender:
M - Male
F - Female
NO1A
billing_data
.address
street_nameStreet nameYES<1024 AN
street_numberAddress NumberYES<1024 AN
complementAddress complementNO<1024 AN
countyAddress countyYES<1024 AN
cityAddress CityYES<1024 AN
stateAddress State AbbreviationYES2 A
countryAddress CountryNO<1024 AN
zip_codeAddress zip codeYES<1024 AN
referenceAddress ReferenceNO<1024 AN
billing_data
.phones[]
typePhone type:
0 - Not defined
1 - Residential
2 - Commercial
3 - Messages
4 - Billing
5 - Temporary
6 - Mobile
YES1N
ddiTelephone DDINO3 N
dddTelephone DDDYES2 N
numberTelephone numberYES9 N
extensionTelephone extensionNO10 N
billing_data
.documents[]
typeDocument Type:
CPF
CNPJ
NO<1024 AN
numberDocument numberNO<1024 AN
additional_data
.shipment
client_idcustomer codeNO<1024 AN
personType of Person:
1 - Individual
2 - Legal Entity
YES1N
cnpj_cpfCPF or CNPJ. If absent, ClearSale uses the value informed in the additional_data.shipment.documents[] list using the keys CPF or CNPJ, whichever comes first.COND<1024 AN
identification_numberRG or State Registration. If absent, ClearSale uses the first value informed in the additional_data.shipment.documents[] list using the RG key.COND<1024 AN
nameRecipient's nameYES<1024 AN
birth_dateRecipient's date of birthNOyyyy-mm-ddThh:mm:ss
emailRecipient's EmailNO<1024 AN
genderRecipient's Gender:
M - Male
F - Female
NO1A
delivery_typeDelivery type:
0 - Other
1 - Normal
2 - Guaranteed
3 - ExpressBR
4 - ExpressSP
5 - High
6 - Economic
7 - Scheduled
8 - Extra Fast
9 - Printed
10 - Application
11 - Mail
12 - Motoboy
13 - Ticket office withdrawal
14 - Partner Store withdrawal
15 - Ticket Credit Card
16 - Store Pickup
17 - Withdrawal via Lockers (Partners)
18 - Post Office Pickup
19 - Guaranteed delivery on the same day of purchase
20 - Guaranteed delivery on the next day of purchase
21 - Pickup in store - Express
YES< 2N
delivery_timeDeadlineNO<1024 AN
costShipping cost in centsNO<1024 N
pickup_store_documentCPF for pick up in store (if the order is for some type of delivery "Withdrawal")NO<1024 N
shipment
.address
street_nameStreet nameYES<1024 AN
street_numberAddress NumberYES<1024 AN
complementAddress complementNO<1024 A
countyAddress countyYES<1024 AN
cityAddress CityYES<1024 AN
stateAddress State AbbreviationYES2 A
countryAddress CountryNO<1024 AN
zip_codeAddress zip codeYES<1024 AN
referenceAddress ReferenceNO<1024 AN
shipment
.phones[]
typePhone type:
0 - Not defined
1 - Residential
2 - Commercial
3 - Messages
4 - Billing
5 - Temporary
6 - Mobile
YES1N
ddiTelephone DDINO3 N
dddTelephone DDDYES2 N
numberTelephone numberYES9N
extensionTelephone extensionNO10 N
billing_data
.documents[]
typeDocument Type:
CPF
CNPJ
NO<1024 AN
numberDocument numberNO<1024 AN
additional_data
.items[]
idProduct codeNO<1024 AN
titleProduct's nameYES<1024 AN
eanEAN (Barcode) of the productNO<1024 AN
unit_priceUnit Value in centsNO<1024 N
quantityQuantityNO<1024 N
category_idProduct Category CodeNO<1024 N
category_nameProduct Category NameNO<1024 AN
giftIdentifies if the order is a gift:
1 - it is a gift
0 - not a gift
If absent, the 0 value is assumed
NO1N
sellerNameSeller's/partner's trade nameNO<1024 AN
sellerDocumentSeller/partner CNPJNO<1024 AN
marketPlaceFlag indicating whether the establishment is a market place:
true or false
NO<5 A
sellerSegmentSeller/Partner Segment.NO<1024 AN
shippingCompanyCarrier nameNO<1024 AN
sequentialSequence of making the paymentNO<1024 N
voucher_order_originOrder ID that generated the exchange voucher (if the current payment method is Vale)NO<1024 AN
payer
.receiver_address
street_nameStreet nameYES<1024 AN
street_numberAddress NumberYES<1024 AN
complementAddress complementNO<1024 A
countyAddress countyYES<1024 AN
cityAddress CityYES<1024 AN
stateAddress State AbbreviationYES2 A
countryAddress CountryNO<1024 AN
zip_codeAddress zip codeYES<1024 AN
referenceAddress ReferenceNO<1024 AN
additional_data
.passenger_data[]
namePassenger nameYES<1024 AN
company_mileMileage Company (Loyalty)NO<1024 AN
frequente_flyer_cardMileage Card (Loyalty)NO<1024 AN
legal_document_typeType of identification document:
1 - CPF
2 - CNPJ
3 - RG
4 - IE
5 - Passport
6 - CTPS
7 - Voter Title
NO1N
legal_documentDocument numberNO<1024 N
birth_dateDate of birthNOyyyy-mm-ddThh:mm:ss
genderPassenger's Gender:
M - Male
F - Female
NO1A
additional_data
.flight_connection[]
companyAirline nameNO<1024 AN
flight_numberFlight numberNO<1024 AN
flight_dateFlight dateYESyyyy-mm-ddThh:mm:ss
classSeat ClassNO<1024 AN
fromOriginNO<1024 AN
toDestinyNO<1024 AN
departure_dateBoarding DateYESyyyy-mm-ddThh:mm:ss
arrival_dateLanding dateYESyyyy-mm-ddThh:mm:ss
class_codeTariff ClassNO<1024 AN
additional_data
.reservation_hotel[]
hotelHotel nameNO<1024 AN
cityCityNO<1024 AN
stateStateNO<1024 AN
countryCountryNO<1024 AN
reservation_dateBooking DateNOyyyy-mm-ddThh:mm:ss
reservation_expiration_dateReservation Expiration DateNOyyyy-mm-ddThh:mm:ss
checkin_dateDate of arrivalNOyyyy-mm-ddThh:mm:ss
checkout_dateDeparture DateNOyyyy-mm-ddThh:mm:ss

Example#

The following is an example of a request with the minimum parameters to start a payment transaction with risk analysis. Learn more about payment parameters.

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

curl
--request POST "https://{{url}}/e-sitef/api/v1/transactions"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--data-binary
{
"merchant_usn":"27112936137",
"order_id":"27112936137",
"installments":"1",
"installment_type":"4",
"authorizer_id":"2",
"amount":"1000",
"additional_data":{
"payer":{
"email":"payer@email.com",
"name" : "Payer Name",
"legal_document" : "7777777777"
},
"shipment":{
"type":"1",
"name":"ShipmentName",
"person":"1",
"address":{
"zip_code":"1111111",
"street_number":"111",
"street_name":"Billing StreetName",
"city":"Billing City",
"state":"Billing State",
"county":"Billing County"
}
},
"anti_fraud":"enabled_before_auth",
"billing_data":{
"person":"1",
"name":"BillingName",
"address":{
"zip_code":"1111111",
"street_number":"111",
"street_name":"Billing StreetName",
"city":"Billing City",
"state":"Billing State",
"county":"Billing County"
}
},
"item_amount":"10",
"origin":"origin",
"total_order_amount":"10"
}
}
--verbose

Response:

{
"code": "0",
"message": "OK. Transaction successful.",
"payment": {
"status": "NOV",
"nit": "50f36d5b28510b0fb2b83951b533c5a9f9306b9ef54fc0a9220a5ce3c7845d17",
"order_id": "27112936137",
"merchant_usn": "27112936137",
"amount": "1000"
}
}

Example of a request with all parameters to begin a risk analysis payment transaction#

Request:

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

curl
--request POST "https://{{url}}/e-sitef/api/v1/transactions"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--data-binary
{
"merchant_usn":"8032934075",
"order_id":"08032934333",
"installments":"1",
"installment_type":"4",
"authorizer_id":"2",
"amount":"1000",
"additional_data":{
"items":[
{
"title":"title1",
"quantity":"1",
"unit_price":"1",
"category_id":"categoryId1",
"id":"id1",
"gift":"true",
"category_name":"categoryName1",
"ean":"ean1",
"seller_name":"sellerName1",
"seller_document":"sellerDocument1",
"market_place":"true",
"seller_segment":"sellerSegment1",
"shipping_company":"shippingCompany1"
},
{
"title":"title2",
"quantity":"2",
"unit_price":"2",
"category_id":"categoryId2",
"id":"id2",
"gift":"false",
"category_name":"categoryName2",
"ean":"ean2",
"seller_name":"sellerName2",
"seller_document":"sellerDocument2",
"market_place":"false",
"seller_segment":"sellerSegment2",
"shipping_company":"shippingCompany2"
}
],
"payer":{
"name":"Payer Name",
"email":"payer@email.com",
"city":"Payer City",
"state":"SP",
"legal_document":"7777777777",
"address_street_name":"Payer Street",
"address_street_number":"444",
"address_zip_code":"6666666",
"address_street_complement":"Payer Complement",
"address_country":"Payer Country",
"address_reference":"Payer Reference",
"address_county":"Payer County",
"neighborhood":"Payer County"
},
"shipment":{
"type":"1",
"cost":"5",
"id":"ShipmentClientId",
"name":"ShipmentName",
"person":"1",
"birth_date":"1990-01-10T00:00:00.000",
"email":"Shipment@Email",
"gender":"M",
"address":{
"zip_code":"2222222",
"street_number":"111",
"street_name":"Shipping StreetName",
"complement":"Shipping Complement",
"city":"Shipping City",
"state":"Shipping State",
"country":"Brasil",
"county":"Shipping County",
"reference":"Shipping Reference"
},
"legal_document1":"0987654321",
"legal_document2":"87654321",
"delivery_type":"1",
"delivery_deadline":"2 dias uteis",
"pickup_store_document":"12345678910"
},
"item_amount":"10",
"anti_fraud":"enabled_before_auth",
"passengers":[
{
"name":"Name1",
"frequent_flyer_card":"frequentFlyerCard1",
"legal_document_type":"1",
"legal_document":"111111111",
"birth_date":"2000-01-01T00:00:00",
"company_mile":"companyMile1",
"gender":"M"
},
{
"name":"Name2",
"frequent_flyer_card":"frequentFlyerCard2",
"legal_document_type":"0",
"legal_document":"22222222",
"birth_date":"2000-01-02T00:00:00",
"company_mile":"companyMile2",
"gender":"M"
}
],
"connections":[
{
"company":"company1",
"flight_number":"666",
"flight_date":"2000-01-03T00:00:00",
"class":"ECONOMY",
"from":"BRA",
"to":"ARG",
"departure_date":"2000-01-04T00:00:00",
"arrival_date":"2000-01-05T00:00:00",
"class_code":"classCode1"
},
{
"company":"company2",
"flight_number":"333",
"flight_date":"2000-01-06T00:00:00",
"class":"ECONOMY",
"from":"BRA",
"to":"ENG",
"departure_date":"2000-01-07T00:00:00",
"arrival_date":"2000-01-08T00:00:00",
"class_code":"classCode2"
}
],
"hotel_reservations":[
{
"hotel":"hotel1",
"city":"city1",
"state":"state1",
"country":"country1",
"reservation_date":"2000-01-09T00:00:00.000",
"reservation_expiration_date":"2000-01-10T00:00:00.000",
"checkin_date":"2000-01-11T00:00:00.000",
"checkout_date":"2000-01-12T00:00:00.000"
}
],
"purchase_information_data":{
"last_date_inserted_mail":"2020-01-01T01:01:01",
"last_date_change_password":"2020-01-02T02:02:02",
"last_date_change_phone":"2020-01-03T03:03:03",
"last_date_change_mobile_phone":"2020-01-04T04:04:04",
"last_date_inserted_address":"2020-01-05T05:05:05",
"purchase_logged":"false",
"email":"purchaseInformation@email",
"login":"purchaseInformationLogin"
},
"billing_data":{
"client_id":"BillingClientId",
"person":"1",
"gender":"M",
"name":"BillingName",
"birth_date":"1990-01-10T00:00:00.000",
"email":"Billing@Email",
"address":{
"zip_code":"1111111",
"street_number":"111",
"street_name":"Billing StreetName",
"complement":"Billing Complement",
"city":"Billing City",
"state":"Billing State",
"country":"Brasil",
"county":"Billing County",
"reference":"Billing Reference"
},
"phones":[
{
"number":"199999999",
"ddd":"11",
"ddi":"55",
"extension":"1888",
"type":"1"
},
{
"number":"299999999",
"ddd":"11",
"ddi":"55",
"extension":"2888",
"type":"2"
}
],
"cnpj_cpf":"12345678911",
"identification_number":"12345678"
},
"b2b_b2c":"b2b",
"sla_custom":"1",
"gift":"true",
"gift_message":"giftMessage",
"obs":"obs",
"origin":"origin",
"nationality":"nationality",
"product":"4",
"list_type_id":"1",
"list_id":"listId",
"sequential":"33",
"interest_value":"2",
"interest":"10",
"total_order_amount":"10",
"browser":{
"ip_address":"1111.222.333.444"
},
"bank_authentication":"bankAuthentication",
"sub_acquirer":"subAcquirer",
"social_network":{
"opt_in_buy_and_trust":"1",
"type_social_network":"1",
"authentication_token":"authenticationToken"
},
"voucher_order_origin":"voucherOrderOrigin",
"channel_id":"channelId"
}
}
--verbose

Response:

{
"code": "0",
"message": "OK. Transaction successful.",
"payment": {
"status": "NOV",
"nit": "0cbaaa37480ebb0f6480a944f99af1b4976a3a91db270f2dd20c15ac01dbaea4",
"order_id": "08032934333",
"merchant_usn": "8032934075",
"amount": "1000"
}
}

Example of a request with the minimum parameters to begin a Pre-Authorization transaction with risk analysis.#

Request:

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

curl
--request POST "https://{{url}}/e-sitef/api/v1/transactions"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--data-binary
{
"merchant_usn":"27112936137",
"order_id":"27112936137",
"installments":"1",
"transaction_type":"preauthorization",
"installment_type":"4",
"authorizer_id":"2",
"amount":"1000",
"additional_data":{
"payer":{
"email":"payer@email.com",
"name" : "Payer Name",
"legal_document" : "7777777777"
},
"shipment":{
"type":"1",
"name":"ShipmentName",
"person":"1",
"address":{
"zip_code":"1111111",
"street_number":"111",
"street_name":"Billing StreetName",
"city":"Billing City",
"state":"Billing State",
"county":"Billing County"
}
},
"anti_fraud":"enabled_before_auth",
"billing_data":{
"person":"1",
"name":"BillingName",
"address":{
"zip_code":"1111111",
"street_number":"111",
"street_name":"Billing StreetName",
"city":"Billing City",
"state":"Billing State",
"county":"Billing County"
}
},
"item_amount":"10",
"origin":"origin",
"total_order_amount":"10"
}
}
--verbose

Response:

{
"code": "0",
"message": "OK. Transaction successful.",
"pre_authorization": {
"status": "NOV",
"nit": "25b0bfc9ef3d38f1ca09fbcf6d6cb6957b78a04c731da707884dbaf85185f380",
"order_id": "27112936137",
"merchant_usn": "27112936137",
"amount": "1000"
}
}

Example of a request with the other parameters to start a Pre-Authorization transaction with risk analysis.#

Request:

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

curl
--request POST "https://{{url}}/e-sitef/api/v1/transactions"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--data-binary
{
"merchant_usn":"8032934075",
"order_id":"08032934333",
"installments":"1",
"installment_type":"4",
"transaction_type":"preauthorization",
"authorizer_id":"2",
"amount":"1000",
"additional_data":{
"items":[
{
"title":"title1",
"quantity":"1",
"unit_price":"1",
"category_id":"categoryId1",
"id":"id1",
"gift":"true",
"category_name":"categoryName1",
"ean":"ean1",
"seller_name":"sellerName1",
"seller_document":"sellerDocument1",
"market_place":"true",
"seller_segment":"sellerSegment1",
"shipping_company":"shippingCompany1"
},
{
"title":"title2",
"quantity":"2",
"unit_price":"2",
"category_id":"categoryId2",
"id":"id2",
"gift":"false",
"category_name":"categoryName2",
"ean":"ean2",
"seller_name":"sellerName2",
"seller_document":"sellerDocument2",
"market_place":"false",
"seller_segment":"sellerSegment2",
"shipping_company":"shippingCompany2"
}
],
"payer":{
"name":"Payer Name",
"email":"payer@email.com",
"city":"Payer City",
"state":"SP",
"legal_document":"7777777777",
"address_street_name":"Payer Street",
"address_street_number":"444",
"address_zip_code":"6666666",
"address_street_complement":"Payer Complement",
"address_country":"Payer Country",
"address_reference":"Payer Reference",
"address_county":"Payer County",
"neighborhood":"Payer County"
},
"shipment":{
"type":"1",
"cost":"5",
"id":"ShipmentClientId",
"name":"ShipmentName",
"person":"1",
"birth_date":"1990-01-10T00:00:00.000",
"email":"Shipment@Email",
"gender":"M",
"address":{
"zip_code":"2222222",
"street_number":"111",
"street_name":"Shipping StreetName",
"complement":"Shipping Complement",
"city":"Shipping City",
"state":"Shipping State",
"country":"Brasil",
"county":"Shipping County",
"reference":"Shipping Reference"
},
"legal_document1":"0987654321",
"legal_document2":"87654321",
"delivery_type":"1",
"delivery_deadline":"2 dias uteis",
"pickup_store_document":"12345678910"
},
"item_amount":"10",
"anti_fraud":"enabled_before_auth",
"passengers":[
{
"name":"Name1",
"frequent_flyer_card":"frequentFlyerCard1",
"legal_document_type":"1",
"legal_document":"111111111",
"birth_date":"2000-01-01T00:00:00",
"company_mile":"companyMile1",
"gender":"M"
},
{
"name":"Name2",
"frequent_flyer_card":"frequentFlyerCard2",
"legal_document_type":"0",
"legal_document":"22222222",
"birth_date":"2000-01-02T00:00:00",
"company_mile":"companyMile2",
"gender":"M"
}
],
"connections":[
{
"company":"company1",
"flight_number":"666",
"flight_date":"2000-01-03T00:00:00",
"class":"ECONOMY",
"from":"BRA",
"to":"ARG",
"departure_date":"2000-01-04T00:00:00",
"arrival_date":"2000-01-05T00:00:00",
"class_code":"classCode1"
},
{
"company":"company2",
"flight_number":"333",
"flight_date":"2000-01-06T00:00:00",
"class":"ECONOMY",
"from":"BRA",
"to":"ENG",
"departure_date":"2000-01-07T00:00:00",
"arrival_date":"2000-01-08T00:00:00",
"class_code":"classCode2"
}
],
"hotel_reservations":[
{
"hotel":"hotel1",
"city":"city1",
"state":"state1",
"country":"country1",
"reservation_date":"2000-01-09T00:00:00.000",
"reservation_expiration_date":"2000-01-10T00:00:00.000",
"checkin_date":"2000-01-11T00:00:00.000",
"checkout_date":"2000-01-12T00:00:00.000"
}
],
"purchase_information_data":{
"last_date_inserted_mail":"2020-01-01T01:01:01",
"last_date_change_password":"2020-01-02T02:02:02",
"last_date_change_phone":"2020-01-03T03:03:03",
"last_date_change_mobile_phone":"2020-01-04T04:04:04",
"last_date_inserted_address":"2020-01-05T05:05:05",
"purchase_logged":"false",
"email":"purchaseInformation@email",
"login":"purchaseInformationLogin"
},
"billing_data":{
"client_id":"BillingClientId",
"person":"1",
"gender":"M",
"name":"BillingName",
"birth_date":"1990-01-10T00:00:00.000",
"email":"Billing@Email",
"address":{
"zip_code":"1111111",
"street_number":"111",
"street_name":"Billing StreetName",
"complement":"Billing Complement",
"city":"Billing City",
"state":"Billing State",
"country":"Brasil",
"county":"Billing County",
"reference":"Billing Reference"
},
"phones":[
{
"number":"199999999",
"ddd":"11",
"ddi":"55",
"extension":"1888",
"type":"1"
},
{
"number":"299999999",
"ddd":"11",
"ddi":"55",
"extension":"2888",
"type":"2"
}
],
"cnpj_cpf":"12345678911",
"identification_number":"12345678"
},
"b2b_b2c":"b2b",
"sla_custom":"1",
"gift":"true",
"gift_message":"giftMessage",
"obs":"obs",
"origin":"origin",
"nationality":"nationality",
"product":"4",
"list_type_id":"1",
"list_id":"listId",
"sequential":"33",
"interest_value":"2",
"interest":"10",
"total_order_amount":"10",
"browser":{
"ip_address":"1111.222.333.444"
},
"bank_authentication":"bankAuthentication",
"sub_acquirer":"subAcquirer",
"social_network":{
"opt_in_buy_and_trust":"1",
"type_social_network":"1",
"authentication_token":"authenticationToken"
},
"voucher_order_origin":"voucherOrderOrigin",
"channel_id":"channelId"
}
}
--verbose

Response:

{
"code": "0",
"message": "OK. Transaction successful.",
"pre_authorization": {
"status": "NOV",
"nit": "73fbbb226b2e66a4a731cda5459fdca45bc371da4f76d91d53cd48035e12a102",
"order_id": "08032934333",
"merchant_usn": "8032934075",
"amount": "1000"
}
}

Example of request with the other parameters, to start a payment transaction rest with Realtime#

Request:

curl --location --request POST 'https://192.168.48.135/e-sitef/api/v1/transactions' \
--header 'Content-Type: application/json' \
--header 'merchant_id: CLEARSALERESTRT' \
--header 'merchant_key: D43B1ECD36CA0893AC6163A1913AFA084290530B861C84C672A21794CDC190C0' \
--data-raw '{
"merchant_usn": "27112936137",
"order_id": "1654629291772",
"installments": "1",
"installment_type": "4",
"authorizer_id": "2",
"amount": "3400",
"additional_data": {
"payer": {
"email": "payer@email.com",
"name": "Payer Name",
"legal_document": "7777771777"
},
"shipment": {
"type": "1",
"name": "ShipmentName",
"person": "1",
"address": {
"zip_code": "1111111",
"street_number": "111",
"street_name": "Billing StreetName",
"city": "Billing City",
"state": "Billing State",
"county": "Billing County"
}
},
"anti_fraud": "enabled_after_auth",
"billing_data": {
"person": "1",
"name": "BillingName",
"cnpj_cpf": "12345678901",
"identification_number": "12345678999",
"address": {
"zip_code": "1111111",
"street_number": "111",
"street_name": "Billing StreetName",
"city": "Billing City",
"state": "Billing State",
"county": "Billing County"
}
},
"item_amount": "11",
"origin": "origin",
"total_order_amount": "11"
}
}'

Response:

{
"code": "0",
"message": "OK. Transaction successful.",
"payment": {
"status": "NOV",
"nit": "602d8e43b33427ac2c7f3a0f136a8f763d934d395c2727d3e292a94990179f17",
"order_id": "1654629291772",
"merchant_usn": "27112936137",
"amount": "3400"
}
}