Quick start
This guide show the process of scheduling recurrent payments, 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/api/v1/transactions
Headers:
- Content-Type: application/json
- merchant_id: {your merchant id}
- merchant_key: {your merchant key}
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.
Activating the schedule#
HTTP method: POST
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/api/v1/schedules/<sid>
Replace the field <sid> in the URL above with the SID obtained in the transaction creation step.
Headers:
- Content-Type: application/json
- merchant_id: {your merchant id}
- merchant_key: {your merchant key}
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 schedule status#
HTTP method: GET
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/api/v1/schedules/<sid>
Replace the field <sid> in the URL above with the SID obtained in the transaction creation step.
Headers:
- Content-Type: application/json
- merchant_id: {your merchant id}
- merchant_key: {your merchant key}
Request:
To use this example, don't forget to define the variable {{url}} to the value
esitef-homologacao.softwareexpress.com.br
Response: