---
title: "Set a payment method as default"
method: POST
path: "/v1/billing/payment-methods/{payment_method_id}/default"
tags: ["billing"]
---

# Set a payment method as default

`POST /v1/billing/payment-methods/{payment_method_id}/default`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/billing/payment-methods/{payment_method_id}/default`
- Auth: HTTP bearer

Make a saved card the customer's default for off-session (auto-refill) charges.

## Path parameters

- `payment_method_id` string, uuid, required

## Headers

- `X-Tenant-Id` string, nullable

## Response `204`

Successful Response

## Other responses

- `400`: Malformed request (unknown plan, or no billing account yet).
- `401`: Unauthorized
- `403`: Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)
- `404`: No such payment method for this workspace.
- `409`: Conflict
- `422`: Validation error
- `502`: The payment provider call failed.
- `503`: Billing is not configured on this deployment.

---

[API](https://skmtc.dev/patricia/apis/patricia-api.md) · [All operations](https://skmtc.dev/patricia/apis/patricia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/patricia/apis/patricia-api/revisions/0dfb44495ea1?raw)
