e-SiTef

e-SiTef

  • Portal do Desenvolvedor
  • Fale Conosco
  • English

›REST Recharge

REST Payment

  • Overview
  • Quick start
  • Transaction creation service
  • Payment effectuation service
  • Payment confirmation service
  • Transaction status query
  • Multiple transactions status query
  • Card query service
  • Payment with multiple payment methods service
  • Payment with multiple payment methods confirmation service
  • External origin payment confirmation service

REST Store

  • Overview

REST Cancel

  • Flow
  • Quick start
  • Cancel via host
  • Cancel external origin
  • Cancel creation service
  • Cancel service

REST Pre-Authorization

  • Overview
  • Quick start
  • Pre-Authorization Creation Service
  • Pre-Authorization effectuation service
  • Pre-Authorization Status Query
  • Pre-Authorization Editing Service
  • Pre-Authorization Editing External Origin Service
  • Pre-Authorization Increment Service
  • Card Query Service
  • Pre-Authorization Capture Service
  • Pre-Authorization Capture External Origin Service

REST Schedule

  • Overview
  • Quick start
  • Transaction creation service
  • Schedule activation service
  • Execution of the scheduled payments
  • Schedule editing flow
  • Quick start: schedule editing
  • Schedule editing creation service
  • Schedule editing service

REST Recharge

  • Overview
  • Quick start
  • Recharge creation service
  • List dealers service
  • List branch data service
  • Recharge effectuation service
  • Recharge confirmation service
  • Recharge query service

HTML Payment

  • Overview
  • Quick start
  • Initializing a payment transaction
  • Status notification
  • Transaction status query
  • Payment with card storage
  • Pages Customization
  • Payment link
  • Split Payment
  • Payment with multiple payment methods
  • 3DS 2.0 Integration

HTML Pre-Authorization

  • Overview

HTML Recharge

  • Overview
  • Quick start
  • Initializing a Recharge transaction

REST Generic Operations

  • Overview
  • Token creation service
  • Generic operation service

JavaScript Payment

  • Overview
  • Quick start
  • Transaction creation service
  • Virtual store's payment page
  • Transaction query service

JavaScript Store

  • Overview
  • Quick start
  • Transaction creation service
  • Virtual store's page

Merchant Web Page

  • Introduction
  • Access to web page
  • Two-Factor Authentication
  • User Configuration
  • Configure Authorizers
  • Transaction Report
  • Daily Summary Report
  • Store Report
  • Recharge Report
  • Analytical Report
  • Transaction Cancellation
  • Schedule
  • Configure Risk Analysis
  • Configure Order Authorizers
  • Users Administration
  • Generate Payment Link

Retry

  • Overview
  • Flow
  • Retry and Schedule

SiTef Routings

  • Bradescard
  • Cetelem
  • GetnetLac
  • Orbitall
  • Vero
  • Bin
  • Sipag

Non SiTef Routings

  • Banco do Brasil
  • Banrisul Vero
  • Cielo e-Commerce
  • EPX
  • e.Rede Rest
  • Fepas HUB
  • Getnet WS
  • GlobalPayments WS
  • IPG
  • Itaú Shopline
  • Mercado Pago
  • PagSeguro
  • PayPal
  • SafraPay
  • Stone WS

Digital Wallet

  • Overview
  • VEE Digital Wallet via CardSE
  • Pix via CardSE
  • Google Pay
  • Visa Checkout
  • Masterpass
  • Samsung Pay
  • Apple Pay
  • Configuration for Digital Wallets

Anti-Fraud Integration

  • Overview
  • Risk analysis service on the HTML Interface
  • Risk analysis response
  • Manual review flow
  • Fraud notification service
  • ClearSale
  • CyberSource
  • Konduto
  • Fraud Detect

General Information

  • Authorizers
  • Digital Certificates
  • API codes
  • Soft Descriptor
  • Signature authentication

Batch Registrations

  • Batch Store Registration
  • Batch Routing Configuration

REST Merchants Registration

  • Overview
  • Quick start
  • Token creation service
  • Merchant creation service
  • Merchant editing service
  • Merchant query service
  • Merchant status query service
  • List merchants service
  • API codes

