---
search:
  tags:
    - paymentReceipts
    - POST
seo:
  description: >-
    Reference for the POST
    /v1/payment-receipts/{paymentReceiptId}/mark-generated endpoint in the
    Vortex Payments API.
sidebar:
  label: POST /v1/payment-receipts/{paymentReceiptId}/mark-generated
  badge: POST
title: POST /v1/payment-receipts/{paymentReceiptId}/mark-generated
type: openapi-operation
---
`POST /v1/payment-receipts/{paymentReceiptId}/mark-generated`

**curl**

```bash
curl "https://api.vortex.nyc/v1/payment-receipts/:paymentReceiptId/mark-generated?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `receiptId` (string | null)
- `fileUrl` (string | null)
- `xmlUrl` (string | null)
- `generatedAt` (string | null)
- `idempotencyKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "receiptId": "string",
  "fileUrl": "string",
  "xmlUrl": "string",
  "generatedAt": "string",
  "idempotencyKey": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "receiptId": "string",
    "receiptNumber": "string",
    "customerId": "string",
    "billingAccountId": "string",
    "invoiceIds": [
      "string"
    ],
    "paymentId": "string",
    "currency": "string",
    "amount": 0,
    "status": "created",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "createdAt": "string",
    "paymentIntentId": "string",
    "fileUrl": "string",
    "xmlUrl": "string",
    "generatedAt": "string"
  },
  "requestId": "string"
}
```
