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

**curl**

```bash
curl "https://api.vortex.nyc/v1/payment-hardware-orders/:paymentHardwareOrderId" \
  -X PATCH \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await updatePaymentHardwareOrder({
  client: vortex,
  path: { paymentHardwareOrderId: "..." },
  body: {...},
});
```

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

- `trackingNumberMasked` (any | null)
- `environment` (string | null)
- `merchantAccountId` (string | null)
- `status` (string, required)
- `providerActionReason` (string | null)
- `providerOrderRef` (string | null)
- `shipment` (object | null)
- `terminalLocationId` (string | null)
- `terminalReaderId` (string | null)

Request body example:

```json
{
  "trackingNumberMasked": {},
  "environment": "sandbox",
  "merchantAccountId": "string",
  "status": "draft",
  "providerActionReason": "string",
  "providerOrderRef": "string",
  "shipment": {
    "carrier": "string",
    "trackingNumber": "string",
    "trackingNumberMasked": "string",
    "shippedAt": "string",
    "deliveredAt": "string"
  },
  "terminalLocationId": "string",
  "terminalReaderId": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "id": "string",
    "merchantAccountId": "string",
    "status": "draft",
    "lines": [
      {
        "skuId": "string",
        "quantity": 0,
        "unitAmount": 0,
        "currency": "string"
      }
    ],
    "shippingAddress": {
      "line1": "string",
      "line2": "string",
      "city": "string",
      "region": "string",
      "postalCode": "string",
      "country": "string"
    },
    "contactEmail": "string",
    "contactPhone": "string",
    "providerAction": {
      "rail": "device_store",
      "action": "place_order_in_provider_portal",
      "reason": "string"
    },
    "shipment": {
      "status": "not_shipped",
      "carrier": "string",
      "trackingNumberMasked": "string",
      "shippedAt": "string",
      "deliveredAt": "string"
    },
    "nextAction": "none",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "createdAt": "string",
    "updatedAt": "string",
    "orderedAt": "string",
    "confirmedAt": "string",
    "activatedAt": "string",
    "canceledAt": "string",
    "terminalLocationId": "string",
    "terminalReaderId": "string"
  },
  "requestId": "string"
}
```
