> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create dispute case content

> Upload and store documents related to a dispute, such as evidence for dispute or KYC verification documents.

<div className="mb-4 flex items-center gap-2"><span className="rounded-lg font-bold px-1.5 py-0.5 text-sm leading-5 bg-blue-400/20 text-blue-700 dark:text-blue-400">POST</span><span className="flex items-center gap-0.5 font-mono text-sm"><span className="text-gray-400">/</span><span className="font-medium text-gray-800 dark:text-white">{"cases"}</span><span className="text-gray-400">/</span><span className="font-medium text-gray-800 dark:text-white">{"{token}"}</span><span className="text-gray-400">/</span><span className="font-medium text-gray-800 dark:text-white">{"contents"}</span></span></div>

Upload and store documents related to a dispute, such as evidence for dispute or KYC verification documents.

The supported document formats are pdf, tiff, and jpeg. Each uploaded file is restricted to 2 MB.

<h2 id="_url_path_parameter_2">
  URL path parameter
</h2>

| Fields | Description |
| - | - |
| token<br />string<br />Required | The token that identifies the dispute case.<br />**Allowable Values:**<br />36 char max<br />Send a `GET` request to `/cases` to retrieve dispute case tokens. |

<h2 id="_request_body_2">
  Request body
</h2>

| Fields | Description |
| - | - |
| document\_category<br />string<br />Required | The category of the document. The category is also forwarded to Visa.<br />**Allowable Values:**<br />`AFFIDAVIT_FRAUD`, `AUTHORIZATION_RECORD`, `BANK_STATEMENT`, `CANCELLED_CHECK`, `CARDHOLDER_LETTER`, `CREDIT_VOUCHER`, `FULFILLMENT`, `ISSUER_CERTIFICATION`, `MERCHANT_LETTER`, `NETWORK_DOCUMENT`, `NETWORK_EXHIBIT`, `OTHERS`, `RECEIPT`, `SALES_DRAFT`, `SECOND_OPTION`, `UPDATED_CARDHOLDER_LETTER`, `UPDATED_MERCHANT_LETTER` |
| document\_name<br />string<br />Required | The name for the document.<br />**Allowable Values:**<br />Must include the file extension, as appropriate for a supported file format: pdf, tiff, or jpeg. |
| document\_data<br />binary<br />Required | Base64-encoded file.<br />**Allowable Values:**<br />2 MB max size |

<h2 id="_create_content_response_body">
  Create content response body
</h2>

| Fields | Description |
| - | - |
| token<br />string<br />Returned | The token identifying the document.<br />**Allowable Values:**<br />36 char max |
| case\_token<br />string<br />Returned | The token identifying the dispute case you want to upload documents against.<br />**Allowable Values:**<br />36 char max |
| document\_name<br />string<br />Returned | The name of the document.<br />**Allowable Values:**<br />255 char max |
| document\_category<br />string<br />Returned | The type of document.<br />**Allowable Values:**<br />`AFFIDAVIT_FRAUD`, `AUTHORIZATION_RECORD`, `BANK_STATEMENT`, `CANCELLED_CHECK`, `CARDHOLDER_LETTER`, `CREDIT_VOUCHER`, `FULFILLMENT`, `ISSUER_CERTIFICATION`, `MERCHANT_LETTER`, `NETWORK_DOCUMENT`, `NETWORK_EXHIBIT`, `OTHERS`, `RECEIPT`, `SALES_DRAFT`, `SECOND_OPTION`, `UPDATED_CARDHOLDER_LETTER`, `UPDATED_MERCHANT_LETTER` |
| document\_content\_type<br />string<br />Returned | The content type of the document.<br />**Allowable Values:**<br />`application/pdf`, `image/tiff`, `image/jpeg` |
| network\_processing\_type<br />string<br />Returned | Indicates the current status of the document at the network:<br />`SUBMITTED` – Indicates it has been submitted to the network using the Dispute Case Transition or Network Dispute Transition endpoint.<br />`RECEIVED` – Indicates that the document has been downloaded from the network, which occurs when the acquirer uploaded a document to support their claim.<br />**Allowable Values:**<br />`SUBMITTED`, `RECEIVED` |
| network\_processing\_phase<br />string<br />Returned | Indicates the status of the document in the dispute lifecycle.<br />**Allowable Values:**<br />`INITIATED`, `REPRESENTMENT`, `PRE_ARBITRATION` |
| network\_processing\_time<br />datetime<br />Returned | The date and time when the document has either been submitted by the user or received from the network.<br />**Allowable Values:**<br />Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ |
| created\_time<br />datetime<br />Returned | The date and time when the dispute was created.<br />**Allowable Values:**<br />Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ |
| updated\_time<br />datetime<br />Returned | The date and time when the dispute was last modified.<br />**Allowable Values:**<br />Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ |
| download\_link<br />string<br />Returned | The link to download the file if it is included in the request. This only applies to the `GET` case content by token endpoint.<br />**Allowable Values:**<br />A valid URI. |

<h2 id="_sample_request_body_4">
  Sample request body
</h2>

```json JSON lines wrap theme={null}
Content-Type: multipart/form-data; boundary=marqeta_file_separator
Cache-Control: no-cache

--marqeta_file_separator
Content-Type: application/json; Content-Disposition: form-data; name="body"

{
  "document_category": "RECEIPT",
  "document_name": "receipt.pdf",
  "document_data": "string"
}

--marqeta_file_separator
Content-Type: image/jpeg; Content-Disposition: form-data; name="file"

file=@/Users/username/Downloads/online-receipt-location.jpg

--marqeta_file_separator--
```

<h2 id="_sample_response_body_10">
  Sample response body
</h2>

```json JSON lines wrap theme={null}
{
  "token": "my_content_token",
  "case_token": "my_case_token",
  "document_name": "string",
  "document_category": "RECEIPT",
  "document_content_type": "application/pdf",
  "network_processing_type": "SUBMITTED",
  "network_processing_phase": "INITIATED",
  "network_processing_time": "2022-02-01T20:22:34.913Z",
  "created_time": "2022-02-01T20:22:34.913Z",
  "updated_time": "2022-02-01T20:22:34.913Z",
  "download_link": "download_link"
}
```


## Related topics

- [Create dispute case content](/docs/core-api/disputes-pulse/create-case-content.md)
- [Create dispute case transition](/docs/core-api/disputes-visa/create-case-transition.md)
- [Disputes (PULSE) Overview](/docs/core-api/disputes-pulse.md)
- [Disputes (Mastercard) Overview](/docs/core-api/disputes-mastercard.md)
- [Disputes (Visa) Overview](/docs/core-api/disputes-visa.md)
