The Fabank Protected Account API is a RESTful API that allows payments with credit cards.
This guide will provide an overview of the API, how to use it, and some best practices to help you get started.
Authorization
The e.Card API uses Basic Auth, which is a market standard for authorization and authentication of users and applications. This protocol is based on simplifying client development for authorization flows for web applications, desktop applications, mobile phones, etc.
Your token should now have been emailed to you.
For tips on how to perform the tests, see our testing guide.
Returns
{
"id": "9a74be72-ac7a-4a19-813a-2fe2feb2b135",
"return": true,
"return_code": "00",
"return_message": "Success.",
"status": "done",
"message": "Transação processada.",
"nsu": "177213116",
"authorizationCode": "295081",
"dateTime": "2023-10-25 16:27:01",
"externalUserId": "7665",
"externalTransactionId": "d396b66e-1e0b-477d-a8fe-eb601dacdfbd",
"externalFee": "0.10"
}{
"id": "9a74c3d7-fc25-41ee-b40c-9f1490dad246",
"return": false,
"return_code": "86",
"return_message": "Expired card.",
"status": "not done",
"message": "Transação não autorizada."
}