---
title: "Complete Submission (Asynchronous)"
url: "https://apipartners.mosaicinsurance.com/apis/trident-sandbox-1/versions/063565b3-7d5d-4ebb-9e4e-ea5966a41579/operations/createCompleteSubmissionAsync"
---

> Full API specification: https://apipartners.mosaicinsurance.com/apis/trident-sandbox-1/versions/063565b3-7d5d-4ebb-9e4e-ea5966a41579.md

# Complete Submission (Asynchronous)

`POST` `/submission/completeasync`

Operation ID: `createCompleteSubmissionAsync`

Accepts the same request body and request-body examples as `POST /submission/complete`, but starts FULL execution asynchronously. ## Optional query parameters `policyKey` and `policyActivityKey` are optional. Example: `/submission/completeasync?policyKey=1090252&policyActivityKey=1145497`. ## Response timing For calls with large payloads such as this one, the SLA for the first step is less than 2 minutes. The first step is a synchronous call that returns the policy identifiers (`policyNo`, `policyKey`, and `policyActivityKey`). The second step of creation of the complete submission in XFI is asynchronous, for which the official SLA is 25 mins. Front-end clients can check status by using the Get Policy Status API (`GET /policy/status`) for the asynchronous operation. An accepted response does not mean processing has completed. Only FULL execution is started; no other stage will be started by this operation.

## Query parameters

- `policyKey` (string, optional) - Optional policy key.
- `policyActivityKey` (string, optional) - Optional policy activity key.

## Header parameters

- `X-Origination-Source` (string, required) - Identifies the calling system or channel that originated this request. Used for traceability and auditing across the platform.
- `X-Audit-UserId` (string, required) - Identifier of the end user on whose behalf this request is made, recorded for audit trail purposes.

## Request body (required)

Content types: `application/json`

## Responses

- `202` - Accepted for asynchronous FULL execution. No other stage will be started.

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Mosaic APIs
  version: dev
servers:
  - url: https://apinonprod.mosaicinsurance.com
    description: Generated server url
paths:
  /submission/completeasync:
    post:
      security:
        - api_key: []
      tags:
        - Submission
      summary: Complete Submission (Asynchronous)
      operationId: createCompleteSubmissionAsync
      description: >-
        Accepts the same request body and request-body examples as `POST
        /submission/complete`, but starts FULL execution asynchronously.


        ## Optional query parameters


        `policyKey` and `policyActivityKey` are optional. Example:
        `/submission/completeasync?policyKey=1090252&policyActivityKey=1145497`.


        ## Response timing


        For calls with large payloads such as this one, the SLA for the first
        step is less than 2 minutes. The first step is a synchronous call that
        returns the policy identifiers (`policyNo`, `policyKey`, and
        `policyActivityKey`). The second step of creation of the complete
        submission in XFI is asynchronous, for which the official SLA is 25
        mins. Front-end clients can check status by using the Get Policy Status
        API (`GET /policy/status`) for the asynchronous operation. An accepted
        response does not mean processing has completed. Only FULL execution is
        started; no other stage will be started by this operation.
      parameters:
        - $ref: "#/components/parameters/XOriginationSource"
        - $ref: "#/components/parameters/XAuditUserId"
        - name: policyKey
          in: query
          description: Optional policy key.
          required: false
          schema:
            type: string
          example: "1090252"
        - name: policyActivityKey
          in: query
          description: Optional policy activity key.
          required: false
          schema:
            type: string
          example: "1145497"
      requestBody:
        $ref: "#/paths/~1submission~1complete/post/requestBody"
      responses:
        "202":
          description: Accepted for asynchronous FULL execution. No other stage will be
            started.
          content:
            application/json:
              schema:
                type: object
                properties:
                  submissionId:
                    type: string
                    format: uuid
                    description: Submission execution identifier.
                  policyNo:
                    type: string
                  policyKey:
                    type: string
                  policyActivityKey:
                    type: string
                  status:
                    type: string
                    example: ACCEPTED
                  message:
                    type: string
              example:
                submissionId: 396ab6a9-7e1e-4216-8220-f66c88ad6805
                policyNo: Q1102583
                policyKey: "1090252"
                policyActivityKey: "1145497"
                status: ACCEPTED
                message: FULL execution started asynchronously; no other stage will be started.
security:
  - api_key: []
components:
  parameters:
    XOriginationSource:
      name: X-Origination-Source
      in: header
      required: true
      description: Identifies the calling system or channel that originated this
        request. Used for traceability and auditing across the platform.
      schema:
        type: string
      example: S01x
    XAuditUserId:
      name: X-Audit-UserId
      in: header
      required: true
      description: Identifier of the end user on whose behalf this request is made,
        recorded for audit trail purposes.
      schema:
        type: string
      example: jsmith
  securitySchemes:
    api_key:
      type: apiKey
      name: x-api-key
      in: header
```
