Supported Filters

Key Value Required Notes
application-id UUID  
amount String    
currency String    
profile-id UUID    
account-id UUID    
status String   See Valid Statuses
metadata Metadata   See Filtering By Metadata

Get a List of Transactions

Returns a Collection of TransactionResponse objects.

require 'uri'
require 'net/http'

url = URI("https://api.opentransact.com/v1/transactions?filter[application-id]=#{application_id}")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)
request["authorization"] = "Bearer #{API_KEY}"

response = http.request(request)
puts response.read_body
curl --request GET \
  --url https://api.opentransact.com/v1/transactions?filter[application-id]=$APPLICATION_ID \
  --header 'authorization: Bearer $API_KEY'

Get Transactions for a specific Profile

See Supported Filters for more transactions filters.

Returns a Collection of TransactionResponse object.

require 'uri'
require 'net/http'

url = URI("https://api.opentransact.com/v1/transactions?filter[application-id]=#{application_id}&filter[profile-id]=#{profile_id}")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)
request["authorization"] = "Bearer #{API_KEY}"

response = http.request(request)
puts response.read_body
curl --request GET \
  --url https://api.opentransact.com/v1/transactions?filter[application-id]=$APPLICATION_ID&filter[profile-id]=$PROFILE_ID \
  --header 'authorization: Bearer $API_KEY'