---
search:
  tags:
    - hosted
    - POST
seo:
  description: >-
    Hosted merchant-portal action door — auth is the portal link token in the…
    Reference for the POST /merchant-portal/{tail} endpoint in the Vortex
    Payments API.
sidebar:
  label: POST /merchant-portal/*
  badge: POST
title: POST /merchant-portal/*
type: openapi-operation
---
Hosted merchant-portal action door — auth is the portal link token in the path. POST accepts the declared action union (MerchantPortalActionRequest) and answers the declared result envelope (MerchantPortalActionResponse); a bare `{ ok: true }` or ad-hoc field is a contract violation.

`POST /merchant-portal/{tail}`

**curl**

```bash
curl "https://api.vortex.nyc/merchant-portal/" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"pause-subscription","subscriptionId":"sub_123"}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await postMerchantPortalPrefix({
  client: vortex,
  body: {"action":"pause-subscription","subscriptionId":"sub_123"},
});
```

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

Request body example:

```json
{
  "action": "pause-subscription",
  "subscriptionId": "sub_123"
}
```

**Responses**

- `200` — Success
- `201` — Created
- `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": {
    "hostedInvoiceUrl": "http://example.com"
  }
}
```
