---
title: "Update"
method: PUT
path: "/purchases/{purchase_id}/rows"
tags: ["Purchases"]
---

# Update

`PUT /purchases/{purchase_id}/rows`

Actualizar compra

## Path parameters

- `purchase_id` integer, required

## Headers

- `X-Company-Token` string, required

## Request body

- PurchaseUpdate
  - `proveedor_id` integer, nullable
  - `proveedor` object, nullable
  - `establecimiento_id` integer, nullable
  - `tipo_moneda_id` integer, nullable
  - `fecha_entrega` string, date, nullable
  - `estado_entrega` 'pendiente' | 'parcial' | 'completo'
  - `estado_doc` 'registrado' | 'facturado' | 'anulado'
  - `estado_pago` 'por_pagar' | 'pago_parcial' | 'pagado'
  - `observaciones` string, nullable
  - `fecha_de_emision` union
    - string, date
    - string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/factpro/apis/note-service-api.md) · [All operations](https://skmtc.net/factpro/apis/note-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factpro/note-service-api/revisions/d88e14b2de42/schema)
