Get card PIN
curl --request GET \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/cards/{cardId}/pin \
--header 'Authorization: Bearer <token>' \
--header 'SessionId: <sessionid>'const options = {
method: 'GET',
headers: {SessionId: '<sessionid>', Authorization: 'Bearer <token>'}
};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/cards/{cardId}/pin', 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/cards/{cardId}/pin"
headers = {
"SessionId": "<sessionid>",
"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/cards/{cardId}/pin"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("SessionId", "<sessionid>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "550e8400-e29b-41d4-a716-446655440002",
"encryptedPin": {
"iv": "<string>",
"data": "<string>"
}
}Cards
Get card PIN
Retrieve the card PIN as an encrypted payload. Requires a SessionId header built from your business PIN public key. See the Managing a card PIN guide for session generation and decryption.
GET
/
api
/
v1
/
cards
/
{cardId}
/
pin
Get card PIN
curl --request GET \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/cards/{cardId}/pin \
--header 'Authorization: Bearer <token>' \
--header 'SessionId: <sessionid>'const options = {
method: 'GET',
headers: {SessionId: '<sessionid>', Authorization: 'Bearer <token>'}
};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/cards/{cardId}/pin', 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/cards/{cardId}/pin"
headers = {
"SessionId": "<sessionid>",
"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/cards/{cardId}/pin"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("SessionId", "<sessionid>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "550e8400-e29b-41d4-a716-446655440002",
"encryptedPin": {
"iv": "<string>",
"data": "<string>"
}
}Authorizations
Bearer JWT issued to your business account during onboarding
Headers
Encrypted session key from your PIN encryption flow. Required on every PIN request.