---
search:
  tags:
    - merchantAccounts
    - PUT
seo:
  description: >-
    Reference for the PUT /v1/merchant-accounts/{merchantAccountId}/platform-fee
    endpoint in the Vortex Payments API.
sidebar:
  label: PUT /v1/merchant-accounts/{merchantAccountId}/platform-fee
  badge: PUT
title: PUT /v1/merchant-accounts/{merchantAccountId}/platform-fee
type: openapi-operation
---
`PUT /v1/merchant-accounts/{merchantAccountId}/platform-fee`

**curl**

```bash
curl "https://api.vortex.nyc/v1/merchant-accounts/:merchantAccountId/platform-fee?environment=..." \
  -X PUT \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await setPlatformFee({
  client: vortex,
  path: { merchantAccountId: "..." },
  query: { environment: "..." },
  body: {...},
});
```

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

- `environment` (string | null)
- `platformBasisPoints` (number | null)
- `platformFixedFee` (number | null)
- `confirmProduction` (boolean | null)
- `idempotencyKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "platformBasisPoints": 0,
  "platformFixedFee": 0,
  "confirmProduction": true,
  "idempotencyKey": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "platformMerchantAccountId": "string",
    "environment": "sandbox",
    "platformBasisPoints": 0,
    "platformFixedFee": 0,
    "updates": [
      {
        "ratePlanId": "string",
        "newRatePlanId": "string",
        "version": 0,
        "reassignedMerchantCount": 0
      }
    ]
  },
  "requestId": "string"
}
```
