---
title: "Update purchase"
method: PUT
path: "/shops/{SHOP_ID}/purchases/{PURCHASE_ID}"
tags: ["Purchase"]
---

# Update purchase

`PUT /shops/{SHOP_ID}/purchases/{PURCHASE_ID}`

Update purchase

## Path parameters

- `SHOP_ID` integer, required
- `PURCHASE_ID` string, required

## Request body

- object
  - `purchase` object, required
    - `note` string — Note
    - `status` -1 | 0 | 1 | 2 — Status
    - `not_create_transaction` boolean — Not create transaction
    - `auto_create_debts` boolean — Auto create debts
    - `supplier_products_id` integer — Supplier products ID
    - `warehouse_id` string, required — Warehouse ID
    - `change_received_at` boolean — Change received at
    - `received_at` integer — Received at
    - `images` string[] — Purchase images
    - `items` object[] — List of products
      - `imported_price` integer, required — Imported price
      - `quantity` integer — Import quantity
      - `variation_id` string — Variation ID

## Response `200`

Success

- object
  - `success` boolean — Success status

---

[API](https://skmtc.dev/pancake/apis/pancake-pos-open-api.md) · [All operations](https://skmtc.dev/pancake/apis/pancake-pos-open-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pancake/apis/pancake-pos-open-api/revisions/fd00f35fbf21?raw)
