---
search:
  tags:
    - billing
    - POST
seo:
  description: >-
    Refresh a draft invoice. Reference for the POST
    /v1/invoices/{invoiceId}/refresh endpoint in the Vortex Payments API.
sidebar:
  label: Refresh a draft invoice
  badge: POST
title: Refresh a draft invoice
type: openapi-operation
---
`POST /v1/invoices/{invoiceId}/refresh`

**curl**

```bash
curl "https://api.vortex.nyc/v1/invoices/{invoiceId}/refresh?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

**TypeScript**

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

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

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

Request body example:

```json
{}
```

**Responses**

- `200` — Success
- `400` — Bad request, including malformed JSON
- `401` — Missing or invalid API key
- `409` — Conflict, including idempotency body drift
- `422` — Validation failed
- `429` — API key rate limit exceeded
- `default` — Error

Response example, 200:

```json
{
  "data": {},
  "requestId": "string"
}
```
