---
title: "Uploads a document to a charge"
method: POST
path: "/charges/{charge_id}"
tags: ["Charges"]
---

# Uploads a document to a charge

`POST /charges/{charge_id}`

## Request

- Base URL: `https://api.rillet.com`
- URL: `https://api.rillet.com/charges/{charge_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/rillet/apis/rillet-accounting-api/docs/charges/:charge_id/post.ts> (a function with typed inputs; its response is checked against the schema)

Attaches a receipt (PDF, TXT, JPG/JPEG, PNG, GIF, XLSX/XLS, DOCX/DOC, CSV, RTF, TIFF/TIF, BMP, Pages, Numbers, PPTX, or PPT) to an existing charge using multipart form data with a single file part.
PDF, JPEG, and PNG keep content-signature validation and do not require a matching filename extension.
Every other format requires an allowed filename extension and either a matching content type or application/octet-stream.
Files detected as HTML are rejected regardless of their filename or declared content type.

## Path parameters

- `charge_id` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary, required

## Response `204`

No content

## Other responses

- `default`: Error

## Changes

- **2026-11-03** `c393d0102005`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rillet/apis/rillet-accounting-api/changes/charges/:charge_id/post.md)

---

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