Quick start
This guide shows the process of performing a recharge, using Carat Portal's REST web service interface.
#
What you'll need- Active account on Carat Portal's homologation environment (obtained with our support team)
- A tool capable of performing HTTP calls, such as Postman, REST Client or cURL
#
Creating the transactionHTTP method: POST
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/v3/recharge
Headers:
- Content-Type: application/json
Request:
To use this example, don't forget to define the variable {{url}}
to the value
esitef-homologacao.softwareexpress.com.br
Receiving the authenticity POST:
Response:
Learn more about this service.
#
Listing dealersHTTP method: GET
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/v3/rechargedealers
Request:
To use this example, don't forget to define the variable {{url}}
to the value
esitef-homologacao.softwareexpress.com.br
Response:
Learn more about this service.
#
Listing branch dataHTTP method: GET
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/v3/rechargebranches
Request:
To use this example, don't forget to define the variable {{url}}
to the value
esitef-homologacao.softwareexpress.com.br
Response:
Learn more about this service.
#
Effecting the recharge#
Recharge with paymentHTTP method: PUT
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/v3/recharge/<nit>
Headers:
- Content-Type: application/json
Request:
To use this example, don't forget to define the variable {{url}}
to the value
esitef-homologacao.softwareexpress.com.br
Response:
#
Recharge without paymentRequest:
To use this example, don't forget to define the variable {{url}}
to the value
esitef-homologacao.softwareexpress.com.br
Response:
Learn more about this service.
#
Confirming the rechargeHTTP method: PUT
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/v3/recharge/<nit>
Headers:
- Content-Type: application/json
Request:
To use this example, don't forget to define the variable {{url}}
to the value
esitef-homologacao.softwareexpress.com.br
Response:
Learn more about this service.
#
Checking the recharge statusHTTP method: PUT
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/v3/recharge/<nit>
Replace the field <nit> in the URL above with the NIT obtained in the transaction creation step.
Headers:
- Content-Type: application/json
Request:
To use this example, don't forget to define the variable {{url}}
to the value
esitef-homologacao.softwareexpress.com.br
Response: