When starting a journey, you can pass reference numbers for internal tracking purposes. This allows you to link verification sessions in GBG GO with records in your own systems. GBG GO uses theDocumentation Index
Fetch the complete documentation index at: https://docs.go.gbgplc.com/llms.txt
Use this file to discover all available pages before exploring further.
context.subject.sessions[0] object to handle reference numbers. You can provide numbers that best fit your use case and you’re not limited to just one. Pass as many reference numbers as you need to track sessions across multiple systems or databases.
These numbers are passed through the GO API unchanged and returned in the /journey/state/fetch API responses, allowing you to correlate verification results with your internal records.
Use cases for reference numbers
Common use cases for passing reference numbers include:- Provide CRM IDs for end users to find all associated verification journeys.
- Link verification sessions to customer records in your database.
- Maintain consistent identifiers for compliance and reporting.
GO does not process or validate these identifiers. They exist solely for your internal tracking purposes.
Step 1: Structure the sessions object
Thesessions field is designed to store one or more objects containing unique tracking identifiers and related details for each user session. Use it to record contextually relevant information specific to a session.
| Location | Data type | Description |
|---|---|---|
context.subject.sessions[0] | Array of objects | Contains session-specific reference numbers and metadata, for example, context.subject.sessions[0].user.id |
Available fields within each session object
You can include any combination of the following fields based on your tracking requirements:| Field category | Details |
|---|---|
user | user.id |
user.email | |
user.domain | |
client | client.id |
client.ip | |
client.address | |
device | device.id |
device.manufacturer | |
device.model.identifier | |
device.model.name | |
trace | trace.id |
span | span.id |
transaction | transaction.id |
/journey/start endpoint with multiple reference fields:
JSON
You don’t need to include all available fields. Choose the ones that are relevant to your tracking needs.
Step 2: Retrieve reference numbers from API responses
All reference numbers you provide are returned in the Fetch journey state/journey/state/fetch response within the data.context.subject object.
Example response from the /journey/state/fetch endpoint:
JSON
data.context.subject structure. The response also includes journey processing details and results from executed modules.
The example response above shows results from a PEPs and sanctions screening module, but the structure applies to all journey types regardless of which modules are configured.