Generate access token
1 min
auth
Use /auth endpoint by credentials to return a token and continue your process to manage payment initiation resources.
POST
https://api-sandbox.klavi.ai/payment/management/v1/auth
require "uri"
require "json"
require "net/http"
url = URI("https://api-sandbox.klavi.ai/payment/management/v1/auth")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"accessKey": "String",
"secretKey": "String"
})
response = https.request(request)
puts response.read_body