3DS Server

  • Overview
  • Quick start
  • Transaction creation service
  • Authentication service
  • Transaction query service
  • Challenge messages
  • Decoupled notification
  • Initiating a 3DS Method
  • API codes

Recharge query service

This call allows the store to query the status of a recharge and its related payment (if any) on e-SiTef, at any time within the flow, after creating a recharge.

Attention:

The transaction status query on e-SiTef does NOT query the status of the transaction on the acquirer / authorizer. This service returns the transaction status on the e-SiTef database.

Example: If a payment transaction is confirmed on e-SiTef, but is reversed via telephone directly to the acquirer / authorizer, this reversal will not necessarily be reflected on the e-SiTef transaction status query service.

Call details

  • Resource: /v3/recharge/{nit}
  • HTTP Method: GET
  • Request format: query string
  • Response format: JSON
  • Header parameters:
ParameterDescriptionFormatMandatory
AuthorizationAuthenticity signature in Bearer {signature} format. Learn more.

Example: Bearer hh39458f73hf45324765ft349h5f73t4h95f34.

This field is mandatory if the transaction was created with the signature process.
< 2000 ANCOND.

Examples

Below is an example of the recharge query service call using the cURL tool.

Request:

curl
--request GET "https://esitef-homologacao.softwareexpress.com.br/e-sitef/v3/recharge/asdfghjk12345678asdfghjk12345678asdfghjk12345678asdfghjk12345678/?merchantkey=ASDFGHJK12345678ASDFGHJK12345678"
--verbose

Response:

{
   "get_status_recharge_response":{
      "status":"CON",
      "esitef":{
         "message":"OK",
         "code":"0"
      },
      "authorizers":[
         {
            "name":"sitef",
            "message":"textoExibicao",
            "code":"codigoRespSitef"
         },
         {
            "name":"nome operadora (186)",
            "message":"OK",
            "code":"196"
         }
      ],
      "acquirer":{
         "branch_code":"cod filial",
         "merchant_code":"codigoEstab"
      },
      "authorization":{
         "confirmation_data":"000033333",
         "authorizer_date":"20150514",
         "authorizer_time":"1100",
         "host_usn":"11122",
         "sitef_usn":"333",
         "number":"332234"
      },
      "customer":{
         "total_copies":3,
         "receipt":"COMPROVANTE DE RECARGA mimimim cliente whiskas sache"
      },
      "merchant":{
         "total_copies":3,
         "receipt":"COMPROVANTE DE RECARGA mimimim estabelecimento lorem ipsum"
      },
      "payment_methods":{
         "max":2,
         "available":[
            {
               "name":"dinheiro"
            },
            {
               "name":"cheque"
            }
         ]
      },
      "payment":{
         "status":"PPC",
         "amount":"12",
         "type":"C",
         "esitef":{
            "usn":"098765432109876",
            "date":"12/12/2012 12:12"
         },
         "customer":{
            "receipt":"nwiugrnboinbAPROVADOaoisuerhn"
         },
         "merchant":{
            "receipt":"nwiugrnboinbAPROVADOaoisuerhn"
         },
         "authorizer_id":"1",
         "acquirer":"CIELO",
         "authorization":{
            "number":"163457212",
            "sitef_usn":"456456",
            "host_usn":"654654",
            "tid":"7334312a2",
            "eci":"fr3u214wf71",
            "sitef_date":"12122012"
         },
         "analysis":{
            "status":"PEN",
            "code":"0",
            "message":"hahaha"
         },
         "extra_param":[
            {
               "key":"CRIPTO",
               "value":"1"
            }
         ],
         "sitef":{
            "code":"000"
         }
      }
   }
}

Request parameters

The table below describes the request parameters of the recharge query service:

ParameterDescriptionFormatMandatory
nitIdentification of the recharge transaction on e-SiTef= 64 ANYES
merchantkeyMerchant key on e-SiTef used on the recharge transaction.< 80 ANYES

Response parameters

In case of success, the HTTP response code will be 200. Any other code must be interpreted as an error. The table below describes de response parameters of the recharge query service:

