---
title: "Changes to Crear compra"
method: POST
path: "/api/v1/purchases"
---

# Changes to Crear compra

`POST /api/v1/purchases`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 3 revisions.

- **2026-11-03** `ed0d46e68fbe`: 8 breaking, 7 warning, 15 info

## Changes

- **2026-11-03** `ed0d46e68fbe`: 8 breaking, 7 warning, 15 info
  - for the `header` request parameter `Idempotency-Key`, the minLength was increased from `0` to `1`
  - for the `header` request parameter `X-Request-Id`, the minLength was increased from `0` to `1`
  - 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`
  - for the `header` request parameter `Idempotency-Key`, the maxLength was set to `255`
  - for the `header` request parameter `X-Request-Id`, the maxLength was set to `255`
  - 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`
  - added the new optional request property `products_returned`
  - added the new `ARS` enum value to the request property `currency`
  - added the new `USD` enum value to the request property `currency`
  - added the non-success response with the status `422`
  - added the non-success response with the status `503`
  - removed the non-success response with the status `412`
  - added the optional property `error/details/items/metadata` to the response with the `400` status
  - added the optional property `error/details/items/metadata` to the response with the `401` status
  - added the optional property `error/details/items/metadata` to the response with the `403` status
  - added the optional property `error/details/items/metadata` to the response with the `409` status
  - added the optional property `error/details/items/metadata` to the response with the `429` status
  - added the optional property `error/details/items/metadata` to the response with the `500` status

---

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