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

**curl**

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

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await voidBillingOrderForm({
  client: vortex,
  path: { orderFormId: "..." },
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"reason":"customer declined"},
});
```

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

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

Request body example:

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

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "orderFormId": "string",
    "quoteVersionId": "string",
    "quoteId": "string",
    "customerId": "string",
    "billingAccountId": "string",
    "merchantAccountId": "string",
    "number": "string",
    "status": "generated",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "createdAt": "string",
    "updatedAt": "string",
    "voidReason": "manual",
    "expiresAt": "string",
    "signedAt": "string",
    "signedDocumentRef": "string",
    "voidedAt": "string"
  },
  "requestId": "string"
}
```
