Get PIN encryption public key
curl --request GET \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/business/pin-crypto-key \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/business/pin-crypto-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://b2b-api-sandbox.easyonramp.com/api/v1/business/pin-crypto-key"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://b2b-api-sandbox.easyonramp.com/api/v1/business/pin-crypto-key"
req, _ := http.NewRequest("GET", 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))
}"<string>"Business
Get PIN encryption public key
Downloads the RSA public key PEM file for your business. Use it when setting or reading card PINs to encrypt the session key sent in the SessionId header. See the Managing a card PIN guide for the full encryption flow.
GET
/
api
/
v1
/
business
/
pin-crypto-key
Get PIN encryption public key
curl --request GET \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/business/pin-crypto-key \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/business/pin-crypto-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://b2b-api-sandbox.easyonramp.com/api/v1/business/pin-crypto-key"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://b2b-api-sandbox.easyonramp.com/api/v1/business/pin-crypto-key"
req, _ := http.NewRequest("GET", 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))
}"<string>"Authorizations
Bearer JWT issued to your business account during onboarding
Response
200 - application/x-pem-file
RSA public key PEM file download
The response is of type string.