# Upload or replace a receipt

Multipart file for an expense the caller owns. image/jpeg, image/png, image/webp, or application/pdf, at most 8 MB. The bytes are checked against the declared type. Replacing a receipt deletes the previous object. 503 when object storage is not configured.

Canonical: https://easerix.com/docs/developers/api/croncrunch/expenses/uploadExpenseReceipt

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="croncrunch" operations={[{"path":"/v1/expenses/{id}/receipt","method":"post"}]} />
    </>
  );
}
