Conekta::TransactionsApi

July 21, 2026 ยท View on GitHub

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

MethodHTTP requestDescription
get_transactionGET /transactions/{id}Get transaction
get_transactionsGET /transactionsGet List transactions

get_transaction

get_transaction(id, opts)

Get transaction

Get the details of a transaction

Examples

require 'time'
require 'conekta'
# setup authorization
Conekta.configure do |config|
  # Configure Bearer authorization: bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = Conekta::TransactionsApi.new
id = '6307a60c41de27127515a575' # String | Identifier of the resource
opts = {
  accept_language: 'es', # String | Use for knowing which language to use
  x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
}

begin
  # Get transaction
  result = api_instance.get_transaction(id, opts)
  p result
rescue Conekta::ApiError => e
  puts "Error when calling TransactionsApi->get_transaction: #{e}"
end

Using the get_transaction_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_transaction_with_http_info(id, opts)

begin
  # Get transaction
  data, status_code, headers = api_instance.get_transaction_with_http_info(id, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <TransactionResponse>
rescue Conekta::ApiError => e
  puts "Error when calling TransactionsApi->get_transaction_with_http_info: #{e}"
end

Parameters

NameTypeDescriptionNotes
idStringIdentifier of the resource
accept_languageStringUse for knowing which language to use[optional][default to 'es']
x_child_company_idStringIn the case of a holding company, the company id of the child company to which will process the request.[optional]

Return type

TransactionResponse

Authorization

bearerAuth

HTTP request headers

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

get_transactions

get_transactions(opts)

Get List transactions

Get transaction details in the form of a list

Examples

require 'time'
require 'conekta'
# setup authorization
Conekta.configure do |config|
  # Configure Bearer authorization: bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = Conekta::TransactionsApi.new
opts = {
  accept_language: 'es', # String | Use for knowing which language to use
  x_child_company_id: '6441b6376b60c3a638da80af', # String | In the case of a holding company, the company id of the child company to which will process the request.
  limit: 56, # Integer | The numbers of items to return, the maximum value is 250
  _next: '_next_example', # String | next page
  previous: 'previous_example', # String | previous page
  id: '65412a893cd69a0001c25892', # String | id of the object to be retrieved
  charge_id: '65412a893cd69a0001c25892', # String | id of the charge used for filtering
  type: 'capture', # String | type of the object to be retrieved
  currency: 'MXN' # String | currency of the object to be retrieved
}

begin
  # Get List transactions
  result = api_instance.get_transactions(opts)
  p result
rescue Conekta::ApiError => e
  puts "Error when calling TransactionsApi->get_transactions: #{e}"
end

Using the get_transactions_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_transactions_with_http_info(opts)

begin
  # Get List transactions
  data, status_code, headers = api_instance.get_transactions_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <GetTransactionsResponse>
rescue Conekta::ApiError => e
  puts "Error when calling TransactionsApi->get_transactions_with_http_info: #{e}"
end

Parameters

NameTypeDescriptionNotes
accept_languageStringUse for knowing which language to use[optional][default to 'es']
x_child_company_idStringIn the case of a holding company, the company id of the child company to which will process the request.[optional]
limitIntegerThe numbers of items to return, the maximum value is 250[optional][default to 20]
_nextStringnext page[optional]
previousStringprevious page[optional]
idStringid of the object to be retrieved[optional]
charge_idStringid of the charge used for filtering[optional]
typeStringtype of the object to be retrieved[optional]
currencyStringcurrency of the object to be retrieved[optional]

Return type

GetTransactionsResponse

Authorization

bearerAuth

HTTP request headers

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