DEV

Type.

QuestionnaireSessionLine

No description

Fields

Required

Every answer captured on this line; never filtered by requirements.

currentQuestion

Question

The next question to answer on this line; null once the line is COMPLETED, or once requirements (see visibleQuestions) leaves nothing to ask.

dependentOptions

[DependentOptionSet!]!

Required

Provider-agnostic up-front dependent-options table. One DependentOptionSet per distinct optionsSource among this line's questions, covering every reachable option combination scoped to this line's item (HTS code). Clients use this to derive visible options for provider-backed questions locally, without additional server calls.

id

ID!

Required

Stable external id, prefixed questionnaire_session_line_.

programId

ID!

Required

External id of the ComplianceProgram this line answers.

Required

ALL questions for this line's questionnaire version in display order, each with its latest answer. Display conditions are NOT evaluated server-side here — deliver the full tree so the client can evaluate them locally (one-shot delivery, zero subsequent round-trips for conditional branching). requirements filters it as on visibleQuestions.

responseId

ID

External id of the finalized response; null until the line is COMPLETED.

Required

No description

targetId

ID!

Required

No description

targetType

ResponseTargetType!

Required

What the line is about — a durable CatalogItem or a per-shipment Item.

visibleQuestions

[SessionLineQuestion!]!

Required

All currently-visible questions in display order, each with its latest answer merged (null when unanswered). Display conditions are evaluated server-side against this line's answers — the render-ready review list; clients never re-implement the evaluator. requirements keeps only questions at those levels (null/empty = every level). It narrows delivery, not the line: completion still blocks on REQUIRED alone. An unanswered question that a kept one's display condition gates on is kept too, or the gated question could never become visible.

Was this page helpful?


Get support·Legal docs·© 2026 Zonos