---
title: "Base64 attachment receipt document."
method: POST
path: "/receipts/{id}/attachment/base64"
tags: ["Receipt"]
---

# Base64 attachment receipt document.

`POST /receipts/{id}/attachment/base64`

## Request

- Base URL: `https://openapi.flowaccount.com/v1`
- URL: `https://openapi.flowaccount.com/v1/receipts/{id}/attachment/base64`
- Auth: none declared. Required headers: `Authorization`
- TypeScript: <https://skmtc.dev/flowaccount/apis/flowaccount-open-api/docs/receipts/:id/attachment/base64/post.ts> (a function with typed inputs; its response is checked against the schema)

แนบไฟล์ รูปภาพ หรือ เอกสารที่เกี่ยวข้องในรูปแบบ base64 ในเอกสารใบเสร็จรับเงิน ตามเลขที่เอกสารที่ต้องการ

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required

## Request body

- AttachmentBase64
  - `files` object[]
    - `fileName` string: ชื่อไฟล์แนบเอกสารและนามสกุลไฟล์
    - `base64Data` string: เนื้อหาไฟล์ในรูปแบบ base64

## Response `200`

200 response

- AttachmentBase64Response
  - `status` boolean: action success
  - `message` string: error message
  - `code` integer: error code
  - `data` object[]: ข้อมูลไฟล์แนบเอกสาร
    - `attachmentId` integer: เลข Id ไฟล์แนบเอกสาร
    - `attachmentName` string: ชื่อไฟล์แนบเอกสาร
    - `createdOn` string, date: วันที่แนบไฟล์เอกสาร รูปแบบ yyyy-MM-dd <br> <ex>Example: 2021-01-01</ex>
    - `orderNumber` integer: ลำดับไฟล์แนบเอกสาร
    - `isDisplay` boolean: สถานะการแสดงไฟล์แนบเอกสาร
    - `attachmentPath` string: path ที่อยู่ไฟล์แนบเอกสาร

## Other responses

- `401`: 401 response
- `500`: 500 response

---

[API](https://skmtc.dev/flowaccount/apis/flowaccount-open-api.md) - [All operations](https://skmtc.dev/flowaccount/apis/flowaccount-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowaccount/apis/flowaccount-open-api/revisions/4ba3d3ca5bd5?raw)
