---
title: "PUT /api/app/voucher/{id}"
method: PUT
path: "/api/app/voucher/{id}"
tags: ["Voucher"]
---

# PUT /api/app/voucher/{id}

`PUT /api/app/voucher/{id}`

## Request

- Base URL: `https://api.khaasfood.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.khaasfood.com/api/app/voucher/{id}`
- Auth: OAuth 2
  - Authorization code: `https://api.khaasfood.com/connect/authorize`
  - Token URL: `https://api.khaasfood.com/connect/token`

## Path parameters

- `id` string, uuid, required

## Request body

- WafiAbpAccountingVouchersDtosUpdateVoucherDto
  - `voucherNumber` string, required
  - `voucherType` 1 | 2 | 3 | 4 | 5 | 6, required
  - `referenceNumber` string, nullable
  - `voucherDetails` WafiAbpAccountingVoucherDetailsDtosUpdateVoucherDetailDto[], nullable
    - `serial` integer
    - `accountId` string, uuid, required
    - `debitAmount` number, double
    - `creditAmount` number, double
    - `note` string, nullable
    - `voucherId` string, uuid, nullable
  - `dateTime` string, date-time
  - `description` string, nullable
  - `selectedAccount` string, uuid, nullable
  - `entryBy` string, uuid, required
  - `isExternalCreate` boolean
  - `referenceType` 1 | 2 | 3 | 4 | 5 | 6
  - `referenceId` string, nullable
  - `projectId` string, uuid, nullable

## Response `200`

Success

- WafiAbpAccountingVouchersDtosVoucherDto
  - `extraProperties` object, nullable
  - `id` string, uuid
  - `creationTime` string, date-time
  - `creatorId` string, uuid, nullable
  - `lastModificationTime` string, date-time, nullable
  - `lastModifierId` string, uuid, nullable
  - `voucherNumber` string, nullable
  - `voucherType` 1 | 2 | 3 | 4 | 5 | 6
  - `voucherTypeString` string, nullable
  - `referenceNumber` string, nullable
  - `voucherDetails` WafiAbpAccountingVoucherDetailsDtosVoucherDetailDto[], nullable
    - `id` string, uuid
    - `creationTime` string, date-time
    - `creatorId` string, uuid, nullable
    - `lastModificationTime` string, date-time, nullable
    - `lastModifierId` string, uuid, nullable
    - `serial` integer
    - `accountId` string, uuid, required
    - `accountName` string, nullable
    - `debitAmount` number, double
    - `creditAmount` number, double
    - `debitAmountString` string, nullable
    - `creditAmountString` string, nullable
    - `note` string, nullable
    - `balance` number, double
    - `balanceString` string, nullable
  - `dateTime` string, date-time
  - `dateTimeString` string, nullable
  - `description` string, nullable
  - `isApproved` boolean
  - `selectedAccount` string, uuid, nullable
  - `accountName` string, nullable
  - `isApprovedString` string, nullable
  - `approvedTime` string, nullable
  - `approvedDateTime` string, date-time, nullable
  - `entryBy` string, uuid, nullable
  - `approvedBy` string, uuid, nullable
  - `operatorName` string, nullable
  - `approverName` string, nullable
  - `totalAmount` number, double
  - `totalAmountString` string, nullable
  - `isExistVoucherNumber` boolean
  - `isExternalCreate` boolean
  - `projectId` string, uuid, nullable
  - `projectName` string, nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Server Error
- `501`: Server Error

---

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