---
updatedAt: 2026-09-21T05:50:10.000Z
agentTools:
  projectIndex: https://docs.dogpay.com/llms.txt
---

# Submit entity document update files

Submits a complete document set (uploaded file IDs) and a new expiry date for a single update request. Only requests in `pending_submission` or `rejected` status can be submitted. On success, the request moves to `in_review` and the endpoint returns `202` with the latest request state. This endpoint is not replay-idempotent: resubmitting a request that is already in review returns `409 REVIEW_IN_PROGRESS` instead of the previously stored result.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "security": [
    {
      "bearer": []
    }
  ],
  "paths": {
    "/v2/openapi/openapi/entity-document-update-requests/{id}/submit": {
      "post": {
        "operationId": "OpenApiEntityController_submitEntityDocumentUpdateRequest",
        "summary": "Submit entity document update files",
        "description": "Submits a complete document set (uploaded file IDs) and a new expiry date for a single update request. Only requests in `pending_submission` or `rejected` status can be submitted. On success, the request moves to `in_review` and the endpoint returns `202` with the latest request state. This endpoint is not replay-idempotent: resubmitting a request that is already in review returns `409 REVIEW_IN_PROGRESS` instead of the previously stored result.",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "Bearer Token",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dgp-entity-id",
            "in": "header",
            "required": false,
            "description": "Sub-account (entity) ID. If provided, the request is scoped to that sub-account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Update request ID (ticket UUID).",
            "schema": {
              "type": "string",
              "example": "9f1c6d2a-3b4e-4f7a-8c1d-2e5b7a9c0d31"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Uploaded file IDs and the new document expiry date.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenApiEntityDocumentSubmitRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. `data` is the latest request state, where `status` is `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ApiSuccessResponse"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/OpenApiEntityDocumentUpdateRequestItem"
                        }
                      },
                      "required": [
                        "data"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters: malformed update request ID, missing `files` or `new_expiry_date`, or `new_expiry_date` is not in `YYYY-MM-DD` format.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSuccessResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. The token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSuccessResponse"
                }
              }
            }
          },
          "404": {
            "description": "Update request not found. This is also returned when the request belongs to another account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSuccessResponse"
                }
              }
            }
          },
          "409": {
            "description": "`UPDATE_WINDOW_NOT_OPEN` (40901), `REVIEW_IN_PROGRESS` (40902), or `UPDATE_ALREADY_COMPLETED` (40904).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSuccessResponse"
                }
              }
            }
          },
          "422": {
            "description": "`FILE_VALIDATION_FAILED` (42203): `files` is empty, contains duplicates or blank values, or contains file IDs that are not owned by the current account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSuccessResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSuccessResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Entity Management"
        ]
      }
    }
  },
  "info": {
    "title": "Sub-Accounts",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://sandbox-api-v2.dogpay.com/",
      "description": "Sandbox"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "ApiSuccessResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "number",
            "description": "Response code"
          },
          "message": {
            "type": "string",
            "description": "Message"
          },
          "timestamp": {
            "type": "number",
            "description": "Current time timestamp"
          },
          "requestId": {
            "type": "string",
            "description": "Request ID"
          }
        },
        "required": [
          "code",
          "message",
          "timestamp",
          "requestId"
        ]
      },
      "OpenApiEntityDocumentSubmitRequest": {
        "type": "object",
        "required": [
          "files",
          "new_expiry_date"
        ],
        "properties": {
          "files": {
            "type": "array",
            "description": "File IDs returned by the upload API `/open-api/v1/file/upload`. The array must be non-empty, contain no duplicates, and only include files owned by the current account.",
            "items": {
              "type": "string"
            },
            "example": [
              "9f1c6d2a-3b4e-4f7a-8c1d-2e5b7a9c0d31"
            ]
          },
          "new_expiry_date": {
            "type": "string",
            "description": "New document expiry date in `YYYY-MM-DD` format. This is the only KYC field that this request is allowed to change.",
            "example": "2027-01-01"
          }
        }
      },
      "OpenApiEntityDocumentUpdateRequestItem": {
        "type": "object",
        "properties": {
          "can_submit": {
            "type": "boolean",
            "description": "Whether the current status allows submitting files. This is `true` for `pending_submission` and `rejected` statuses.",
            "example": true
          },
          "document_type": {
            "type": "string",
            "description": "Document type: `business_registration` for an entity document, or `identity_document` for an entity person document.",
            "enum": [
              "business_registration",
              "identity_document"
            ],
            "example": "business_registration"
          },
          "entity_id": {
            "type": "string",
            "description": "Entity that owns this request. This is the sub-account ID; the webhook top-level `accountId` is the main customer `white_label_id`.",
            "example": "6b547429-942d-4dd4-b8c7-a4c082efe061"
          },
          "expiry_date": {
            "type": "string",
            "description": "Current expiry date of the document in `YYYY-MM-DD` format. This field is read-only.",
            "example": "2027-01-01"
          },
          "reject_reason": {
            "type": "string",
            "description": "Reason for rejection. This field is present only when `status` is `rejected`.",
            "example": "The uploaded document has expired"
          },
          "status": {
            "type": "string",
            "description": "Request status: `pending_submission`, `in_review`, `rejected`, or `completed`.",
            "enum": [
              "pending_submission",
              "in_review",
              "rejected",
              "completed"
            ],
            "example": "pending_submission"
          },
          "update_request_id": {
            "type": "string",
            "description": "Update request ID (ticket UUID). This value is also used as the `id` path parameter for submission.",
            "example": "9f1c6d2a-3b4e-4f7a-8c1d-2e5b7a9c0d31"
          }
        }
      }
    }
  }
}
```