Quick start
This guide shows the process of executing a pre-authorization, using Carat Portal's REST web service interface.
Requirements#
- 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 Pre-Authorization#
HTTP method: POST
URL: https://sandbox.ecomm-bin.fiserv.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, remember to set the variable {{url}} to the value
sandbox.ecomm-bin.fiserv.com.br
To use this example, don't forget to define the variable {{url}} to the value
sandbox.ecomm-bin.fiserv.com.br
Response:
Learn more about this service.
Pre-Authorization#
HTTP Method: POST
URL: https://sandbox.ecomm-bin.fiserv.com.br/e-sitef/api/v1/preauthorizations/<nit>
Headers:
- Content-Type: application/json
- merchant_id: {your merchant id}
- merchant_key: {your merchant key}
Request:
To use this example, remember to set the variable {{url}} to the value
sandbox.ecomm-bin.fiserv.com.br
Response:
Learn more about this service.
Capturing the pre-authorization#
HTTP Method: POST
URL: https://sandbox.ecomm-bin.fiserv.com.br/e-sitef/api/v1/preauthorizations/capture/<nit>
Headers:
- Content-Type: application/json
- merchant_id: {your merchant id}
- merchant_key: {your merchant key}
Request:
To use this example, remember to set the variable {{url}} to the value
sandbox.ecomm-bin.fiserv.com.br
Response:
Learn more about this service.
Card Query#
HTTP method: POST
URL: https://sandbox.ecomm-bin.fiserv.com.br/e-sitef/api/v1/preauthorizations/<nit>/cards
Headers:
- Content-Type: application/json
- merchant_id: {your merchant id}
- merchant_key: {your merchant key}
Request:
To use this example, remember to set the variable {{url}} to the value
sandbox.ecomm-bin.fiserv.com.br
Response:
Learn more about this service.
Transaction Query#
HTTP method: GET
URL: https://sandbox.ecomm-bin.fiserv.com.br/e-sitef/api/v1/transaction/<nit>
Headers:
- Content-Type: application/json
- merchant_id: {your merchant id}
- merchant_key: {your merchant key}
Request:
To use this example, remember to set the variable {{url}} to the value
sandbox.ecomm-bin.fiserv.com.br
Response: