---
search:
  tags:
    - hosted
    - POST
seo:
  description: >-
    Hosted customer-portal action door — auth is the portal link token in the…
    Reference for the POST /customer-portal/{tail} endpoint in the Vortex
    Payments API.
sidebar:
  label: POST /customer-portal/*
  badge: POST
title: POST /customer-portal/*
type: openapi-operation
---
Hosted customer-portal action door — auth is the portal link token in the path. POST accepts CustomerPortalActionRequest and answers CustomerPortalActionResponse.

`POST /customer-portal/{tail}`

**curl**

```bash
curl "https://api.vortex.nyc/customer-portal/" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"set-default-payment-method","paymentMethodId":"pm_123"}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await postCustomerPortalPrefix({
  client: vortex,
  body: {"action":"set-default-payment-method","paymentMethodId":"pm_123"},
});
```

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

Request body example:

```json
{
  "action": "set-default-payment-method",
  "paymentMethodId": "pm_123"
}
```

**Responses**

- `200` — Success
- `400` — Bad request, including malformed JSON
- `401` — Missing or invalid API key
- `403` — Authenticated key cannot access this resource or environment
- `404` — Route or scoped resource was not found
- `409` — Conflict, including idempotency body drift
- `422` — Validation failed
- `429` — API key rate limit exceeded
- `default` — Error

Response example, 200:

```json
{
  "data": {
    "view": {},
    "message": {}
  }
}
```
