---
search:
  tags:
    - orders
    - PATCH
seo:
  description: >-
    Reference for the PATCH /v1/orders/{orderId} endpoint in the Vortex Payments
    API.
sidebar:
  label: PATCH /v1/orders/{orderId}
  badge: PATCH
title: PATCH /v1/orders/{orderId}
type: openapi-operation
---
`PATCH /v1/orders/{orderId}`

**curl**

```bash
curl "https://api.vortex.nyc/v1/orders/{orderId}?environment=sandbox&merchantAccountId=..." \
  -X PATCH \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"executionMode":"execute_in_vortex","executeAt":"2026-10-15T00:00:00.000Z"}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await updateBillingOrder({
  client: vortex,
  path: { orderId: "..." },
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"executionMode":"execute_in_vortex","executeAt":"2026-10-15T00:00:00.000Z"},
});
```

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `orderId` (string | null)
- `executionMode` (string | null)
- `executeAt` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "orderId": "string",
  "executionMode": "execute_in_vortex",
  "executeAt": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "order": {
      "orderId": "string",
      "orderFormId": "string",
      "quoteId": "string",
      "quoteVersionId": "string",
      "customerId": "string",
      "billingAccountId": "string",
      "merchantAccountId": "string",
      "number": "string",
      "status": "created",
      "executionRecord": {
        "subscriptionIds": [
          "string"
        ],
        "appliedCouponIds": [
          "string"
        ],
        "errors": [
          "string"
        ],
        "executedAt": "string",
        "executionMode": "execute_in_vortex",
        "invoiceId": "string",
        "amendmentCredit": {
          "invoiceId": "string",
          "currency": "string",
          "lines": [
            {
              "priceId": "string",
              "amount": 0,
              "description": "string",
              "invoiceLineId": "string"
            }
          ]
        },
        "creditNoteIds": [
          "string"
        ]
      },
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "createdAt": "string",
      "updatedAt": "string",
      "amendsOrderId": "string",
      "executionMode": "execute_in_vortex",
      "executeAt": "string",
      "executedAt": "string",
      "customFieldData": {
        "property1": "string",
        "property2": "string"
      }
    }
  },
  "requestId": "string"
}
```
