---
title: "Changes to Actualizar metadatos de venta"
method: PATCH
path: "/api/v1/sales/{sale_id}"
---

# Changes to Actualizar metadatos de venta

`PATCH /api/v1/sales/{sale_id}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 3 revisions.

- **2026-11-03** `ed0d46e68fbe`: 4 breaking, 3 warning, 23 info

## Changes

- **2026-11-03** `ed0d46e68fbe`: 4 breaking, 3 warning, 23 info
  - the `integration_id/anyOf[subschema #1]/` request property's minLength was increased from `0` to `1`
  - the `integration_source/anyOf[subschema #1]/` request property's minLength was increased from `0` to `1`
  - the response property `data/accounting/journal_entries_url` became nullable for the status `200`
  - the response property `data/document/file/url` became nullable for the status `200`
  - the `integration_id/anyOf[subschema #1]/` request property's maxLength was set to `255`
  - the `integration_source/anyOf[subschema #1]/` request property's maxLength was set to `120`
  - the `notes/anyOf[subschema #1]/` request property's maxLength was set to `1000`
  - added the new optional request property `metafields`
  - added the non-success response with the status `503`
  - added the optional property `data/invoice_pdf` to the response with the `200` status
  - added the optional property `data/metafields` to the response with the `200` status
  - added the optional property `data/tags` to the response with the `200` status
  - 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 `404` 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
  - response property `data/accounting/journal_entries_url` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/document/file/url` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - added 'propertyNames' constraint to the `data/amounts` response property for the status `200`
  - added 'propertyNames' constraint to the `data/applications` response property for the status `200`
  - added 'propertyNames' constraint to the `data/audit` response property for the status `200`
  - added 'propertyNames' constraint to the `data/customer/anyOf[subschema #1]/` response property for the status `200`
  - added 'propertyNames' constraint to the `data/fiscal` response property for the status `200`
  - added 'propertyNames' constraint to the `data/integration` response property for the status `200`
  - added 'propertyNames' constraint to the `data/items/items/` response property for the status `200`
  - added 'propertyNames' constraint to the `data/payments` response property for the status `200`
  - added 'propertyNames' constraint to the `data/reverses_voucher/anyOf[subschema #1]/` response property for the status `200`

---

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