# Documents source: https://developer.mastercard.com/mastercom-extended/documentation/use_cases/document/index.md ## How managing documents works {#how-managing-documents-works} The overview diagram demonstrates the process of an acquirer or issuer managing documents for dispute events. For more information, refer to the [Documents](https://developer.mastercard.com/mastercom-extended/tutorial/documents/index.md) tutorial. Note: In the following graphics, optional steps are denoted with dashed arrows instead of solid arrows. Diagram documents **Step 1:** The issuer or acquirer uploads the documents. **Step 2:** The issuer or acquirer attaches documents to the chargeback (issuers) or the representment (acquirers). **Step 3:** The issuer or acquirer retrieves the document processing details. **Step 4- optional:** The issuer or acquirer retrieves the processed documents. ## Upload documents {#upload-documents} Issuers and acquirers use this endpoint to upload documents. Diagram doc_upload API Reference: `POST /documents` ## Attach documents {#attach-documents} Issuers and acquirers use this endpoint to attach previously uploaded documents to existing dispute events. Diagram doc_attach API Reference: `PUT /claims/{claim_id}/events/{event_id}/documents` ## Retrieve document details {#retrieve-document-details} Issuers and acquirers use this endpoint to get the details of documents attached to their events, including the status. Diagram doc_details API Reference: `GET /documents/attributes` ## Retrieve processed documents {#retrieve-processed-documents} Issuers and acquirers use this endpoint to retrieve processed documents. Diagram doc_retprocessed API Reference: `GET /documents/{document_completed_id}`