Update a Transaction

Accepts an UpdateThreeDSecureAuthenticationRequest object.

Returns a [ThreeDSecureAuthenticationResponse object.

Example (Ruby)

require 'uri'
require 'net/http'

url = URI("https://api.opentransact.com/v1/three-d-secure-authentications/#{three_d_secure3_authentication_id}")

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

request = Net::HTTP::Put.new(url)
request["authorization"] = "Bearer #{API_KEY}"
request["content-type"] = 'application/vnd.api+json'
request.body = {
	"data": {
		"type": "three-d-secure-authentications",
		"id": three_d_secure3_authentication_id,
		"attributes": {
			"metadata": {
				"newInfo": "some data"
			}
		}
	}
}.to_json

response = http.request(request)
puts response.read_body

Example (cURL)

curl --request PUT \
  --url https://api.opentransact.com/v1/three-d-secure-authentications/$THREE_D_SECURE_AUTHENTICATION_ID \
  --header 'authorization: Bearer $API_KEY' \
  --header 'content-type: application/vnd.api+json' \
  --data '{
	"data": {
		"type": "three-d-secure-authentications",
		"id": $THREE_D_SECURE_AUTHENTICATION_ID,
		"attributes": {
			"metadata": {
				"newInfo": "some data"
			}
		}
	}
}'