JavaScript
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"simulation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"expires_at": "2023-11-07T05:31:56Z",
"challenge_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transaction": {
"status": "approved",
"authorization_code": "ABC123",
"authorization_id": 98765432,
"authorization_date_time": "2025-06-15T14:30:00Z",
"settlement_amount": "100.50",
"mode_type": "DEBIT",
"card_mode": "CHIP",
"is_domestic_transaction": true
},
"error": "<string>"
}{
"code": 123,
"message": "<string>"
}Simulator
Post transactions3ds simulations cancel
Simulates the 3DS provider cancelling a pending OOB challenge. The transaction is not sent to the card processor after cancellation.
POST
/
transactions
/
3ds-simulations
/
{simulation_id}
/
cancel
JavaScript
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/transactions/3ds-simulations/{simulation_id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"simulation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"expires_at": "2023-11-07T05:31:56Z",
"challenge_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transaction": {
"status": "approved",
"authorization_code": "ABC123",
"authorization_id": 98765432,
"authorization_date_time": "2025-06-15T14:30:00Z",
"settlement_amount": "100.50",
"mode_type": "DEBIT",
"card_mode": "CHIP",
"is_domestic_transaction": true
},
"error": "<string>"
}{
"code": 123,
"message": "<string>"
}Response
The request has succeeded.