Skip to content

Variable: CreatedSubmission ​

ts
const CreatedSubmission: ZodObject<{
  link: ZodNullable<ZodString>;
  submission: ZodObject<{
     caseId: ZodOptional<ZodNullable<ZodGUID>>;
     createdAt: ZodCoercedDate<unknown>;
     currentStepId: ZodOptional<ZodNullable<ZodString>>;
     data: ZodRecord<ZodString, ZodUnknown>;
     expiresAt: ZodOptional<ZodNullable<ZodCoercedDate<unknown>>>;
     flowDefinitionId: ZodGUID;
     flowKey: ZodString;
     flowVersion: ZodNumber;
     id: ZodGUID;
     requestMessage: ZodOptional<ZodNullable<ZodString>>;
     status: ZodEnum<{
        expired: "expired";
        in_progress: "in_progress";
        submitted: "submitted";
        withdrawn: "withdrawn";
     }>;
     subjectId: ZodGUID;
     submittedAt: ZodOptional<ZodNullable<ZodCoercedDate<unknown>>>;
     tenantId: ZodGUID;
     updatedAt: ZodCoercedDate<unknown>;
     workflowRunId: ZodOptional<ZodNullable<ZodGUID>>;
  }, $strip>;
}, $strip>;

Response of POST /collection-submissions. link is the collection-flow URL carrying the applicant token (hand it to the applicant or the embed loader; never log it); it is null when the API cannot mint applicant tokens.

Released under the Apache-2.0 License.