Get an identity
In this tutorial, we'll step through the API calls required to view the details of an existing identity.
Identities in Ripple Payments are objects that correspond to payment participants, such as payment originators and beneficiaries of payments. They contain all of the personally identifiable information (PII) connected to a specific individual or business to ensure proper compliance and proper routing.
This guide walks you through the API calls required to get an identity.
- Get a list of identities by identity type.
- Get an identity by ID to serve as a business identity.
Note
BENEFICIARY
, the process is similar for an ORIGINATOR
.Prerequisite
The following must be addressed before you can carry out the instructions in this tutorial:
- An access token to access secured API endpoints.
Get a list of identities
To get a list of identities, use the get a list of identities operation.
By default the API returns a list of all identity types, but this tutorial narrows the result to beneficiaries.
To do this, we'll setidentityType=BENEFICIARY
as the query parameter.curl -i -X GET \
'https://[customer-name].test.rnc.ripplenet.com/v4/identities?identityType=BENEFICIARY' \
-H 'Authorization: YOUR_API_KEY_HERE'
Get a list of identities response
The API responds with a list of identities that have the identity type set to BENEFICIARY
.
For this tutorial we're going to get more details about the identity whose nickName
is "Successful Business Beneficiary". To do that, let's store the identityId
value 11111111-abcd-2222-efgh-333333333333
for the beneficiary with a BUSINESS
use case.
{- "data": [
- {
- "identityId": "11111111-abcd-2222-efgh-333333333333",
- "nickName": "Successful Business Beneficiary",
- "createdAt": "2023-11-02T18:26:00.000Z",
- "identityType": "BENEFICIARY",
- "useCaseType": "BUSINESS"
}, - {
- "identityId": "11111111-abcd-4444-efgh-444444444444",
- "nickName": "Successful Individual Beneficiary",
- "createdAt": "2023-11-02T18:26:00.000Z",
- "identityType": "BENEFICIARY",
- "useCaseType": "INDIVIDUAL"
}
]
}
Get an identity by ID
To get more details about a specific identity, let's use the identityId
value 11111111-abcd-2222-efgh-333333333333
we stored in the previous step with the get an identity by ID operation to view the details of the identity.
curl -i -X GET \
'https://[customer-name].test.rnc.ripplenet.com/v4/identities/11111111-abcd-2222-efgh-333333333333' \
-H 'Authorization: YOUR_API_KEY_HERE'
Get an identity by ID response
Here, the API response contains the full piiData structure and current status of the identity.
Note
version
in the query parameter.{- "identityId": "11111111-abcd-2222-efgh-333333333333",
- "identityType": "BENEFICIARY",
- "createdAt": "2023-11-02T18:26:00.000Z",
- "identityState": "ACTIVE",
- "nickName": "Successful Business Beneficiary",
- "useCaseType": "BUSINESS",
- "piiData": {
- "Cdtr": {
- "Nm": "Success Co.",
- "CtctDtls": {
- "MobNb": "+1234567890",
- "EmailAdr": "test@test.com"
}, - "CtryOfRes": "AT",
- "Id": {
- "OrgId": {
- "Othr": {
- "Id": "1234567890",
- "SchmeNm": {
- "Cd": "CINC"
}
}, - "RelShipToDbtr": "CUST"
}
}, - "PstlAdr": {
- "AdrLine": [
- "1234 Beneficiary Ave"
], - "PstCd": "02125",
- "TwnNm": "Boston"
}
}, - "CdtrAcct": {
- "Ccy": "US",
- "Id": {
- "IBAN": "1234123412341234",
- "Othr": {
- "SchmeNm": {
- "Cd": "BBAN"
}
}
}
}, - "CdtrAgt": {
- "BrnchId": {
- "PstlAdr": {
- "Ctry": "US"
}
}, - "FinInstnId": {
- "Nm": "Bank of Massachusetts",
- "Othr": {
- "Id": "123456"
}
}
}
}, - "version": 2
}