API Documentation
- Introduction to the FedaPay API
- Customers
- Collect
- Payouts
- Events
- Balances
- Currencies
- Logs
- Webhooks
Logs
Get all logs
GET
/
logs
const { FedaPay, Logs } = require('fedapay');
/* Replace YOUR_SECRETE_API_KEY with your real API key */
FedaPay.setApiKey("YOUR_SECRETE_API_KEY");
/* Specify whether you want to run your query in test or live mode */
FedaPay.setEnvironment('sandbox'); //or setEnvironment('live');
/* Show logs */
const log = await Log.all( params = {}, headers = {} );
[
{
"id": 123,
"method": "<string>",
"url": "<string>",
"status": 123,
"ip_address": "<string>",
"version": "<string>",
"source": "<string>",
"query": "<string>",
"body": "<string>",
"response": "<string>",
"account_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
List of logs
The response is of type object[]
.
const { FedaPay, Logs } = require('fedapay');
/* Replace YOUR_SECRETE_API_KEY with your real API key */
FedaPay.setApiKey("YOUR_SECRETE_API_KEY");
/* Specify whether you want to run your query in test or live mode */
FedaPay.setEnvironment('sandbox'); //or setEnvironment('live');
/* Show logs */
const log = await Log.all( params = {}, headers = {} );
[
{
"id": 123,
"method": "<string>",
"url": "<string>",
"status": 123,
"ip_address": "<string>",
"version": "<string>",
"source": "<string>",
"query": "<string>",
"body": "<string>",
"response": "<string>",
"account_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
Assistant
Responses are generated using AI and may contain mistakes.