Skip to content

Latest commit

 

History

History
116 lines (78 loc) · 3.72 KB

LogsApi.md

File metadata and controls

116 lines (78 loc) · 3.72 KB

LogsApi

All URIs are relative to https://api.conekta.io

Method HTTP request Description
getLogById GET /logs/{id} Get Log
getLogs GET /logs Get List Of Logs

getLogById

LogResponse getLogById(id, acceptLanguage, xChildCompanyId)

Get Log

Get the details of a specific log

Example

// Import classes:
//import io.conekta.LogsApi;

LogsApi apiInstance = new LogsApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
    LogResponse result = apiInstance.getLogById(id, acceptLanguage, xChildCompanyId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LogsApi#getLogById");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String Identifier of the resource [default to null]
acceptLanguage String Use for knowing which language to use [optional] [default to es] [enum: es, en]
xChildCompanyId String In the case of a holding company, the company id of the child company to which will process the request. [optional] [default to null]

Return type

LogResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.conekta-v2.1.0+json

getLogs

LogsResponse getLogs(acceptLanguage, xChildCompanyId, limit, search, next, previous)

Get List Of Logs

Get log details in the form of a list

Example

// Import classes:
//import io.conekta.LogsApi;

LogsApi apiInstance = new LogsApi();
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
Integer limit = 20; // Integer | The numbers of items to return, the maximum value is 250
String search = null; // String | General order search, e.g. by mail, reference etc.
String next = null; // String | next page
String previous = null; // String | previous page
try {
    LogsResponse result = apiInstance.getLogs(acceptLanguage, xChildCompanyId, limit, search, next, previous);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LogsApi#getLogs");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
acceptLanguage String Use for knowing which language to use [optional] [default to es] [enum: es, en]
xChildCompanyId String In the case of a holding company, the company id of the child company to which will process the request. [optional] [default to null]
limit Integer The numbers of items to return, the maximum value is 250 [optional] [default to 20]
search String General order search, e.g. by mail, reference etc. [optional] [default to null]
next String next page [optional] [default to null]
previous String previous page [optional] [default to null]

Return type

LogsResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.conekta-v2.1.0+json