---
title: "Expire Order"
method: PATCH
path: "/v1/orders/{order_id}/expire"
tags: ["Orders"]
---

# Expire Order

`PATCH /v1/orders/{order_id}/expire`

Expires the order.

The expiration timestamp is set to the current time, which makes the order
impossible to pay.

Only orders with status `created` or `reattempted` can be expired.
Attempting to expire an order in any other status will result in an error.

## Path parameters

- `order_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/aghanim/apis/aghanim-server-to-server-api.md) · [All operations](https://skmtc.net/aghanim/apis/aghanim-server-to-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aghanim/aghanim-server-to-server-api/versions/0c1b4ac1865b/schema)
