Get Card Details
const options = {
method: 'GET',
headers: {
'x-eip712-signature': '<x-eip712-signature>',
'x-eip712-nonce': '<x-eip712-nonce>',
Authorization: 'Bearer <token>'
}
};
fetch('https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details \
--header 'Authorization: Bearer <token>' \
--header 'x-eip712-nonce: <x-eip712-nonce>' \
--header 'x-eip712-signature: <x-eip712-signature>'import requests
url = "https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details"
headers = {
"x-eip712-signature": "<x-eip712-signature>",
"x-eip712-nonce": "<x-eip712-nonce>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-eip712-signature", "<x-eip712-signature>")
req.Header.Add("x-eip712-nonce", "<x-eip712-nonce>")
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.get("https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details")
.header("x-eip712-signature", "<x-eip712-signature>")
.header("x-eip712-nonce", "<x-eip712-nonce>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-eip712-signature"] = '<x-eip712-signature>'
request["x-eip712-nonce"] = '<x-eip712-nonce>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cardNumber": "<string>",
"cvv": "<string>",
"expirationDate": "<string>",
"iv": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}PCI
Get Card Details
Returns the card PAN and CVV encrypted under a client-provided AES session
key (expiration date in plaintext). The caller RSA-OAEP encrypts a one-time
AES-256 session key with the PCI public key and passes it as encryptedKey;
the EIP-712 signature over a prior view-details challenge is passed via the
x-eip712-signature / x-eip712-nonce headers. Fetched from partner-api
over HTTP.
GET
/
pci
/
cards
/
{cardId}
/
details
Get Card Details
const options = {
method: 'GET',
headers: {
'x-eip712-signature': '<x-eip712-signature>',
'x-eip712-nonce': '<x-eip712-nonce>',
Authorization: 'Bearer <token>'
}
};
fetch('https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details \
--header 'Authorization: Bearer <token>' \
--header 'x-eip712-nonce: <x-eip712-nonce>' \
--header 'x-eip712-signature: <x-eip712-signature>'import requests
url = "https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details"
headers = {
"x-eip712-signature": "<x-eip712-signature>",
"x-eip712-nonce": "<x-eip712-nonce>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-eip712-signature", "<x-eip712-signature>")
req.Header.Add("x-eip712-nonce", "<x-eip712-nonce>")
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.get("https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details")
.header("x-eip712-signature", "<x-eip712-signature>")
.header("x-eip712-nonce", "<x-eip712-nonce>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/user-api/pci/cards/{cardId}/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-eip712-signature"] = '<x-eip712-signature>'
request["x-eip712-nonce"] = '<x-eip712-nonce>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cardNumber": "<string>",
"cvv": "<string>",
"expirationDate": "<string>",
"iv": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Headers
EIP-712 signature over the view-details challenge.
Nonce of the challenge that was signed.
Path Parameters
Query Parameters
Base64-encoded RSA-OAEP encrypted AES-256 session key.
Response
The request has succeeded.