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

**curl**

```bash
curl "https://api.vortex.nyc/v1/payment-method-setup-sessions" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `ownerType` (string, required)
- `ownerId` (string, required)
- `methodType` (string, required)
- `setAsDefault` (boolean | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "ownerType": "customer",
  "ownerId": "string",
  "methodType": "string",
  "setAsDefault": true
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "id": "string",
    "environment": "sandbox",
    "merchantAccountId": "string",
    "ownerType": "customer",
    "ownerId": "string",
    "methodType": "string",
    "status": "string",
    "clientSecret": "string",
    "setAsDefault": true,
    "expiresAt": "string",
    "createdAt": "string",
    "updatedAt": "string"
  },
  "requestId": "string"
}
```
