---
search:
  tags:
    - paymentMethods
    - POST
seo:
  description: >-
    Reference for the POST
    /v1/merchant-accounts/{merchantAccountId}/customers/{customerId}/payment-methods/default
    endpoint in the Vortex Payments API.
sidebar:
  label: >-
    POST
    /v1/merchant-accounts/{merchantAccountId}/customers/{customerId}/payment-methods/default
  badge: POST
title: >-
  POST
  /v1/merchant-accounts/{merchantAccountId}/customers/{customerId}/payment-methods/default
type: openapi-operation
---
`POST /v1/merchant-accounts/{merchantAccountId}/customers/{customerId}/payment-methods/default`

**curl**

```bash
curl "https://api.vortex.nyc/v1/merchant-accounts/:merchantAccountId/customers/:customerId/payment-methods/default" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

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

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

- `environment` (string | null)
- `paymentMethodId` (string | null)
- `reason` (string | null)
- `idempotencyKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "paymentMethodId": "string",
  "reason": "string",
  "idempotencyKey": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": [
    {
      "id": "string",
      "ownerType": "customer",
      "ownerId": "string",
      "methodType": "string",
      "status": "active",
      "isDefault": true,
      "brandSummary": "string",
      "last4": "string",
      "expiryMonth": 0,
      "expiryYear": 0
    }
  ],
  "requestId": "string"
}
```
