Create a payment method
Scope: sales:invoicing-settings.write https://api.alladdin.com/api/v2/payment-methods
Creates a new manual payment method.
Request body
object name string required
Display name for the payment method
dueDays integer | null optional
Number of days until due
bankingAccountId string | null optional
Associated banking account ID
Request
import requests
url = "https://api.alladdin.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
{
"id": "507f1f77bcf86cd799439011"
}Success responses
201 Payment method created application/json object id string
Error responses
400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json
