---
title: "Make the newly-collected card the default for invoices + the subscription."
method: POST
path: "/api/v1/billing/payment-method"
tags: ["Billing"]
---

# Make the newly-collected card the default for invoices + the subscription.

`POST /api/v1/billing/payment-method`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/billing/payment-method`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Request body

- SetPaymentMethodRequest: Body for `POST /api/v1/billing/payment-method`.
  - `payment_method_id` string, required

## Response `200`

OK

- OkResponse
  - `ok` boolean, required

## Other responses

- `400`: Bad Request
- `422`: Unprocessable Entity

---

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