Decide a 3DS challenge
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cardholder_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cardholder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision"
payload = { "cardholder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision"
payload := strings.NewReader("{\n \"cardholder_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cardholder_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cardholder_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"server_time": "2023-11-07T05:31:56Z",
"challenge": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"currency": "<string>",
"decimals": 4,
"merchant": {
"display_name": "<string>",
"id": "<string>",
"country": "<string>",
"category_code": "<string>"
},
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"decision_available": true,
"decision": "approve"
}
}{
"server_time": "2023-11-07T05:31:56Z",
"challenge": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"currency": "<string>",
"decimals": 4,
"merchant": {
"display_name": "<string>",
"id": "<string>",
"country": "<string>",
"category_code": "<string>"
},
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"decision_available": true,
"decision": "approve"
}
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}3DS
Decide a 3DS challenge
Approves or declines a 3DS challenge on behalf of a cardholder.
Submit the decision only after the cardholder has reviewed the transaction.
A 202 response means the decision was accepted for processing; poll the
challenge or wait for a webhook until it reaches a terminal status.
POST
/
v1
/
3ds
/
challenges
/
{challenge_id}
/
decision
Decide a 3DS challenge
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cardholder_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cardholder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision"
payload = { "cardholder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision"
payload := strings.NewReader("{\n \"cardholder_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cardholder_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/3ds/challenges/{challenge_id}/decision")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cardholder_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"server_time": "2023-11-07T05:31:56Z",
"challenge": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"currency": "<string>",
"decimals": 4,
"merchant": {
"display_name": "<string>",
"id": "<string>",
"country": "<string>",
"category_code": "<string>"
},
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"decision_available": true,
"decision": "approve"
}
}{
"server_time": "2023-11-07T05:31:56Z",
"challenge": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"currency": "<string>",
"decimals": 4,
"merchant": {
"display_name": "<string>",
"id": "<string>",
"country": "<string>",
"category_code": "<string>"
},
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"decision_available": true,
"decision": "approve"
}
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}Path Parameters
The challenge ID.
Body
application/json
Cardholder and approve-or-decline decision.