Fetch Interaction
Fetch the current interaction in a GBG GO journey to determine which domain elements to collect from the end user.
POST
/
journey
/
interaction
/
fetch
Fetch Interaction
curl --request POST \
--url https://eu.platform.go.gbgplc.com/v2/captain/journey/interaction/fetch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instanceId": "PiKR2O0IjyUR8KV3RviKt4we"
}
'{
"instanceId": "Pq_hhIX6-sHUy9FLSDzPLu",
"interactionId": "grn:::gbg:design:interaction:segment1@latest",
"journey": {
"status": "InProgress"
},
"interaction": {
"grId": "grn:::gbg:design:interaction:segment1@latest",
"resource": {
"id": "segment1",
"name": "segment1",
"version": "latest",
"type": "interaction",
"data": {
"pages": [
{
"id": "personal_details",
"label": "Personal details",
"cards": [
{
"id": "NameCard"
},
{
"id": "DateOfBirthCard"
},
{
"id": "IdentifierCardSSN"
},
{
"id": "ControlCard"
}
]
},
{
"id": "contact_details",
"label": "Contact details",
"cards": [
{
"id": "EmailCardPersonalEmail"
},
{
"id": "PhoneCardMobilePhone"
},
{
"id": "ControlCard"
}
]
},
{
"id": "address_details",
"label": "Address details",
"cards": [
{
"id": "AddressCard",
"config": {
"secrets": {
"loqateApiKey": {
"value": "WJ28-WP43-WG34-YD87"
}
}
}
},
{
"id": "ControlCard"
}
]
},
{
"id": "previous_addresses",
"label": "Previous Addresses",
"cards": [
{
"id": "PreviousAddressesCard"
},
{
"id": "ControlCard"
}
]
},
{
"id": "document_capture",
"label": "Document Capture",
"cards": [
{
"id": "DocumentCard"
}
]
}
]
}
},
"collects": [
{
"ref": "FullName",
"spec": "required"
},
{
"ref": "DateOfBirth",
"spec": "required"
},
{
"ref": "CurrentAddress",
"spec": "required"
},
{
"ref": "PreviousAddresses",
"spec": "optional"
},
{
"ref": "MobilePhone",
"spec": "optional"
},
{
"ref": "PersonalEmail",
"spec": "optional"
},
{
"ref": "SSN",
"spec": "optional"
},
{
"ref": "PrimaryDocument",
"spec": "required"
}
],
"consumes": []
},
"outstanding": [
"FullName",
"DateOfBirth",
"CurrentAddress",
"PrimaryDocument"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Journey instance identifier
Response
Success
- Option 1
- Option 2
Journey instance identifier
Interaction identifier
Current journey state.
Show child attributes
Show child attributes
The current interaction definition, including the resource (pages/cards) and data collection requirements.
Show child attributes
Show child attributes
List of data element references that are still required but not yet collected.
Was this page helpful?
Previous
Submit InteractionSubmit collected end-user data for the current interaction to advance a GBG GO journey toward completion.
Next
⌘I
Fetch Interaction
curl --request POST \
--url https://eu.platform.go.gbgplc.com/v2/captain/journey/interaction/fetch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instanceId": "PiKR2O0IjyUR8KV3RviKt4we"
}
'{
"instanceId": "Pq_hhIX6-sHUy9FLSDzPLu",
"interactionId": "grn:::gbg:design:interaction:segment1@latest",
"journey": {
"status": "InProgress"
},
"interaction": {
"grId": "grn:::gbg:design:interaction:segment1@latest",
"resource": {
"id": "segment1",
"name": "segment1",
"version": "latest",
"type": "interaction",
"data": {
"pages": [
{
"id": "personal_details",
"label": "Personal details",
"cards": [
{
"id": "NameCard"
},
{
"id": "DateOfBirthCard"
},
{
"id": "IdentifierCardSSN"
},
{
"id": "ControlCard"
}
]
},
{
"id": "contact_details",
"label": "Contact details",
"cards": [
{
"id": "EmailCardPersonalEmail"
},
{
"id": "PhoneCardMobilePhone"
},
{
"id": "ControlCard"
}
]
},
{
"id": "address_details",
"label": "Address details",
"cards": [
{
"id": "AddressCard",
"config": {
"secrets": {
"loqateApiKey": {
"value": "WJ28-WP43-WG34-YD87"
}
}
}
},
{
"id": "ControlCard"
}
]
},
{
"id": "previous_addresses",
"label": "Previous Addresses",
"cards": [
{
"id": "PreviousAddressesCard"
},
{
"id": "ControlCard"
}
]
},
{
"id": "document_capture",
"label": "Document Capture",
"cards": [
{
"id": "DocumentCard"
}
]
}
]
}
},
"collects": [
{
"ref": "FullName",
"spec": "required"
},
{
"ref": "DateOfBirth",
"spec": "required"
},
{
"ref": "CurrentAddress",
"spec": "required"
},
{
"ref": "PreviousAddresses",
"spec": "optional"
},
{
"ref": "MobilePhone",
"spec": "optional"
},
{
"ref": "PersonalEmail",
"spec": "optional"
},
{
"ref": "SSN",
"spec": "optional"
},
{
"ref": "PrimaryDocument",
"spec": "required"
}
],
"consumes": []
},
"outstanding": [
"FullName",
"DateOfBirth",
"CurrentAddress",
"PrimaryDocument"
]
}