ParameterDescriptionFormat
statusStatus of the recharge transaction on e-SiTef. Learn more.= 3 AN
order_idOrder code generated by the store.< 20 AN
merchant_usnUSN of the transaction generated by the store.< 12 N
send_payment_methodsFlag indicating wether payment methods should be sent on the next transaction. It will have the value true when positive.< 5 N
esitef
codee-SiTef response code. Any code different from 0(zero) means failure. Learn more.< 4 N
messagee-SiTef response message.< 500 AN
usnUSN of the recharge transaction on e-SiTef= 15 N
authorizers[]
This field adds a list of elements.
nameAuthorizer name= 3 AN
codeResponse code returned by authorizer= 3 AN
messageMessage returned by the authorizer< 500 AN
acquirer
branch_codeRecharge branch code< 5 N
merchant_codeMerchant code registered on the acquirer< 15 N
authorization
confirmation_dataConfirmation code< 128 AN
authorizer_dateAuthorization date on the authorizer in MMDD format= 4 N
authorizer_timeAuthorization time on the authorizer in HHmmSS format= 6 N
host_usnHost USN< 20 N
sitef_usnSiTef USN< 10 N
numberAuthorization number< 6 N
customer
total_copiesNumber of copies of the customer receipt< 2 N
receiptCustomer receipt< 4000 AN
merchant
total_copiesNumber of copies of the merchant receipt< 2 N
receiptMerchant receipt< 4000 AN
payment_methods
maxMaximum number of payment methods< 2 N
payment_methods.available[]
This field adds a list of available payment methods.
nameName of the available payment method. Learn more.< 200 AN
payment
This element is only returned if a payment related to a recharged was sent.
statusStatus of the payment transaction on e-SiTef. Learn more.= 3 AN
amountAmount of the payment, the same sent on the creation of the payment transaction.< 12 AN
typePayment type of the chosen authorizer:
  • B = boleto
  • C = credit
  • D = debit
  • P = credit card Private Label
  • T = bank transfer
  • G = gift card
  • O = other payment methods
= 1A
authorizer_idAuthorizer ID on e-SiTef< 5 N
acquirerPayment type< 50 AN
payment.esitef
usne-SiTef USN< 15 AN
datePayment date on e-SiTef in DD/MM/YYYY hh:mm format.< 19A
payment.sitef
codeResponse code returned by SiTef= 3 AN
payment.customer
receiptPayment customer receipt< 4000 AN
payment.merchant
receiptPayment merchant receipt< 4000 AN
payment.authorization
numberPayment authorization number< 6 AN
sitef_usnSiTef USN< 15 AN
host_usnAuthorizer USN< 15 AN
tidID of the transaction on the authorizer, returned by some payment types.< 40 AN
eciEletronic commerce indicator returned by some payment types.< 3 AN
sitef_datePayment date on SiTef in DD/MM/YYYY hh:mm format.< 19 AN
payment.analysis
statusStatus of the transaction on the analysis institution.= 3 AN
codeResponse code of the risk analysis.< 4 AN
messageResponse message of the risk analysis.< 100 AN
payment.extra_param[]
keyExtra parameter keyN/A
valueExtra parameter valueN/A
hashes
Hashes to indicate changes on recharge tables
generalGeneral hash. Indicates wether some of the specific hashes has been changed.= 16 AN
walletSpecific hash. If the recharge tables change, so does the returned hash, which has the following format:
<Network>:<Hash>:<Service 1>,<Service 2>, <Service N> Where:
  • Network = Recharge network code
  • Hash = Recharge network table hash.
  • Service n = Network service type, which can be:
    • F1-1 = National Phone Recharge
    • F1-3 = Other Products Recharge
  • Separators are two semicolons.

Example: 106:0D0C4FCB0D0C4FCB:F1-1,F1-3
< 100 AN

Querying transactions from a group of merchants

e-SiTef requires that the credentials (merchantkey) are the same used on the transaction to be queried. However, if the merchant needs, e-SiTef can allow queries with credentials from other merchants from the same group. For that, just request our support and production teams to make this configuration.

← Recharge confirmation serviceOverview →
  • Call details
  • Examples
  • Request parameters
  • Response parameters
  • Querying transactions from a group of merchants
e-SiTef
Relacionamento com o cliente
+55 (11) 3170-5300+55 (11) 4766-8000comercial@softwareexpress.com.br
Acessos
Portal do DesenvolvedorPortal e-SiTefVersão para impressão
Copyright © 2021 Software Express Informática Ltda - Todos os direitos reservados