Get a payment method by ID
sales:invoicing-settings.readhttps://api.holded.com/api/v2/payment-methods/{paymentMethodId}Returns a single configured payment method by its ID. The ID comes from the 'id' field in the list endpoint response. Note: this returns a configured payment method (manual or connected gateway such as Stripe, PayPal, GoCardless, Square, Monei, or Wallet) — not an individual transaction. Use /api/v2/payments/{id} to fetch a specific payment transaction.
Parameters
Path parameters
stringrequiredPayment method identifier
Request
import requests
url = "https://api.holded.com/api/v2/payment-methods/507f1f77bcf86cd799439011"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
{
"id": "507f1f77bcf86cd799439011",
"name": "string",
"type": "manual",
"status": "connected",
"isDefault": false,
"bankingAccountId": "507f1f77bcf86cd799439011",
"dueDays": 0,
"connectionId": "507f1f77bcf86cd799439011"
}Success responses
200Payment method foundapplication/jsonUnique identifier of the payment method
Display name of the payment method
Discriminator for the payment method kind: 'manual' for manually created methods, or the provider slug for connected gateways (stripe, paypal, gocardless, square, monei, wallet)
manualstripepaypalgocardlesssquaremoneiwalletCurrent status of the payment method: 'connected' means active and usable. Online gateways may also have disconnected, access_denied, verification_required, or verification_in_review.
connecteddisconnectedaccess_deniedverification_requiredverification_in_reviewWhether this method is the account default for online payments
Associated banking account ID, if configured
Number of days until payment is due (manual methods only)
Gateway connection identifier (online methods only)
Error responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Payment method not foundapplication/json429Rate limit exceededapplication/json