Read the PIN
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({answer: '<string>'})
};
fetch('https://core.prod.gnosispay.com/partner-api/v1/cards/pin/details', 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/cards/pin/details \
--header 'Content-Type: application/json' \
--data '
{
"answer": "<string>"
}
'import requests
url = "https://core.prod.gnosispay.com/partner-api/v1/cards/pin/details"
payload = { "answer": "<string>" }
headers = {"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/cards/pin/details"
payload := strings.NewReader("{\n \"answer\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/cards/pin/details")
.header("Content-Type", "application/json")
.body("{\n \"answer\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/cards/pin/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"answer\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": "<string>"
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}Encrypted data
Read the PIN
Returns the PIN encrypted to the key of the application, after the
account owner signed a cards.read_pin.v1 challenge. The application
calls this route directly; your backend never sees the request or the
reply. The route takes no access token and allows any CORS origin.
The errors are those of POST /v1/cards/details.
POST
/
v1
/
cards
/
pin
/
details
Read the PIN
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({answer: '<string>'})
};
fetch('https://core.prod.gnosispay.com/partner-api/v1/cards/pin/details', 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/cards/pin/details \
--header 'Content-Type: application/json' \
--data '
{
"answer": "<string>"
}
'import requests
url = "https://core.prod.gnosispay.com/partner-api/v1/cards/pin/details"
payload = { "answer": "<string>" }
headers = {"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/cards/pin/details"
payload := strings.NewReader("{\n \"answer\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/cards/pin/details")
.header("Content-Type", "application/json")
.body("{\n \"answer\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/cards/pin/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"answer\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": "<string>"
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}