Skip to main content

customerGuidedStep

Requires a customer (portal or buyer app) session.

Returns the next step of a guided buying flow for the choices made so far. A flow that does not exist, or is not offered to buyers, is refused.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query CustomerGuidedStep($flowId: ID!, $path: [GuidedPickInput!]!) {
customerGuidedStep(flowId: $flowId, path: $path) {
display
flowId
kind
label
opensProduct
search
contextCategory {
id
code
name
}
}
}

Variables:

{
"flowId": "id",
"path": [
{
"stepKey": "string",
"value": "string"
}
]
}

Response:

{
"data": {
"customerGuidedStep": {
"display": "LIST",
"flowId": "id",
"kind": "OPTIONS",
"label": "string",
"opensProduct": true,
"search": true,
"contextCategory": {
"id": "id",
"code": "string",
"name": "string"
}
}
}
}
customerGuidedStep(
entry: GuidedEntryInput
flowId: ID!
path: [GuidedPickInput!]!
): GuidedStepResult!

Arguments​

customerGuidedStep.entry ● GuidedEntryInput input​

What the flow was opened from; ignored unless it is this tenant's and opens this flow

customerGuidedStep.flowId ● ID! non-null scalar​

The ID of the guided flow.

customerGuidedStep.path ● [GuidedPickInput!]! non-null input​

The choices made so far, in order. Empty to get the first step.

Type​

GuidedStepResult object​

The next step of a guided flow, or its final result.