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 the 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.
The ‘sessions’ 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
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:
The data is preserved exactly as submitted and returned in the 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.