Create profile identity-document renewal session
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({credentials: []})
};
fetch('https://core.prod.gnosispay.com/partner-api/v1/kyc/profiles/{kycProfileId}/document-renewal/session', 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/kyc/profiles/{kycProfileId}/document-renewal/session \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credentials": []
}
'import requests
url = "https://core.prod.gnosispay.com/partner-api/v1/kyc/profiles/{kycProfileId}/document-renewal/session"
payload = { "credentials": [] }
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/kyc/profiles/{kycProfileId}/document-renewal/session"
payload := strings.NewReader("{\n \"credentials\": []\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/kyc/profiles/{kycProfileId}/document-renewal/session")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"credentials\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/kyc/profiles/{kycProfileId}/document-renewal/session")
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 \"credentials\": []\n}"
response = http.request(request)
puts response.read_body{
"mobileSdkToken": "<string>",
"webSdkUrl": "<string>"
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}KYC
Create profile identity-document renewal session
Starts or resumes identity-document collection for an available renewal. Request only the credential used by the client and do not log the returned value.
POST
/
v1
/
kyc
/
profiles
/
{kycProfileId}
/
document-renewal
/
session
Create profile identity-document renewal session
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({credentials: []})
};
fetch('https://core.prod.gnosispay.com/partner-api/v1/kyc/profiles/{kycProfileId}/document-renewal/session', 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/kyc/profiles/{kycProfileId}/document-renewal/session \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credentials": []
}
'import requests
url = "https://core.prod.gnosispay.com/partner-api/v1/kyc/profiles/{kycProfileId}/document-renewal/session"
payload = { "credentials": [] }
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/kyc/profiles/{kycProfileId}/document-renewal/session"
payload := strings.NewReader("{\n \"credentials\": []\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/kyc/profiles/{kycProfileId}/document-renewal/session")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"credentials\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/kyc/profiles/{kycProfileId}/document-renewal/session")
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 \"credentials\": []\n}"
response = http.request(request)
puts response.read_body{
"mobileSdkToken": "<string>",
"webSdkUrl": "<string>"
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}Body
application/json
Verification credentials required by the client.