---
search:
  tags:
    - paymentRequests
    - POST
seo:
  description: >-
    Reference for the POST /v1/payment-requests/{paymentRequestId}/collect
    endpoint in the Vortex Payments API.
sidebar:
  label: POST /v1/payment-requests/{paymentRequestId}/collect
  badge: POST
title: POST /v1/payment-requests/{paymentRequestId}/collect
type: openapi-operation
---
`POST /v1/payment-requests/{paymentRequestId}/collect`

**curl**

```bash
curl "https://api.vortex.nyc/v1/payment-requests/{paymentRequestId}/collect?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"paymentMethodId":"pm_123"}'
```

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `paymentRequestId` (string | null)
- `paymentMethodId` (string | null)
- `idempotencyKey` (string | null)
- `source` (string | null)
- `fraudSessionId` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "paymentRequestId": "string",
  "paymentMethodId": "string",
  "idempotencyKey": "string",
  "source": "dunning",
  "fraudSessionId": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "paymentRequest": {
      "paymentRequestId": "string",
      "customerId": "string",
      "billingAccountId": "string",
      "status": "open",
      "currency": "string",
      "amountRequested": 0,
      "amountPaid": 0,
      "amountRemaining": 0,
      "invoiceCount": 0,
      "attemptCount": 0,
      "createdByType": "system",
      "createdByRef": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "lastAttemptStatus": "succeeded",
      "lastAttemptError": "string",
      "lastPaymentIntentId": "string",
      "lastPaymentId": "string",
      "dueAt": "string",
      "expiresAt": "string",
      "lastAttemptedAt": "string",
      "paidAt": "string",
      "canceledAt": "string"
    },
    "invoices": [
      {
        "invoiceId": "string",
        "customerId": "string",
        "billingAccountId": "string",
        "status": "draft",
        "currency": "string",
        "subtotal": 0,
        "discountTotal": 0,
        "taxTotal": 0,
        "total": 0,
        "amountPaid": 0,
        "amountRemaining": 0,
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "subscriptionId": "string",
        "creditNoteTotal": 0,
        "customerBalanceAppliedTotal": 0,
        "periodStartAt": "string",
        "periodEndAt": "string",
        "issuedAt": "string",
        "dueAt": "string",
        "finalizedAt": "string",
        "voidedAt": "string",
        "createdAt": "string",
        "updatedAt": "string"
      }
    ],
    "links": [
      {
        "paymentRequestId": "string",
        "invoiceId": "string",
        "customerId": "string",
        "billingAccountId": "string",
        "currency": "string",
        "amountRequested": 0,
        "amountRemainingAtCreation": 0,
        "appliedAt": "string"
      }
    ]
  },
  "requestId": "string"
}
```
