---
search:
  tags:
    - paymentIntents
    - POST
seo:
  description: >-
    Reference for the POST /v1/payment-intents endpoint in the Vortex Payments
    API.
sidebar:
  label: POST /v1/payment-intents
  badge: POST
title: POST /v1/payment-intents
type: openapi-operation
---
`POST /v1/payment-intents`

**curl**

```bash
curl "https://api.vortex.nyc/v1/payment-intents?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount":4900,"currency":"USD","captureMode":"automatic","paymentMethodId":"pm_123"}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createPaymentIntent({
  client: vortex,
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"amount":4900,"currency":"USD","captureMode":"automatic","paymentMethodId":"pm_123"},
});
```

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `customerProfileId` (string | null)
- `amount` (number, required)
- `currency` (string, required)
- `captureMode` (string, required)
- `paymentMethodId` (string | null)
- `platformPaymentMethodId` (string | null)
- `externalPaymentRef` (string | null)
- `returnUrl` (string | null)
- `statementDescriptor` (string | null)
- `fraudSessionId` (string | null)
- `metadata` (object | null)
- `idempotencyKey` (string | null)
- `platformFeeAmount` (number | null)
- `surcharge` (object | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "customerProfileId": "string",
  "amount": 0,
  "currency": "string",
  "captureMode": "automatic",
  "paymentMethodId": "string",
  "platformPaymentMethodId": "string",
  "externalPaymentRef": "string",
  "returnUrl": "string",
  "statementDescriptor": "string",
  "fraudSessionId": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "idempotencyKey": "string",
  "platformFeeAmount": 0,
  "surcharge": {
    "amount": 0,
    "disclosed": true,
    "cardFunding": "credit"
  }
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "id": "string",
    "paymentId": "string",
    "merchantAccountId": "string",
    "customerProfileId": "string",
    "paymentMethodId": "string",
    "status": "string",
    "amount": 0,
    "currency": "string",
    "requiresAction": true,
    "canCapture": true,
    "canCancel": true,
    "canRetry": true,
    "nextStep": "string",
    "nextActionType": "string",
    "hostedActionUrl": "string",
    "platformFeeAmount": 0,
    "createdAt": "string"
  },
  "requestId": "string"
}
```
