Quick start
This guide presents the merchant registration process, using Carat Portal's REST interface.
#
What you'll need- A merchant registered on Carat Portal with permission for consuming this API
- A tool capable of making HTTP calls, such as Postman, REST Client or cURL
- An application capable of receiving POST HTTPS calls, if the authenticity post is used
#
Authenticity POST x signatureCarat Portal has two methods of merchant authentication on the REST merchant creation, editing and query interface: authenticity POST or signature.
In the authenticity POST method, Carat Portal will send the data of the newly created recharge transaction to the registered authenticity URL of the merchant.
In the signature method, the merchant must have a public RSA encryption key registered on Carat Portal and prepare a JWT signature (JSON Web Tokens) to be sent in the Authorization
header. Learn more.
#
Creating a tokenRequest method: POST
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/api/v1/token/merchants
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
Receiving the authenticity POST:
Response:
Learn more about this service.
#
Creating the merchantRequest method: POST
URL: https://esitef-homologacao.softwareexpress.com.br/e-sitef/api/v1/merchants
Fill the <id> field in the URL above with the ID of the merchant to be created.
Headers:
- Content-Type: application/json
- merchant_id: {your merchant id}
- merchant_key: {your merchant key}
- token: {token obtained in the previous step}
- Authorization: {signature if JWT signature is used}
Request:
To use this example, don't forget to define the variable {{url}}
to the value
esitef-homologacao.softwareexpress.com.br
Response: