---
title: "Set default payment method"
method: POST
path: "/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}/set-default"
tags: ["Billing"]
---

# Set default payment method

`POST /v1/billing-accounts/{id}/payment-methods/{paymentMethodId}/set-default`

Sets a payment method as the default for a billing account.

## Path parameters

- `id` string, required
- `paymentMethodId` string, required

## Response `200`

A successful response.

- SetBillingAccountDefaultPaymentMethodResponse
  - `id` string, required
  - `paymentMethodId` string, required

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/cudocompute/apis/cudo-compute-service.md) · [All operations](https://skmtc.net/cudocompute/apis/cudo-compute-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cudocompute/cudo-compute-service/versions/93dc40dababc/schema)
