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 transaction#
HTTP 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 dealers#
HTTP 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 data#
HTTP 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 payment#
HTTP 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 payment#
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.
Confirming the recharge#
HTTP 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 status#
HTTP 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: