---
search:
  tags:
    - orderForms
    - POST
seo:
  description: >-
    Reference for the POST
    /v1/order-forms/{orderFormId}/hosted-link/{hostedLinkId}/revoke endpoint in
    the Vortex Payments API.
sidebar:
  label: POST /v1/order-forms/{orderFormId}/hosted-link/{hostedLinkId}/revoke
  badge: POST
title: POST /v1/order-forms/{orderFormId}/hosted-link/{hostedLinkId}/revoke
type: openapi-operation
---
`POST /v1/order-forms/{orderFormId}/hosted-link/{hostedLinkId}/revoke`

**curl**

```bash
curl "https://api.vortex.nyc/v1/order-forms/:orderFormId/hosted-link/:hostedLinkId/revoke?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

```ts
import { revokeOrderFormHostedLink, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await revokeOrderFormHostedLink({
  client: vortex,
  path: { orderFormId: "...", hostedLinkId: "..." },
  query: { environment: "...", merchantAccountId: "..." },
  body: {...},
});
```

**Request body** (`application/json`, required)

- `environment` (string | null)
- `merchantAccountId` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "linkId": "string",
    "orderFormId": "string",
    "tokenHash": "string",
    "status": "active",
    "createdAt": "string",
    "expiresAt": "string",
    "revokedAt": "string"
  },
  "requestId": "string"
}
```
