---
title: "Delete purchase order document."
method: DELETE
path: "/purchases-orders/{id}"
tags: ["Purchase Order"]
---

# Delete purchase order document.

`DELETE /purchases-orders/{id}`

## Request

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

ลบ เอกสารใบสั่งซื้อ ตามเลขที่เอกสารที่ต้องการ <br> ** การลบเอกสาร เอกสารต้องอยู่ในสถานะ รออนุมัติ

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required

## Response `200`

200 response

- DeleteResponse
  - `status` boolean: action success
  - `message` string: error message
  - `code` integer: error code
  - `data` object: data success
    - `deleteStatus` string: Status Delete Document or Product or Contact

## 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)
