> ## 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.

POST/cases/\{token}/contents

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.

## URL path parameter

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

## Request body

| Fields | Description |
| - | - |
| document\_category string  Required | The category of the document. The category is also forwarded to Visa. **Allowable Values:**  `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 string  Required | The name for the document. **Allowable Values:**  Must include the file extension, as appropriate for a supported file format: pdf, tiff, or jpeg. |
| document\_data binary  Required | Base64-encoded file. **Allowable Values:**  2 MB max size |

## Create content response body

| Fields | Description |
| - | - |
| token string  Returned | The token identifying the document. **Allowable Values:**  36 char max |
| case\_token string  Returned | The token identifying the dispute case you want to upload documents against. **Allowable Values:**  36 char max |
| document\_name string  Returned | The name of the document. **Allowable Values:**  255 char max |
| document\_category string  Returned | The type of document. **Allowable Values:**  `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 string  Returned | The content type of the document. **Allowable Values:**  `application/pdf`, `image/tiff`, `image/jpeg` |
| network\_processing\_type string  Returned | Indicates the current status of the document at the network: `SUBMITTED` – Indicates it has been submitted to the network using the Dispute Case Transition or Network Dispute Transition endpoint. `RECEIVED` – Indicates that the document has been downloaded from the network, which occurs when the acquirer uploaded a document to support their claim. **Allowable Values:**  `SUBMITTED`, `RECEIVED` |
| network\_processing\_phase string  Returned | Indicates the status of the document in the dispute lifecycle. **Allowable Values:**  `INITIATED`, `REPRESENTMENT`, `PRE_ARBITRATION` |
| network\_processing\_time datetime  Returned | The date and time when the document has either been submitted by the user or received from the network. **Allowable Values:**  Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ |
| created\_time datetime  Returned | The date and time when the dispute was created. **Allowable Values:**  Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ |
| updated\_time datetime  Returned | The date and time when the dispute was last modified. **Allowable Values:**  Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ |
| download\_link string  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. **Allowable Values:**  A valid URI. |

## Sample request body

```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--
```

## Sample response body

```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](https://www.marqeta.com/docs/core-api/disputes-mastercard/dispute-case-content-mastercard/create-dispute-case-content-mastercard.md)
- [Create dispute case transition](https://www.marqeta.com/docs/core-api/disputes-mastercard/dispute-case-transitions-mastercard/create-dispute-case-transition-mastercard.md)
- [Dispute Case Content (PULSE) Overview](https://www.marqeta.com/docs/core-api/disputes-pulse/dispute-case-content-pulse.md)
- [Dispute Case Content (Visa) Overview](https://www.marqeta.com/docs/core-api/disputes-visa/dispute-case-content-visa.md)
- [Dispute Case Content (Mastercard) Overview](https://www.marqeta.com/docs/core-api/disputes-mastercard/dispute-case-content-mastercard.md)
