/v1/payment-methods/{id}Replaces every field of the payment method. Only a signed-in person may call this.
Path parameters
- idstring (uuid)Required
Request body
application/json, required
- typeCodestringRequired
A payment means code of the official list, such as
58(SEPA credit transfer) or59(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 200 answer carries these fields.
- typeCodestringRequired
A payment means code of the official list, such as
58(SEPA credit transfer) or59(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 |
|---|---|
200 |
The payment method as saved. |
400 |
|
401 |
|
404 |
|
501 |
/v1/payment-methods/{id}curl -X PUT https://api.certinvo.com/v1/payment-methods/$PAYMENT_METHOD_ID \
-H "Authorization: Bearer $CERTINVO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @body.jsonimport { readFile } from 'node:fs/promises'
const paymentMethodId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const response = await fetch(`https://api.certinvo.com/v1/payment-methods/${paymentMethodId}`, {
method: 'PUT',
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
payment_method_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
response = requests.put(
f"https://api.certinvo.com/v1/payment-methods/{payment_method_id}",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
data=open("body.json", "rb"),
)
print(response.status_code, response.text){
"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"
}