---
title: "Expire a Charge"
method: POST
path: "/v1/charge/api-key/{token}/expire"
tags: ["Charge"]
---

# Expire a Charge

`POST /v1/charge/api-key/{token}/expire`

Merchants can programmatically expire an unpaid charge via the API. This is useful when you want to cancel a pending checkout session—for example, the order was cancelled, the customer abandoned the session, or you want to invalidate the payment link.

The charge must not have a successful or pending transaction. The `token` path parameter is the charge token—the same value as in the charge URL path and the `token` field on the charge object.

## Path parameters

- `token` string, required

## Query parameters

- `apiKey` string, required

## Response `204`

The charge was expired successfully. No response body.

## Other responses

- `400` — The charge cannot be expired because it has a successful or pending transaction.
- `401` — Invalid API key, or the API key is not allowed to expire this charge.
- `404` — No charge exists for the given token.

---

[API](https://skmtc.net/hel/apis/helio-open-api.md) · [All operations](https://skmtc.net/hel/apis/helio-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hel/helio-open-api/revisions/5732beb2d39f/schema)
