Skip to main content
POST
/
api
/
v1
/
onboarding
/
register
Register user
curl --request POST \
  --url https://api.digitalreceiptprotocol.org/api/v1/onboarding/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "hashedPan": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8",
  "publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz3...",
  "keyId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
}
'
{
"success": true,
"data": {
"userId": "usr_f8e7d6c5-b4a3-4c2d-1e0f-9a8b7c6d5e4f",
"status": "active",
"registeredAt": "2025-12-18T10:30:00Z"
}
}

Body

application/json
hashedPan
string
required

Hashed PAN (Primary Account Number) used as unique identifier

Example:

"5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8"

publicKey
string
required

Base64-encoded public key from generate-keys endpoint

Example:

"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."

keyId
string<uuid>
required

Key ID from generate-keys endpoint

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

User registered successfully

success
boolean
Example:

true

data
object