Skip to content

API reference

Add a payment method

Invoicing API

POST/v1/payment-methods

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

  • typeCodestringRequired

    A payment means code of the official list, such as 58 (SEPA credit transfer) or 59 (SEPA direct debit).

  • namestring or null

    A name for the list

  • ibanstring or null

    The account to pay into. Spaces are removed.

  • bicstring or null
  • accountHolderstring or null
  • bankNamestring or null
  • creditorIdstring or null

    The SEPA creditor id (BT-90). Required for a direct debit.

  • mandateReferencestring or null

    A direct debit mandate (BT-89), when the method is one buyer's.

  • debitedAccountstring or null

    The buyer's debited account (BT-91), when the method is one buyer's.

  • isDefaultboolean

Response

A 201 answer carries these fields.

  • typeCodestringRequired

    A payment means code of the official list, such as 58 (SEPA credit transfer) or 59 (SEPA direct debit).

  • namestring or null

    A name for the list

  • ibanstring or null

    The account to pay into. Spaces are removed.

  • bicstring or null
  • accountHolderstring or null
  • bankNamestring or null
  • creditorIdstring or null

    The SEPA creditor id (BT-90). Required for a direct debit.

  • mandateReferencestring or null

    A direct debit mandate (BT-89), when the method is one buyer's.

  • debitedAccountstring or null

    The buyer's debited account (BT-91), when the method is one buyer's.

  • isDefaultbooleanRequired
  • idstring (uuid)Required
  • paymentMeansobjectRequired

    The payment means (BG-16) of the canonical invoice that this method fills in.

  • createdAtstring (date-time)Required
  • updatedAtstring (date-time)Required

Status codes

Status Meaning
201 The saved payment method.
400
401
501
POST/v1/payment-methods
Example
curl -X POST https://api.certinvo.com/v1/payment-methods \
  -H "Authorization: Bearer $CERTINVO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @body.json
import { readFile } from 'node:fs/promises'

const response = await fetch(`https://api.certinvo.com/v1/payment-methods`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: await readFile('body.json'),
})
console.log(response.status, await response.json())
import os

import requests

response = requests.post(
    "https://api.certinvo.com/v1/payment-methods",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
    data=open("body.json", "rb"),
)
print(response.status_code, response.text)
201
application/json
{
  "typeCode": "string",
  "name": "string",
  "iban": "string",
  "bic": "string",
  "accountHolder": "string",
  "bankName": "string",
  "creditorId": "string",
  "mandateReference": "string",
  "debitedAccount": "string",
  "isDefault": true,
  "id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
  "paymentMeans": {},
  "createdAt": "2026-09-17T09:30:00Z",
  "updatedAt": "2026-09-17T09:30:00Z"
}
Success response
POST
/v1/payment-methods
Add a payment method
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Bodyapplication/json
›Code Snippet
curl -X POST "https://api.certinvo.com/v1/payment-methods" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "typeCode": "string",
  "name": "string",
  "iban": "string",
  "bic": "string",
  "accountHolder": "string",
  "bankName": "string",
  "creditorId": "string",
  "mandateReference": "string",
  "d...'
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close