---
title: "Anular orden de compra"
method: POST
path: "/purchase-orders/{id}/void"
tags: ["Órdenes de compra"]
---

# Anular orden de compra

`POST /purchase-orders/{id}/void`

## Request

- Base URL: `https://api.alegra.com/api/v1`
- URL: `https://api.alegra.com/api/v1/purchase-orders/{id}/void`
- Auth: HTTP basic

Este endpoint permite anular una orden de compra registrada en la aplicación, mediante su identificador.

## Parameters

- `#/paths/~1purchase-orders~1%7Bid%7D/get/parameters/0` (unresolved $ref)

## Response `200`

La órden de compra se anuló exitosamente

- Schema (unresolved $ref)

## Other responses

- `404` (unresolved $ref)

---

[API](https://skmtc.dev/alegra/apis/gastos.md) - [All operations](https://skmtc.dev/alegra/apis/gastos/llms.txt) - [OpenAPI document](https://skmtc.dev/alegra/apis/gastos/revisions/0b1ed7b7581d?raw)
