---
title: "Changes to Actualizar compra"
method: PUT
path: "/api/v1/purchases/{purchase_id}"
---

# Changes to Actualizar compra

`PUT /api/v1/purchases/{purchase_id}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 3 revisions.

- **2026-11-03** `ed0d46e68fbe`: 32 breaking, 5 warning, 49 info

## Changes

- **2026-11-03** `ed0d46e68fbe`: 32 breaking, 5 warning, 49 info
  - removed the enum value `DOL` of the request property `currency`
  - removed the enum value `PES` of the request property `currency`
  - the `customs_dispatch_number` request property's minLength was increased from `0` to `1`
  - the `items/items/name` request property's minLength was increased from `0` to `1`
  - the `pdf_path` request property's minLength was increased from `0` to `1`
  - the `supplier_invoice_number` request property's minLength was increased from `0` to `1`
  - the response property `data/account_date` became nullable for the status `200`
  - the response property `data/accounting/journal_entries_url` became nullable for the status `200`
  - the response property `data/customs_dispatch_number` became nullable for the status `200`
  - the response property `data/document/url` became nullable for the status `200`
  - the response property `data/due_date` became nullable for the status `200`
  - the response property `data/invoice_date` became nullable for the status `200`
  - the response property `data/items/items/discount_percentage` became nullable for the status `200`
  - the response property `data/items/items/is_exempt` became nullable for the status `200`
  - the response property `data/items/items/name` became nullable for the status `200`
  - the response property `data/items/items/product/anyOf[subschema #1]/name` became nullable for the status `200`
  - the response property `data/items/items/product/anyOf[subschema #1]/sku` became nullable for the status `200`
  - the response property `data/items/items/purchase_order/anyOf[subschema #1]/formatted_order_number` became nullable for the status `200`
  - the response property `data/notes` became nullable for the status `200`
  - the response property `data/pdf_path` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/address` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/city` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/email` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/name` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/payment_term_id` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/phone` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/postal_code` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/province_id` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/tax_category` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/tax_id` became nullable for the status `200`
  - the response property `data/supplier/anyOf[subschema #1]/tax_id_type` became nullable for the status `200`
  - the response property `data/supplier_invoice_number` became nullable for the status `200`
  - the `customs_dispatch_number` request property's maxLength was set to `32`
  - the `items/items/name` request property's maxLength was set to `255`
  - the `notes` request property's maxLength was set to `1000`
  - the `pdf_path` request property's maxLength was set to `2000`
  - the `supplier_invoice_number` request property's maxLength was set to `120`
  - added the new optional request property `cost_target_purchase_id`
  - added the new optional request property `items/items/customs_charge_in_taxable_base`
  - added the new optional request property `items/items/is_customs_charge`
  - …46 more

---

[Operation](https://skmtc.dev/lapyme/apis/la-pyme-api/docs/api/v1/purchases/:purchase_id/put.md) - [API](https://skmtc.dev/lapyme/apis/la-pyme-api.md) - [Page](https://skmtc.dev/lapyme/apis/la-pyme-api/changes/api/v1/purchases/:purchase_id/put)
