---
title: "Add a payment method"
description: "Invoicing API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add a payment method

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/payment-methods</code>
</div>
</div>

Adds a payment method. The first one is the default; `isDefault: true` makes a later one the default in its place. An IBAN is refused when its check digits do not match. A SEPA direct debit (59) needs `creditorId`. Only a signed-in person may call this. An API key is refused with 401 `session_required`.

## Request body

`application/json`, required

## Response

A `201` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `201` | The saved payment method. |
| `400` |  |
| `401` |  |
| `501` |  |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/invoicing/add-a-payment-method/index.mdx
