Skip to content

Get Customer Data

Overview

Use the GetCustomerData endpoint to retrieve all shared data and attestation records for a customer. This returns the customer's verified information that has been shared with your partner integration.

Endpoint

POST https://api.brij.fi/brij.core.v1.partner.Service/GetCustomerData

Request Body

{
  "customerId": "cust_abc123xyz"
}

Request Parameters

Field Type Required Description
customerId string Yes Unique identifier for the customer

Response

{
  "customerData": [
    {
      "id": "data_abc123",
      "type": "EMAIL",
      "isDeleted": false,
      "hash": "a1b2c3d4e5f6...",
      "createdAt": "2025-01-15T10:30:00Z",
      "email": {
        "value": "user@example.com"
      }
    },
    {
      "id": "data_def456",
      "type": "NAME",
      "isDeleted": false,
      "hash": "f6e5d4c3b2a1...",
      "createdAt": "2025-01-15T10:30:00Z",
      "name": {
        "firstName": "John",
        "lastName": "Doe"
      }
    }
  ],
  "attestationRecords": [
    {
      "id": "att_xyz789",
      "type": "VALIDATED_EMAIL",
      "status": "VALID",
      "linkedDataIds": [
        "data_abc123"
      ],
      "verifierPublicKey": "0x1234...",
      "verifiedAt": "2025-01-15T10:35:00Z"
    }
  ]
}

Response Parameters

Field Type Description
customerData array List of customer data records shared with you
attestationRecords array List of attestation records for the customer

CustomerData Object

See CustomerData Object for the full structure.

Note

Binary fields (e.g., frontSideImage, backSideImage, image) are not populated in this response. Only the corresponding hash fields (e.g., frontSideImageHash, backSideImageHash, imageHash) are included. To retrieve the actual binary data, use the GetCustomerDataById endpoint.

AttestationRecord Object

See AttestationRecord Object for the full structure.

Error Responses

Status Code Description
400 Invalid request parameters
401 Invalid or missing API key
404 Customer or partner not found
500 Internal server error

Examples

Example 1: Get All Customer Data

Retrieve all shared data and attestations for a customer:

{
  "customerId": "cust_abc123xyz"
}