---
title: "Upload chargeback file"
method: POST
path: "/chargebacks/{chargebackId}/files"
tags: ["Chargebacks"]
---

# Upload chargeback file

`POST /chargebacks/{chargebackId}/files`

Upload and validate one evidence file for this chargeback

## Path parameters

- `chargebackId` string, required

## Headers

- `Idempotency-Key` string, required
- `X-Instance-ID` string, nullable

## Response `201`

Successful Response

- object
  - `data` object, required
    - `id` string, required
    - `type` 'chargebackEvidenceFile', required
    - `attributes` object, required
      - `filename` string, required
      - `contentType` 'application/pdf' | 'image/jpeg' | 'image/png', required
      - `sizeBytes` integer, required
      - `pageCount` integer, required — Number of pages this file contributes to the evidence packet.
      - `createdAt` string, date-time, required — When the file was uploaded and validated.
    - `relationships` object, required
      - `chargeback` object, required
        - `data` object, required — Related resource identifier.
          - `type` 'chargeback', required — Resource type. Always `chargeback`.
          - `id` string, required

## Other responses

- `400` — Validation Error
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found. Returned when the resource does not exist, or when it exists but is not accessible to your account. The two cases are intentionally indistinguishable, so that resource IDs cannot be enumerated by probing.
- `409` — Conflict
- `422` — Validation Error. The response contains one error object for each invalid request value.
- `428` — Precondition Required
- `429` — Too Many Requests
- `500` — Internal Server Error
- `501` — Not Implemented
- `502` — Bad Gateway
- `503` — Service Unavailable

## Changes

- **2026-09-19** `6e52d1bd0054` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/natural/apis/natural-api/changes/chargebacks/:chargebackId/files/post.md)

---

[API](https://skmtc.dev/natural/apis/natural-api.md) · [All operations](https://skmtc.dev/natural/apis/natural-api/llms.txt) · [OpenAPI document](https://skmtc.dev/natural/apis/natural-api/revisions/ca3882d75a00?raw)
