def generate_action_document_item(document_id: str, **kwargs):
    """
    Args:
        documentId str: Document ID
        **kwargs: Metadata for the document dictionary. Some parameters are required.
    
    Keyword Args:
        reason str: required
        reasonCode str or null: optional
        companyId str or null: optional
        branchId str or null: optional
        documentType str or null: optional
        documentReferenceID str or null: optional
    """
    return { "documentId": document_id, "metadata": kwargs }