POST
Create a payment method
Scope:
sales:invoicing-settings.writehttps://api.holded.com/api/v2/payment-methodsCreates a new manual payment method.
Request body
object
namestringrequired
Display name for the payment method
dueDaysinteger | nulloptional
Number of days until due
bankingAccountIdstring | nulloptional
Associated banking account ID
Request
python
import requests
url = "https://api.holded.com/api/v2/payment-methods"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"name": "string",
"dueDays": 0,
"bankingAccountId": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Responses
Response
json
{
"id": "507f1f77bcf86cd799439011"
}Success responses
201Payment method createdapplication/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json