---
title: "Changes to Obtener compra por ID"
method: GET
path: "/api/v1/purchases/{purchase_id}"
---

# Changes to Obtener compra por ID

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

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 3 revisions.

- **2026-11-03** `ed0d46e68fbe`: 26 breaking, 39 info

## Changes

- **2026-11-03** `ed0d46e68fbe`: 26 breaking, 39 info
  - 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`
  - added the non-success response with the status `503`
  - 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 `429` status
  - added the optional property `error/details/items/metadata` to the response with the `500` status
  - response property `data/account_date` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - 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/customs_dispatch_number` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/document/url` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/due_date` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/invoice_date` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/items/items/discount_percentage` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/items/items/is_exempt` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - …25 more

---

[Operation](https://skmtc.dev/lapyme/apis/la-pyme-api/docs/api/v1/purchases/:purchase_id/get.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/get)
