Skip to main content
GET

Get a payment method by ID

Scope:sales:invoicing-settings.read
https://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

paymentMethodIdstringrequired

Payment method identifier

Request

python
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

json
{
  "id": "507f1f77bcf86cd799439011",
  "name": "string",
  "type": "manual",
  "status": "connected",
  "isDefault": false,
  "bankingAccountId": "507f1f77bcf86cd799439011",
  "dueDays": 0,
  "connectionId": "507f1f77bcf86cd799439011"
}

Success responses

200Payment method foundapplication/json
object
idstringrequired

Unique identifier of the payment method

namestringrequired

Display name of the payment method

typestringrequired

Discriminator for the payment method kind: 'manual' for manually created methods, or the provider slug for connected gateways (stripe, paypal, gocardless, square, monei, wallet)

Enum:manualstripepaypalgocardlesssquaremoneiwallet
statusstringrequired

Current status of the payment method: 'connected' means active and usable. Online gateways may also have disconnected, access_denied, verification_required, or verification_in_review.

Enum:connecteddisconnectedaccess_deniedverification_requiredverification_in_review
isDefaultbooleanrequired

Whether this method is the account default for online payments

bankingAccountIdstring | nullrequired

Associated banking account ID, if configured

dueDaysinteger | nullrequired

Number of days until payment is due (manual methods only)

connectionIdstring | nullrequired

Gateway connection identifier (online methods only)

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Payment method not foundapplication/json
429Rate limit exceededapplication/json