---
search:
  tags:
    - hosted
    - POST
seo:
  description: >-
    Hosted card-update door — begin mints the elements setup session,… Reference
    for the POST /update-payment-method/{tail} endpoint in the Vortex Payments
    API.
sidebar:
  label: >-
    Hosted card-update door — begin mints the elements setup session, confirm
    defaults the attached method and consumes the link
  badge: POST
title: >-
  Hosted card-update door — begin mints the elements setup session, confirm
  defaults the attached method and consumes the link
type: openapi-operation
---
`POST /update-payment-method/{tail}`

**curl**

```bash
curl "https://api.vortex.nyc/update-payment-method/{tail}" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"action":"begin"}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await updateHostedPaymentMethod({
  client: vortex,
  path: { tail: "..." },
  body: {"action":"begin"},
});
```

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

Request body example:

```json
{
  "action": "begin"
}
```

**Responses**

- `200` — Success
- `201` — Created
- `400` — Hosted door error
- `404` — Hosted door error
- `409` — Hosted door error
- `429` — API key rate limit exceeded
- `default` — Hosted door error
