---
title: "Release Expired Pending Purchases Endpoint"
method: POST
path: "/internal/release-expired-pending-purchases"
tags: ["Internal", "Internal"]
---

# Release Expired Pending Purchases Endpoint

`POST /internal/release-expired-pending-purchases`

## Request

- Base URL: `https://api.call2me.app`
- URL: `https://api.call2me.app/internal/release-expired-pending-purchases`
- Auth: HTTP bearer

Mark pending_number_purchases with expires_at < NOW() as 'expired'.

This frees the soft lock on the phone number so someone else can buy it.
Call via Cloud Scheduler every 5 minutes (TTL is 30 min so granularity is fine).

## Headers

- `x-internal-key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/call2me/apis/call2me-api.md) · [All operations](https://skmtc.dev/call2me/apis/call2me-api/llms.txt) · [OpenAPI document](https://skmtc.dev/call2me/apis/call2me-api/revisions/3951f9b7e47d?raw)
