Each interaction in a journey requires specific data to be submitted before the journey can progress. This data is structured around domain elements, which are units of identity data such asDocumentation 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.
FullName, PrimaryDocument, or DateOfBirth.
Use the Submit interaction (/journey/interaction/submit) endpoint to submit collected data for the current interaction.
When to submit interaction data
You need to submit interaction data when:- The end user has provided input for one or more domain elements listed in the fetch interaction response.
- You want to advance the journey to the next interaction or to completion.
- You are submitting a partial set of domain elements and plan to submit the remaining elements in a subsequent call.
Before getting started
Before sending the request, make sure you have the access token obtained in Step 1: Authenticate for API authentication.Submit interaction data
Send aPOST request to the /journey/interaction/submit endpoint:
BASH
Request body fields
| Field | Required | Description |
|---|---|---|
instanceId | Yes | The journey instance ID returned when you started the journey. |
interactionId | Yes | The interaction ID returned in the fetch interaction response. |
context | No | The collected domain elements, structured under subject. |
participants | No | List of domain element identifiers being submitted in this call. Used to indicate which domain elements are included, particularly for partial submissions. |
Partial submissions are supported. You can submit a subset of the required domain elements and call this endpoint again with the remaining elements. Use the
outstanding array in the fetch interaction response to track which domain elements still need to be submitted.Successful response
If your request is valid, the API returns a200 OK response:
JSON
After a successful submission, the platform advances the journey asynchronously. Resume polling
/journey/interaction/fetch to discover the next interaction. Repeat this loop until journey.status is no longer InProgress.How to determine field structure for submission
The fetch interaction response from Step 3 tells you which domain elements are required and which are optional for the current interaction. Use thecollects[] and outstanding[] arrays to identify what data is needed.
To understand the full field structure and data types for each domain element, retrieve the schema for your journey from Dashboard in the GBG GO platform. Follow the steps below to access the schema:
- Log in to the GBG GO platform.
- Locate your published journey.
- Click Dashboard.
- Click the Actions list for your specific environment.
- Click View schema.
context.subject object. Use it alongside the fetch interaction response to construct your submission with the correct fields and format.
For a full reference of all possible fields and data types, see User data input schema.
The schema may change when a journey is updated. Always retrieve the latest schema after publishing a new version of your journey.
FAQ
How do I submit documents in a journey?
How do I submit documents in a journey?
In the v2 API, documents are submitted inside Field reference:
Partial submissions are supported. You can submit documents and biometrics in separate calls to the same interaction. Use the
context.subject.documents as part of an interaction submission. Each document object includes a base64-encoded image for each side and a type field.Example: Submitting the front of a primary document:JSON
| Field | Description |
|---|---|
side1Image | Base64-encoded image of the front of the document. |
side2Image | Base64-encoded image of the back of the document. Leave as an empty string if not applicable. |
type | The document type. Use "Primary" for the main identity document. |
Submitting a selfie
Biometric data such as a selfie is submitted separately insidecontext.subject.biometrics:Documents and biometrics must be placed inside
context.subject. Placing them outside subject causes the request to fail.outstanding field in the interaction fetch response to track which domain elements still need to be provided.How do I submit SSN, date of birth, or partial identity data?
How do I submit SSN, date of birth, or partial identity data?
Identity data is submitted inside
context.subject.identity as part of an interaction submission. You only need to include the fields relevant to your journey’s requirements.Submitting a Social Security Number (SSN)
SSN is submitted as an entry in theidNumbers array with a type of "ssn":JSON
Submitting date of birth only
The response below shows how to submit just the date of birth if that’s the only required field for your journey.JSON
Submitting partial identity data
Partial submissions are supported for identity data. This means you can submit a subset of the required identity fields in one API call, and then submit the remaining fields in subsequent calls as you collect them from the end user. Use theoutstanding array in the fetch interaction response to track which identity fields still need to be submitted.For example, if your journey requires FullName, DateOfBirth, and PrimaryDocument, you could first submit just DateOfBirth, then check the next fetch interaction response to see that FullName and PrimaryDocument are still outstanding, and submit those in the next call. Refer to partial prefill mode in Step 2: Start a journey for how to submit partial identity data when starting a journey.