---
title: "Set a payment method as the default for its currency"
method: PATCH
path: "/api/customer/{customerId}/payment-methods/{paymentMethodId}/set-default"
tags: ["Customer"]
---

# Set a payment method as the default for its currency

`PATCH /api/customer/{customerId}/payment-methods/{paymentMethodId}/set-default`

Marks the specified payment method as the default for its currency (EUR or USD). Any previously default payment method for the same currency on this customer is automatically unset. Returns the updated payment method with `isDefault: true`.

## Path parameters

- `customerId` string, required
- `paymentMethodId` string, required

## Response `200`

The payment method has been set as default for its currency. Returns the updated payment method.

- SetupPaymentMethodRequestListItemDto
  - `id` string, required — Unique ID of the setup request.
  - `status` string, required — Current status of the setup request (pending, completed, failed, requires_3ds).
  - `currency` string, required — Currency of the setup request (EUR or USD).
  - `createdAt` string, date-time, required — When the request was created.
  - `updatedAt` string, date-time, required — When the request was last updated.
  - `completedAt` string, date-time, nullable, required — When the request completed (success or failure), or null.
  - `errorCode` string, nullable, required — Error code if the request failed, or null.
  - `errorMessage` string, nullable, required — Error message if the request failed, or null.
  - `paymentMethodId` string, nullable, required — ID of the payment method created by this request, or null if not yet completed.

## Other responses

- `400` — Invalid payment method or customer
- `401` — Unauthorized - Invalid API key
- `404` — Customer or payment method not found

---

[API](https://skmtc.dev/inflowpay/apis/inflow-api.md) · [All operations](https://skmtc.dev/inflowpay/apis/inflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inflowpay/inflow-api/revisions/3012dd3dd14a/schema)
